If a thin provisioned VMDK is taking up more space on the datastore than expected, you can reclaim space to free up local space in the datastore.
https://knowledge.broadcom.com/external/article/340005/reclaiming-disk-space-from-thin-provisio.html |
Add the steps involved:
Back up the VM.
Since we are modifying the VMDK files, make a good backup of the entire VM folder in case something happens. |
Zero the free space on the affected drive.
sdelete.exe -z C: |
If the VM has more than one drive letter, substitute the appropriate drive letter, or run the command against each one individually. |
SSH into the ESXi host.
SSH is usually disabled on ESXi hosts. Enable it for this procedure, then turn it back off again for security reasons. |
cd /vmfs/volumes/DATASTORE_NAME/VM_NAME |
Run the cleanup command.
vmkfstools -K disk_name.vmdk |
The file used here is descriptor file .vmdk file not the data file -flat.vmdk |
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|