By default the settings were set to "low" space reclamation priority and "1 MB" granularity so I didn't have to change anything. I checked again and it is still currently set as that.
I find it odd that when I delete the entire VM and its files off the datastore, it doesn't free up space like you would expect if you were to delete files off your personal computer. It's not like I'm trying to shrink a VM, I'm completely removing it.
I had read it somewhere that it will take sometime to release as on vmfs6 its automatic , let me check that VMware doc.
I guess you write about free space on VMFS rather than free space on storage.
If so info about space reclamation is usless here, because it's about freeing disk space on storage.
Can you try to rescan and refresh information on each host connected to datastore?
As you can see by the two images below, the datastore is showing 9.07 TB used out of 9.09 TB. It's been that way for days now. The two VM's that are left on that datastore are both off right now and each only take up about 30 GB each.
I have clicked the refresh button multiple times as well and upon going to datastore -> configure -> capacity settings I have clicked refresh there too. Should the capacity information be shown as it is in the below screenshot and text that I copied it from?
Total Capacity: 9.09 TB
Provided Space: 9.08 TB
Free Space: 30.10 GB
Can you do cluster-wide rescan. So select a whole cluster to do a rescan
Also if you connect directly to ESXi host with Host Embeded client. Does it show correct or incorrect free space?
Upon going into the ESXi host itself it did show the current information and it was only vCenter that was showing incorrectly.
I then had the idea to check to see what build I was on and if there were any updates and sure enough I was on the GA build so I updated vCenter to 6.5.0-5973321 and the issue seems to be resolved.
Thanks for the help all!
AFAIK the "shrink" function is not available via GUI in WS 15.
For ubuntu virtual machine, Run this command and it takes about an hour (with SSD hard disk) and it needs root permission.
vmware-toolbox-cmd disk shrinkonly
for this command, you must first install vmware-tools package.
and it will work and the storage start freeing up during running of that commands.
The solution I gave you for Workstation does not apply to VMs running in vSphere. !!!