6.0.1

Table Of Contents
Example for Creating a VMFS File System
This example illustrates creating a new VMFS5 datastore named my_vmfs on the naa.ID:1 partition. The le
block size is 1MB.
vmkfstools -C vmfs5 -S my_vmfs /vmfs/devices/disks/naa.ID:1
Extending an Existing VMFS Volume
Use the vmkfstools command to add an extent to a VMFS volume.
-Z --spanfs span_partition head_partition
This option extends the VMFS le system with the specied head partition by spanning it across the
partition specied by span_partition. You must specify the full path name, for
example /vmfs/devices/disks/disk_ID:1. Each time you use this option, you extend a VMFS volume with a
new extent so that the volume spans multiple partitions.
C When you run this option, you lose all data that previously existed on the SCSI device you
specied in span_partition .
Example for Extending a VMFS Volume
In this example, you extend the logical le system by allowing it to span to a new partition.
vmkfstools -Z /vmfs/devices/disks/naa.disk_ID_2:1 /vmfs/devices/disks/naa.disk_ID_1:1
The extended le system spans two partitions—naa.disk_ID_1:1 and naa.disk_ID_2:1. In this example,
naa.disk_ID_1:1 is the name of the head partition.
Growing an Existing Extent
Instead of adding a new extent to a VMFS datastore, you can grow an existing extent using the vmkfstools -
G command.
Use the following option to increase the size of a VMFS datastore after the underlying storage had its
capacity increased.
-G --growfs device device
This option grows an existing VMFS datastore or its extent. For example,
vmkfstools --growfs /vmfs/devices/disks/disk_ID:1 /vmfs/devices/disks/disk_ID:1
Upgrading a VMFS Datastore
If you use a VMFS3 datastore, you must upgrade it to VMFS5.
C The upgrade is a one-way process. After you have converted a VMFS3 datastore to VMFS5, you
cannot revert it back.
When upgrading the datastore, use the following command: vmkfstools -T|--
upgradevmfs /vmfs/volumes/UUID
N All hosts accessing the datastore must support VMFS5 . If any ESX/ESXi host version 4.x or earlier is
using the VMFS3 datastore, the upgrade fails and the Mac address of the host that is actively using the
datastore is displayed.
vSphere Storage
286 VMware, Inc.