VMware Cloud Community
ThePieMonster
Enthusiast
Enthusiast
Jump to solution

Datastore Not Freeing Up Space After Deleting VM

I have a VMFS 6 datastore on ESXi 6.5 that is 9.1 TB in size. I had a large VMDK that I was using to store files that was about 9.0 TB and I transferred the files elsewhere and then removed that VM. When browsing the file directory of the datastore it shows two other VMs that I still have in there that are about 35 GB each in size which is good, but the datastore overall says there is only about 30 GB free when it should say there is about 8 TB free.

Is there a manual process that needs to be run that will tell the datastore that files were deleted and there is free space now?

Tags (2)
Reply
0 Kudos
1 Solution

Accepted Solutions
ThePieMonster
Enthusiast
Enthusiast
Jump to solution

Hello,

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!

View solution in original post

Reply
0 Kudos
9 Replies
TomHowarth
Leadership
Leadership
Jump to solution

have you run though the infomation contained in the following documentation link?

Configure Space Reclamation for a VMFS6 Datastore

Tom Howarth VCP / VCAP / vExpert
VMware Communities User Moderator
Blog: http://www.planetvm.net
Contributing author on VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment
Contributing author on VCP VMware Certified Professional on VSphere 4 Study Guide: Exam VCP-410
Reply
0 Kudos
ThePieMonster
Enthusiast
Enthusiast
Jump to solution

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.

Reply
0 Kudos
planetshoots
Contributor
Contributor
Jump to solution

I had read it somewhere that it will take sometime to release as on vmfs6 its automatic , let me check that VMware doc.

Reply
0 Kudos
Finikiez
Champion
Champion
Jump to solution

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?

Reply
0 Kudos
ThePieMonster
Enthusiast
Enthusiast
Jump to solution

TomHowarthplanetshootsFinikiez

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.

vm_pic_1 — Postimage.org

vm_pic_2 — Postimage.org

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?

Capacity

   Total Capacity: 9.09 TB

   Provided Space: 9.08 TB

   Free Space: 30.10 GB

vm_pic_3 — Postimage.org

Reply
0 Kudos
Finikiez
Champion
Champion
Jump to solution

Can you do cluster-wide rescan. So select a whole cluster to do a rescan

Perform Storage Rescan

Also if you connect directly to ESXi host with Host Embeded client. Does it show correct or incorrect free space?

Reply
0 Kudos
ThePieMonster
Enthusiast
Enthusiast
Jump to solution

Hello,

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!

Reply
0 Kudos
Sajadasd
Contributor
Contributor
Jump to solution

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.

Reply
0 Kudos
continuum
Immortal
Immortal
Jump to solution

@ Sajad
The solution I gave you for Workstation does not apply to VMs running in vSphere. !!!


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

Reply
0 Kudos