I need to move groups of vms to new datastores, and keep the total provisioned space of each datastore below 1TB. When I get the list of VMs and select provisionedspaceGB, the sum of the provisionedspacegb of all the VMs is less than than 1TB. However, after I move them, the provisioned space of the datastore object as a whole as seen in vSphere Web Client is much higher than the sum of provisionedspaceGB for each VM.
How can I calculate the provisionedspaceGB for each VM so that it maches how the calculation works for the provisionedspaceGB for the entire datsatore?