Generally, you do not need to log in as the root user to run the vmkfstools commands. However, some commands, such as the file system commands, might require the root user login.

Use the following arguments with the vmkfstools command:

options are one or more command-line options and associated arguments that you use to specify the activity for vmkfstools to perform, for example, choosing the disk format when creating a new virtual disk.

After entering the option, specify a file or VMFS file system on which to perform the operation by entering a relative or absolute file path name in the /vmfs hierarchy.

partition specifies disk partitions. This argument uses a vml.vml_ID:P format, where vml_ID is the device ID returned by the storage array and P is an integer that represents the partition number. The partition digit must be greater than zero (0) and should correspond to a valid VMFS partition of type fb.

device specifies devices or logical volumes. This argument uses a path name in the ESX device file system. The path name begins with /vmfs/devices, which is the mount point of the device file system.

Use the following formats when you specify different types of devices:

/vmfs/devices/disks for local or SAN-based disks.

/vmfs/devices/lvm for ESX logical volumes.

/vmfs/devices/generic for generic SCSI devices, such as tape drives.

path specifies a VMFS file system or file. This argument is an absolute or relative path that names a directory symbolic link, a raw device mapping, or a file under /vmfs.

To specify a VMFS file system, use this format:




To specify a VMFS file, use this format:

/vmfs/volumes/file system label|file system UUID/[dir]/myDisk.vmdk

You do not need to enter the entire path if the current working directory is the parent directory of myDisk.vmdk.

For example,