6.7

Table Of Contents
You can specify the -v suboption with any vmkfstools option. If the output of the option is not suitable
for use with the -v suboption, vmkfstools ignores -v.
Note Because you can include the -v suboption in any vmkfstools command line, -v is not included as
a suboption in the option descriptions.
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 Client.
Listing Attributes of a VMFS Datastore
Use the vmkfstools command to list attributes of a VMFS datastore.
-P|--queryfs
-h|--humanreadable
When you use this option on any file or directory that resides on a VMFS datastore, the option lists the
attributes of the specified datastore. The listed attributes typically include the file system label, the
number of extents for the datastore, the UUID, and a list of the devices where each extent resides.
Note If any device backing VMFS file system goes offline, the number of extents and available space
change accordingly.
You can specify the -h|--humanreadable suboption with the -P option. If you do so, vmkfstools lists
the capacity of the volume in a more readable form.
Example: Example of Listing VMFS Attributes
~ vmkfstools -P -h /vmfs/volumes/my_vmfs
VMFS-5.81 (Raw Major Version: 14) file system spanning 1 partitions.
File system label (if any): my_vmfs
Mode: public
Capacity 99.8 GB, 97.5 GB available, file block size 1 MB, max supported file size 62.9 TB
UUID: 571fe2fb-ec4b8d6c-d375-XXXXXXXXXXXX
Partitions spanned (on "lvm"):
eui.3863316131XXXXXX:1
Is Native Snapshot Capable: YES
Creating a VMFS Datastore or a Scratch Partition
Use the vmkfstools command to create a VMFS datastore or a scratch partition.
-C|--createfs [vmfs5|vmfs6|vfat]
This option creates the VMFS datastore on the specified SCSI partition, such as disk_ID:P. The partition
becomes the head partition of the datastore. For VMFS5 and VMFS6, the only available block size is 1
MB.
vSphere Storage
VMware, Inc. 344