18.08.2013 Views

vSphere Storage - ESXi 5.1 - Documentation - VMware

vSphere Storage - ESXi 5.1 - Documentation - VMware

vSphere Storage - ESXi 5.1 - Documentation - VMware

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>vSphere</strong> <strong>Storage</strong><br />

This option creates a virtual disk at the specified path on a datastore. Specify the size of the virtual disk. When<br />

you enter the value for size, you can indicate the unit type by adding a suffix of k (kilobytes), m (megabytes),<br />

or g (gigabytes). The unit type is not case sensitive. vmkfstools interprets either k or K to mean kilobytes. If you<br />

don’t specify a unit type, vmkfstools defaults to bytes.<br />

You can specify the following suboptions with the -c option.<br />

n -a specifies the controller that a virtual machine uses to communicate with the virtual disks. You can<br />

choose between BusLogic, LSI Logic, IDE, LSI Logic SAS, and <strong>VMware</strong> Paravirtual SCSI.<br />

n -d specifies disk formats.<br />

Example for Creating a Virtual Disk<br />

This example illustrates creating a two-gigabyte virtual disk file named rh6.2.vmdk on the VMFS file system<br />

named myVMFS. This file represents an empty virtual disk that virtual machines can access.<br />

vmkfstools -c 2048m /vmfs/volumes/myVMFS/rh6.2.vmdk<br />

Initializing a Virtual Disk<br />

Use the vmkfstools command to initialize a virtual disk.<br />

-w --writezeros<br />

This option cleans the virtual disk by writing zeros over all its data. Depending on the size of your virtual disk<br />

and the I/O bandwidth to the device hosting the virtual disk, completing this command might take a long time.<br />

CAUTION When you use this command, you lose any existing data on the virtual disk.<br />

Inflating a Thin Virtual Disk<br />

Use the vmkfstools command to inflate a thin virtual disk.<br />

-j --inflatedisk<br />

This option converts a thin virtual disk to eagerzeroedthick, preserving all existing data. The option allocates<br />

and zeroes out any blocks that are not already allocated.<br />

Removing Zeroed Blocks<br />

Use the vmkfstools command to convert any thin, zeroedthick, or eagerzeroedthick virtual disk to a thin disk<br />

with zeroed blocks removed.<br />

-K --punchzero<br />

This option deallocates all zeroed out blocks and leaves only those blocks that were allocated previously and<br />

contain valid data. The resulting virtual disk is in thin format.<br />

Converting a Zeroedthick Virtual Disk to an Eagerzeroedthick Disk<br />

Use the vmkfstools command to convert any zeroedthick virtual disk to an eagerzeroedthick disk.<br />

-k --eagerzero<br />

While performing the conversion, this option preserves any data on the virtual disk.<br />

Deleting a Virtual Disk<br />

This option deletes a virtual disk file at the specified path on the VMFS volume.<br />

-U --deletevirtualdisk<br />

260 <strong>VMware</strong>, Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!