6.5.1

Table Of Contents
Follow this example:
vmkfstools --eagerzero /vmfs/volumes/myVMFS/VMName/disk.vmdk
Removing Zeroed Blocks
Use the vmkfstools command to remove zeroed blocks.
-K|--punchzero
This option deallocates all zeroed out blocks and leaves only those blocks that were allocated previously
and contain valid data. The resulting virtual disk is in thin format.
Deleting a Virtual Disk
Use the vmkfstools command to delete a virtual disk file at the specified path on the VMFS volume.
Use the following option:
-U|--deletevirtualdisk
Renaming a Virtual Disk
Use the vmkfstools command to rename a virtual disk file at the specified path on the VMFS volume.
You must specify the original filename or file path oldName and the new filename or file path newName.
-E|--renamevirtualdisk oldName newName
Cloning or Converting a Virtual Disk or RDM
Use the vmkfstools command to create a copy of a virtual disk or raw disk you specify.
A non-root user cannot clone a virtual disk or an RDM. You must specify the original filename or file path
oldName and the new filename or file path newName.
-i|--clonevirtualdisk oldName newName
-d|--diskformat [thin|zeroedthick|eagerzeroedthick|rdm:device|rdmp:device|2gbsparse]
-W|--objecttype [file|vsan|vvol]
--policyFile fileName
-N|--avoidnativeclone
Use the following suboptions to change corresponding parameters for the copy you create.
n
-d|--diskformat specifies disk formats.
n
-W|--objecttype specifies whether the virtual disk is a file on a VMFS or NFS datastore, or an
object on a vSAN or Virtual Volumes datastore.
n
--policyFile fileName specifies VM storage policy for the disk.
vSphere Storage
VMware, Inc. 342