Space Reclamation from VMware

This is another quick note for me as its not something i need to do alot.

After migrating a VM to another datastore i noticed our Nimble was showing less free space than VMware – from the past i remember running a command to rectify this but obviously forgot it hence me making a note now.

Simple one…

for ESXi 5.0

SSH to your VM host

# cd /vmfs/volumes/<volume you want to reclaim space from>

# vmkfstools –y <% of the space to reclaim>

for ESXi 5.5 and 6.0

# esxcli storage vmfs unmap -l <Volume>


Update –

I had an issue on one of my luns with “Cannot find the VMFS volume with label”

So as a quick work around i used the following command and just used the volume uuid –

# esxcli storage vmfs unmap --volume-uuid=volume_uuid

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.