This issue is being addressed in Future release of vSAN.
Workaround:
Use
Capacity View which is available by navigating vCenter > Datacenter > Cluster > Monitor > Capacity is not affected by this issue, reports accurate usage of virtual machines on the datastore.
If your vCenter server is 7.0 or higher:
- Save the attached vmUsedSpace.pyc and transfer this to the vCenter Server Appliances/tmp/.
- Run command python vmUsedSpace.pyc to pull VM Usage report across all vSAN enabled cluster in the vCenter Server Appliance.
Example:
python vmUsedSpace.pyc
vSAN-SC <=== Is the Cluster name
win10 : 85639299072 >> VM_NAME : USED_SPACE_IN_BYTES
vCLS (30) : 2214592512
vCLS (29) : 2105540608
VR_DR-app : 20333985792
vCLS (28) : 2164260864
win10_clone : 43201331200Versions prior to 7.0:
- Use SSH to connect to any of the ESXi hosts in the cluster
- Run esxcli vsan debug object list | egrep 'Object|Used:|Path:' > /tmp/object.txt,
- Export the file to your local system using winscp, view actual space utilized for each of the objects in the cluster. This gives you usage of all objects in vSAN cluster.
- To pull usage per VM use below command : esxcli vsan debug object list --vm-name="VIRTUAL_MACHINE_NAME" | egrep 'Object|Used:|Path:'
Example:
[root@is-dhcp35-52:~] esxcli vsan debug object list --vm-name=win10 | egrep 'Object|Used:|Path:'
Object UUID: ########-####-####-####-########69ae
Used: 77.46 GB
Path: /vmfs/volumes/vsan:52a0628d########-######9d8efe3453/########-####-####-####-########69ae/win10.vmdk (Exists)
Object UUID: ########-####-####-####-########69ae
Used: 1.47 GB
Path: /vmfs/volumes/vsan:52a0628d########-######9d8efe3453/win10 (Exists)