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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

You specify the newSize parameter in kilobytes, megabytes, or gigabytes by adding a k (kilobytes), m<br />

(megabytes), or g (gigabytes) suffix. The unit type is not case sensitive. vmkfstools interprets either k or K to<br />

mean kilobytes. If you don’t specify a unit type, vmkfstools defaults to kilobytes.<br />

The newSize parameter defines the entire new size, not just the increment you add to the disk.<br />

For example, to extend a 4g virtual disk by 1g, enter: vmkfstools -X 5g disk name.<br />

You can extend the virtual disk to the eagerzeroedthick format by using the -d eagerzeroedthick option.<br />

NOTE Do not extend the base disk of a virtual machine that has snapshots associated with it. If you do, you<br />

can no longer commit the snapshot or revert the base disk to its original size.<br />

Upgrading Virtual Disks<br />

This option converts the specified virtual disk file from ESX Server 2 format to the <strong>ESXi</strong> format.<br />

-M --migratevirtualdisk<br />

Creating a Virtual Compatibility Mode Raw Device Mapping<br />

This option creates a Raw Device Mapping (RDM) file on a VMFS volume and maps a raw LUN to this file.<br />

After this mapping is established, you can access the LUN as you would a normal VMFS virtual disk. The file<br />

length of the mapping is the same as the size of the raw LUN it points to.<br />

-r --createrdm device<br />

When specifying the device parameter, use the following format:<br />

/vmfs/devices/disks/disk_ID:P<br />

Example for Creating a Virtual Compatibility Mode RDM<br />

In this example, you create an RDM file named my_rdm.vmdk and map the disk_ID raw disk to that file.<br />

vmkfstools -r /vmfs/devices/disks/disk_ID my_rdm.vmdk<br />

You can configure a virtual machine to use the my_rdm.vmdk mapping file by adding the following lines to the<br />

virtual machine configuration file:<br />

scsi0:0.present = TRUE<br />

scsi0:0.fileName = /vmfs/volumes/myVMFS/my_rdm.vmdk<br />

Creating a Physical Compatibility Mode Raw Device Mapping<br />

This option lets you map a pass-through raw device to a file on a VMFS volume. This mapping lets a virtual<br />

machine bypass <strong>ESXi</strong> SCSI command filtering when accessing its virtual disk.This type of mapping is useful<br />

when the virtual machine needs to send proprietary SCSI commands, for example, when SAN-aware software<br />

runs on the virtual machine.<br />

-z --createrdmpassthru device<br />

After you establish this type of mapping, you can use it to access the raw disk just as you would any other<br />

VMFS virtual disk.<br />

When specifying the device parameter, use the following format:<br />

/vmfs/devices/disks/disk_ID<br />

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

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

Saved successfully!

Ooh no, something went wrong!