Vmfs 6 no more manual unmap.
Esxcli storage vmfs unmap l.
Unmap is now an automatic behavior.
We use cookies for advertising social media and analytics purposes.
You can confirm these settings took effect by running the first get command to view the settings or view the datastore in the storage section of the vsphere client.
I d be curious to know if it fails that way too.
Some legacy storage doesn t do well with large unmap jobs so in vmfs 6 it can take up to a day to see the space reclaimed from delete actions.
This seems like a communication problem though with the selected host from powercli.
Configure space reclamation for a vmfs6 datastore when you create a vmfs6 datastore you can.
The null value is the uuid of the datastore which can be optionally specified instead of the vmfs label in case you are writing a script that you want to future proof against future.
The first value is the block count per iteration which as spoken about in earlier posts 60 000 suffices.
While the vsphere client will reflect the higher priority setting if you change it.
November 28 2016 at 12 35 pm hey cody ive been using the poweractions version of your script.
Six years later vsphere 6 entered the market including version 6 of the vmfs file system.
Out of curiosity have you tried running esxcli storage vmfs unmap on the datastores that fail.
This action can lock some of the resources during the operation.
But it s not immediate.
Vmfs5 and earlier file systems do not unmap free space automatically but you can use the esxcli storage vmfs unmap command to reclaim space manually.
Read about how we use cookies and how you can control them here if you continue to use this site you consent to our use of cookies.
Replace the vmhost with an esxi host and the datastore name with whichever vmfs volume you want to unmap.
To set esxi reclaim unmap priority to high.