Use the vmkfstools command to create a VMFS datastore.

-C --createfs [vmfs5]
      -S --setfsname datastore

This option creates a VMFS5 datastore on the specified SCSI partition, such as disk_ID:P. The partition becomes the file system's head partition.


You cannot create a new VMFS3 datastore, but you can use existing VMFS3 datastores. Upgrade your VMFS3 datastores to VMFS5.

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

-S --setfsname – Define the volume label of the VMFS datastore 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.


vCenter Server supports the 80 character limit for all its entities. If a datastore name exceeds this limit, the name gets shortened when you add this datastore to vCenter Server.

After you define a volume label, you can use it whenever you specify the VMFS datastore for the vmkfstools command. The volume label appears in listings generated for the 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 ln -sf command. Use the following as an example:

ln -sf /vmfs/volumes/UUID /vmfs/volumes/datastore

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


If your host is registered with vCenter Server, any changes you make to the VMFS volume label get overwritten by vCenter Server. This guarantees that the VMFS label is consistent across all vCenter Server hosts.