When you free up space on your Datastore, did you get the space back in your SAN???????
If you are using VMFS5 datastore then you need to perform this manually.
If you are using VMFS6 datastore and if you have configured automatic space reclamation, then yes it will free that space from SAN.
For more information you can follow VMware KB article.
Esxcli command allows deleted blocks to be reclaimed on thin provisioned LUNs that support the VAAI UNMAP primitive.
The command can be run without any maintenance window, and the reclaim mechanism has been enhanced as such:
• Reclaim size can be specified in blocks instead of a percentage value to make it more intuitive to calculate.
• Dead space is reclaimed in increments instead of all at once to avoid possible performance issues.
With the introduction of 62 TB VMDKs, UNMAP can now handle much larger dead space areas. However, UNMAP operations are still manual. This means Storage vMotion or Snapshot Consolidation tasks on VMFS do not automatically reclaim space on the array LUN.
Steps to reclaim space:
Note : Run this command on particular ESXI host where datastore is mapped.
i. Enable SSH session from ESXI host.
ii. You can check from below command which datastore is mapped for this ESXI host
esxcfg-scsidevs -m
iii. It’s up to you if you want to run this command with volume label or with UUID
3. Now you have a choice. You can run the unmap command with either the UUID or the Volume Label (Datastore Name). I personally use the Volume Label because it’s easier, let’s be real. Record your volume label and run the following command, where Datastore00 is your volume label:
Esxcli storage vmfs unmap -l Datastore001
If you would like to use the UUID, run the following where 326f7h3s4d-6lln8531-v6bb-975gf5hh980g is your datastores UUID:
Esxcli storage vmfs unmap -l 326f7h3s4d-6lln8531-v6bb-975gf5hh980g
That’s it! It’s really that simple. It will take some time, but you should be able to refresh your SAN periodically to see the available disk space going up.
If you enjoyed this article, follow and share it with your friends and colleagues!!!!!!!!!!! 👍
Posted By : Kamlesh Gaur
Comments
Post a Comment