6.0.1

Table Of Contents
File System Options
File system options allow you to create and manage VMFS datastores. These options do not apply to NFS.
You can perform many of these tasks through the vSphere Web Client.
Listing Attributes of a VMFS Volume
Use the vmkfstools command to list aributes of a VMFS volume.
-P --queryfs
-h --humanreadable
When you use this option on any le or directory that resides on a VMFS volume, the option lists the
aributes of the specied volume. The listed aributes include the le system label, if any, the number of
extents comprising the specied VMFS volume, the UUID, and a listing of the device names where each
extent resides.
N If any device backing VMFS le system goes oine, the number of extents and available space
change accordingly.
You can specify the -h suboption with the -P option. If you do so, vmkfstools lists the capacity of the volume
in a more readable form, for example, 5k, 12.1M, or 2.1G.
Creating a VMFS Datastore
Use the vmkfstools command to create a VMFS datastore.
-C --createfs [vmfs5]
-S --setfsname datastore
This option creates a VMFS5 datastore on the specied SCSI partition, such as disk_ID:P. The partition
becomes the le system's head partition.
N 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:
n
-S --setfsnameDene 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.
N 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 dene 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.
N If your host is registered with vCenter Server, any changes you make to the VMFS volume label
get overwrien by vCenter Server. This guarantees that the VMFS label is consistent across all vCenter
Server hosts.
Chapter 26 Using vmkfstools
VMware, Inc. 285