Use the vmkfstools command to create a VMFS file system.

-C --createfs vmfs3
      -b --blocksize block_sizekK|mM
      -S --setfsname fsName

This option creates a VMFS-3 file system on the specified SCSI partition, such as vml.vml_ID:1. The partition becomes the file system's head partition.

VMFS-2 file systems are read-only on any ESX host. You cannot create or modify VMFS-2 file systems but you can read files stored on VMFS-2 file systems. VMFS-3 file systems are not accessible from ESX 2.x hosts.


You can have only one VMFS volume for a LUN.

You can specify the following suboptions with the -C option:

-b --blocksize – Define the block size for the VMFS-3 file system. The default block size is 1MB. The block_size value you specify must be a multiple of 128kb, with a minimum value of 128kb. When you enter a size, indicate the unit type by adding a suffix of m or M. The unit type is not case sensitive. vmkfstools interprets m or M to mean megabytes and k or K to mean kilobytes.

-S --setfsname – Define the volume label of a VMFS volume for the VMFS-3 file system you are creating. Use this suboption only in conjunction with the -C option. The label you specify can be up to 128 characters long and cannot contain any leading or trailing blank spaces.

After you define a volume label, you can use it whenever you specify the VMFS volume for the vmkfstools command. The volume label appears in listings generated for the Linux ls -l command and as a symbolic link to the VMFS volume under the /vmfs/volumes directory.

To change the VMFS volume label, use the Linux ln -sf command. Use the following as an example:

ln -sf /vmfs/volumes/UUID /vmfs/volumes/fsName

fsName is the new volume label to use for the UUID VMFS.