Hi,
Is there any command that can be run against a datastore (not limited to vSAN) to find out the total space provisioned and free space?
This would be extremely useful when having a mix of VMs (think/thick).
Thanks
Hello andvm,
# df -h
Bob
which column shows the provisioned total please? (I can have 234.5GB free left but that does not mean its not over provisioned)
[root@localhost:~] df -h
Filesystem Size Used Available Use% Mounted on
VMFS-6 12.5G 1.4G 11.1G 11% /vmfs/volumes/datastore1
VMFS-6 119.8G 2.9G 116.8G 2% /vmfs/volumes/HDD Drive
vfat 249.7M 141.2M 108.5M 57% /vmfs/volumes/a0b4f57e-9bd7cd36-83ab-dfec37e5923d
vfat 4.0G 57.4M 3.9G 1% /vmfs/volumes/5b32b559-d25b3d38-df03-000c29b6e2b1
vfat 285.8M 209.1M 76.8M 73% /vmfs/volumes/5b32b551-4c6af756-bd3f-000c29b6e2b1
vfat 249.7M 149.8M 99.9M 60% /vmfs/volumes/9e50197b-b29f5699-7615-976c1df8f0ac
vsan 320.0G 85.8G 234.1G 27% /vmfs/volumes/vsanDatastore
Hello andvm,
Provisioned would be 'Used' - whether this space has all been reserved or is in use depends on the max disk size, data used in-guest and Thin/Thickness of the disks (OSR=0 or OSR=100), e.g. .vswp Objects will be Thick by default, .vmdk (and their snapshots) Thin if using Default vSAN Storage Policy or any without Object Space Reservation = 100.
You can see Thick/thin proportion of data better via RVC with vsan.disk_stats <PathToCluster/Host> (Reserved column)
https://www.virten.net/2017/06/vsan-6-6-rvc-guide-part-3-object-management/#vsan-disks_stats
Bob
Ok Bob, in meantime I found the below which seems to print nicely what I need: