Excerpt taken from the ESX MAN Page.
FILE SYSTEM OPTIONS
The long and short forms of options, shown here listed together, are equivalent.
-C, –createfs vmfs3
-b, –blocksize #[mMkK]
-S, –setfsname fsName
Create a VMFS file system on the specified partition, e.g. vml.<vml_ID>:1. The partition becomes the file system‘s head partition. The file block size can be specified via the `-b` option. The default file block size is 1MB. The file block size must be either 1MB, 2MB, 4MB or 8MB.
The -S option sets the label of the VMFS file system, and can only be used in conjunction with the `-C` option. This label can then be used to specify a VMFS file system in subsequent vmkfstools commands or in a virtual machine configuration file. The label will also appear in a listing produced by `ls -l /vmfs/volumes`as a symbolic link to the VMFS file system. VMFS labels can be up to 128 characters long. They cannot contain leading or trailing spaces. After creating the file system, the label can be changed using the command `ln -sf /vmfs/volumes/<FS UUID> /vmfs/volumes/<New label>`.
-Z, –spanfs span-partition
Extend the VMFS-3 file system with the specified head partition by spanning it across the partition designated by `span-partition`. The operation erases existing data on the spanned partition. A VMFS-3 file system can have at most 32 partitions. This option will not work on VMFS-2 file systems as they are read-only in ESX 3.
-G, –growfs grow-partition
Extend the VMFS-3 file system with the specified `grow-partition`. Prior to growing the file system, users must use a tool such as `fdisk` or `parted` to create the partition first. Once the partition size `grow-partition` is available, file system can be grown by designating the `grow-partition` using the option `-G`. Existing data on the grow partition is preserved.
-P, –queryfs
-h, –human-readable
List the attributes of a VMFS file system when used on any file or directory of a VMFS file system. It lists the VMFS version number, the number of partitions constituting the specified VMFS file system, the file system label (if any), file system UUID, available space, and a listing of the device names of all the partitions constituting the file system. If partitions backing VMFS file system go offline then the number of partitions and available space reported change accordingly. The `h` option causes sizes to be printed in human-readable format (such as 5k, 12.1M, or 2.1G).
VIRTUAL DISK OPTIONS
-c, –createvirtualdisk #[gGmMkK]
-a, –adaptertype [buslogic|lsilogic|ide] srcFile
-d, –diskformat [thin|zeroedthick|eagerzeroedthick]
Create a virtual disk with the specified size on the VMFS file system. The size is specified in bytes by default, but can be specified in kilobytes, megabytes or gigabytes by adding a suffix of `k`, `m`, or `g` respectively. The `adaptertype` option allows users to indicate which device driver should be used to communicate with the virtual disk. The default disk format is `zeroedthick`.
-U, –deletevirtualdisk
Delete files associated with the specified virtual disk.
-E, –renamevirtualdisk srcDisk
Rename files associated with a specified virtual disk to the specified name.
-i, –clonevirtualdisk srcDisk
-d, –diskformat [rdm:<device>|rdmp:<device>|zeroedthick|thin|eagerzeroedthick|2gbsparse]
Create a copy of a virtual disk or raw disk. The copy will be in the specified disk format. The default disk format is pre-allocated.
-e, –exportvirtualdisk dstDisk
This operation is deprecated. Use `-i srcDisk -d 2gbsparse` to achieve what it used to.
-X, –extendvirtualdisk #[gGmMkK]
Extend the specified VMFS virtual disk to the specified length. You can extend the virtual disk to a `eagerzeroedthick` format, if specified with the `-d eagerzeroedthick` option. Extending a virtual disk will break any currently existing snapshots. This command is useful for extending the size of a virtual disk allocated to a virtual machine after the virtual machine has been created. However, this command requires that the guest operating system has some capability for recognizing the new size of the virtual disk and taking advantage of this new size.
-M, –migratevirtualdisk
Migrate an ESX 2 virtual disk to an ESX 3 virtual disk.
-r, –createrdm /vmfs/devices/disks/…
Map a raw disk to a file on a VMFS file system. Once the mapping is established, it can be used to access the raw disk like a normal VMFS virtual disk. The `file length` of the mapping is the same as the size of the raw disk that it points to.
-q, –queryrdm
List the attributes of a raw disk mapping. When used with a `rdm:<device>` specification, it prints out the vml of the raw disk corresponding to the mapping referenced by the <device>. It also prints out identification information for the raw disk (if any).
-z, –createrdmpassthru /vmfs/devices/disks/…
Map a passthrough raw disk to a file on a VMFS file system. This allows a virtual machine to bypass the VMKernel SCSI command filtering layer done for VMFS virtual disks. Once the mapping is established, it can be used to access the passthrough raw disk like a normal VMFS virtual disk.
-v, –verbose #
This option is ignored for the queryrdm option. Setting the verbosity level will list additional information for the virtual disk configuration.
-g, –geometry
Get the geometry information (cylinders, heads, sectors) of a virtual disk.
-w, –writezeros
Initialize the virtual disk with zeros. Any existing data on virtual disk is lost.
-j, –inflatedisk
Convert a thin virtual disk to preallocated with the additional guarantee that any data on thin disk is preserved and any blocks that were not allocated get allocated and zeroed out.
-k, –eagerzero
Convert a preallocated virtual disk to eagerzeroedthick and maintains any existing data.
SUPPORTED DISK FORMATS
`zeroedthick`
Space required for the virtual disk is allocated at creation time
`eagerzeroedthick`
Space required for the virtual disk is allocated at creation time. In contrast to zeroedthick format, the data remaining on the physical device is zeroed out during creation.
`thin`
Thin-provisioned virtual disk.
`rdm`
Virtual compatibility mode raw disk mapping.
`rdmp`
Physical compatibility mode (pass-through) raw disk mapping.
`2gbsparse`
A sparse disk with 2GB maximum extent size.