I wouldn't say it was the prettiest interface in the world but it's functional. Designed to run from the top down. Some caveats is this process does create a file based on percentage of free space you would like to reclaim. It will cause added I/O to your array during operation so should be performed during maintenance windows.
NOTE: this feature was removed from esxi5.0 due to unmap duration causing snapshot consolidation and storage vmotion timeouts while it was executing.
NOTE: this feature was removed from esxi5.0 due to unmap duration causing snapshot consolidation and storage vmotion timeouts while it was executing.
Requirements
- Powercli 5.1 or greater
- One LUN per datastore
- Execute during Maintenance window or low I/O times
- SSH is enabled on your esxi host performing the unmap operation
- v1.0 only supports using one esx host and one datastore per operation
- Requires root ssh access.
Tool Overview
For this test I will use a Equallogic Array with one thin provisioned volume. I created some temp vmdks on the volume and added files to the disk through the guest operating system. After completing this step I removed the vmdk from the datastore leaving freespace that is now avaliable in vsphere but showing consumed on my equallogic volumes. See screenshots:
VMFS Volume and EQ Volume before SCSI Unmap
Now I will open the GUI and execute the program to perform unmap operation.
For right know the GUI only supports one esx host and one lun per operation. If you would like to do more luns at ones you will need to open multiple copies of the GUI. This was originally target for single lun use.
Download the script here
No comments:
Post a Comment