VMware Cloud Community
ejfiel
Contributor
Contributor

Get provisioned space the same as in GUI

Hi,

We've been using a script that should get the provisioned space but when I try to compare the script output against what I can see in GUI, values are not the same. Also I can see some of the output have zero value. Below is the output of the script and screenshot from the GUI. Also I have attached the script text file.

Script Output:

ClusterNameDatastoreNameProvisionedSpaceCapacitySpaceUsedFreeSpace
XXXXwphesx02_v21179.315001262.57
XXXXwphesx01_v6560.5515001278.34
XXXXlocal0070131.75130.14
XXXXvmware_dmx3_003117.15269.5226.02
XXXXwphesx01_v2394.41500643.88
XXXXwphesx01_v3681.1215001081.81
XXXXwphesx01swap_v10270269.57
XXXXwphesx02_v11008.7215001282.15
XXXXwphesx02_v3768.9815001196.12
XXXXwphesx02_v4361.131500792.49
XXXXwphesx01_v5690.1715001122.06
XXXXwphesx01_v1853.415001125.83
XXXXwphesx01_v4790.5415001138.25
0 Kudos
1 Reply
LucD
Leadership
Leadership

You might be having some orphaned files on the datastores.

See my Orphaned files and folders – Spring cleaning post.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos