Hi, maybe help this command
The following examples assume you are specifying connection options, either explicitly or, for example, by specifying the server, user name, and password. Run vmkfstools --help
for a list of common options including connection options. The examples use single quotes around some names; use double quotes on Windows.
Create the specified file system:
For ESX/ESXi version earlier than 4.0, specify the VMHBA name:
vmkfstools <conn_options> -C vmfs3 -b 1m -S Test vmhba0:0:0:3
For ESX/ESXi version 4.0 or later, specify the device name, for example naa.xxx:
vmkfstools <conn_options> -C vmfs3 -b 1m -S Test naa.600601604d521c002732ff0dc122dd11:3
Create a virtual disk:
vmkfstools <conn_options> -c 2048m '[storage1] rh6.2.vmdk'
Rename files associated with a specified virtual disk to the specified name:
vmkfstools <conn_options> -E '[storage1] rh6.2.vmdk' '[storage1] testing2.vmdk'
Get the geometry information (cylinders, heads, and sectors) of a virtual disk:
vmkfstools <conn_options> -g '[storage1] testing2.vmdk'
Delete an existing virtual disk:
vmkfstools <conn_options> -U '[storage1] testing2.vmdk'
Shrink the size of the virtual disk:
vmkfstools <conn_options> -s '[storage1] rh6.2.vmdk'
Extend the virtual disk to specified size, the extended region of the disk grows in eagerzeroedthick format:
vmkfstools <conn_options> -X 1g -d eagerzeroedthick '[storage1] rh6.2.vmdk'
Initialize the virtual disk with zeros:
vmkfstools <conn_options> -w '[storage1] rh6.2.vmdk'
Cheers,