Specifications
VMware, Inc. 261
Chapter 9 Storage and File Systems
The!following!example!imports!a!GSX!Server!or!Workstation!virtual!disk!file!into!the!
VMFS!volume!on!the!specified!SCSI!device:
vmkfstools -i winXP.vmdk vmhba0:6:0:1:winXP.vmdk
By!contrast,!if!you!are!importing!directly!into!a!raw!partition,!the!example!becomes:
vmkfstools -i winXP.vmdk vmhba0:6:0:1
Lists the files on the VMFS of the specified device
vmkfstools -l vmhba0:2:0:0
This!command!illustrates!listing!the!contents!of!the!file!system,!including!redo!logs,!
virtual!disk!files,!and!swap!files!on!target!2!of!SCSI!adapter!0.!
Accessing Raw SCSI Disks
You!can!access!raw!disks!directly!or!use!the!vmkfstools -r!command!to!map!them!to!
files!on!VMFS‐2!volumes.!After!this!mapping!is!established,!you!access!the!raw!disk!or!
partition!like!a!normal!file.!For!information!about!this!mapping,!see!“Using!
vmkfstools”!on!page 249,!in!particular,!the!vmkfstools -r
!option.
Using a Physical Disk in a Virtual Machine
For!the!virtual!machine!to!access!a!physical!disk!or!LUN,!you!must!add!the!disk!to!the!
virtual!machine.!This!example!assumes!that!the!virtual!machine’s!first!disk!is!a!virtual!
disk!and!you!are!adding!the!physical!disk!as!the!second!disk.!
If!you!want!the!virtual!machine’s! first
!disk!to!be!a!physical!disk,!see!“Creating!a!New!
Virtual!Machine”!on!page 39!and!select!System!LUN/Disk!for!your!virtual!disk.
To configure the virtual machine to use a physical disk
1Log!into!the!VMware!Management!Interface!as!the!user!who!owns!the!virtual!
machine!or!as!the!root!user.!
The!Status!Monitor!appears.
2Click!the!arrow!to!the!right
!of!the!terminal!icon!(!!)!for!the!virtual!machine!you!
want!to!change!and!choose!Configure!Hardware.
N
OTE See!also!the!VMware!technical!note!ESX!Server!Raw!Device!Mapping,!available!at!
www.vmware.com/support/resources/esx_resources.html.