Help reclaiming datastore storage space after deleting a VM

Greetings,

We deleted a VM folder on a datastore but don't see the space the VM was taking up reflected in the free space of the datastore. The VM folder held a out-of-production VM that had not been used since 2016. It was 4TB. It may or may not have been removed from inventory back then. When deleting the files, delete from disk was chosen. The VM storage was not thin provisioned. It is iSCSI to an EMC 3250 SAN.

How can we reclaim the 4TB of storage?

Thanks a lot
LVL 7
king daddyAsked:
Who is Participating?
 
Ajay ChananaMCSE-2003/08|RHCSA| VCP5/6 |vExpert2018Commented:
please use unmap command to reclaim the space.


esxcli storage vmfs unmap -l MyDatastore

or

esxcli storage vmfs unmap -u 509a9f1f-4ffb6678-f1db-001ec9ab86


https://kb.vmware.com/s/article/2057513

this will only work if you have thin provisioned storage at background.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Re-scan and wait sometimes the size may not be reflected immediately!
0
 
king daddyAuthor Commented:
Ajay, If other VMs are on the datastore where the deleted VM was hosted, will running unmap affect them? This was not thin provisioned.

Andrew, I just rescanned / refreshed and the size actually decreased by about 2 GB.

Thanks to the both of you.
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
king daddyAuthor Commented:
Something is really eating up storage on this datastore. I have not seen this before. We are actively losing hundreds of MB over an hour of time. Just FYI.
0
 
king daddyAuthor Commented:
The datastore VM folder that was deleted does not show up in esxcli. Free space does not reflect the deletion of the 4TB that VM was using. The datastore is the first one in the list ending in eaf0c.
esxcli-datastore.JPG
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Snapshots check for snapshots and look in VM folders
0
 
king daddyAuthor Commented:
One small snapshot. Going to commit after hours. Still baffled as to why the free space hasn't been reclaimed yet. I deleted an iso file from another datastore on the same EMC storage and it showed the 3 GB almost immediately.
0
 
king daddyAuthor Commented:
EMC verified the vm / folder was deleted from the SAN. Not sure where to go to now especially with vmware support expired at this client.
0
 
Ajay ChananaMCSE-2003/08|RHCSA| VCP5/6 |vExpert2018Commented:
could  you please confirm  VMFS volume version , esxi version , vcenter version?
0
 
king daddyAuthor Commented:
vmfs-5, esxi 5.5 build 3248547, vcenter 5.5 build 7460778
0
 
Ajay ChananaMCSE-2003/08|RHCSA| VCP5/6 |vExpert2018Commented:
if nothing is working for you, my last answer would be evacuate the datastore, Delete and recreate the datastore.
0
 
king daddyAuthor Commented:
Was finally able to reboot host after getting EMC and VMware involved. Only freed up about 1.5 TB even though we deleted a 4 TB VM. Weird but oh well. Client is over it so on to other things.

Thanks guys.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.