vmkfstools
supports the -K option (--punchzero
), can reclaim the zeroed blocks of thin-provisioned virtual disks without the need to clone to another VMFS datastore with a different block size.SDelete
command (or a tool with similar functionality) to zero out all unused space. The syntax for the SDelete
command is SDelete -z driveletter.
When using SDelete
, use version 1.6 or later.vmkfstools -K /path/to/disk-name.vmdk
vmkfstools -K
) command is not compatible with NFS datastores. This command is also not supported for thick provisioned disks on VMFS6vmkfstools
command, see Removing Zeroed Blocks in the ESX Configuration Guide.