Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
vsp_41_esx_server_config.pdf
Скачиваний:
10
Добавлен:
06.02.2016
Размер:
2.67 Mб
Скачать

Raw Device Mapping

10

Raw device mapping (RDM) provides a mechanism for a virtual machine to have direct access to a LUN on the physical storage subsystem (Fibre Channel or iSCSI only).

The following topics contain information about RDMs and provide instructions on how to create and manage RDMs.

This chapter includes the following topics:

n“About Raw Device Mapping,” on page 131

n“Raw Device Mapping Characteristics,” on page 134

n“Managing Mapped LUNs,” on page 136

About Raw Device Mapping

RDM is a mapping file in a separate VMFS volume that acts as a proxy for a raw physical storage device. The RDM allows a virtual machine to directly access and use the storage device. The RDM contains metadata for managing and redirecting disk access to the physical device.

The file gives you some of the advantages of direct access to a physical device while keeping some advantages of a virtual disk in VMFS. As a result, it merges VMFS manageability with raw device access.

RDMs can be described in terms such as mapping a raw device into a datastore, mapping a system LUN, or mapping a disk file to a physical disk volume. All these terms refer to RDMs.

Figure 10-1. Raw Device Mapping

Virtual machine

opens

 

reads,

 

writes

 

 

VMFS volume

 

 

mapping file

address

mapped device

resolution

 

 

Although VMware recommends that you use VMFS datastores for most virtual disk storage, on certain occasions, you might need to use raw LUNs or logical disks located in a SAN.

VMware, Inc.

131

ESX Configuration Guide

For example, you need to use raw LUNs with RDMs in the following situations:

nWhen SAN snapshot or other layered applications are run in the virtual machine. The RDM better enables scalable backup offloading systems by using features inherent to the SAN.

nIn any MSCS clustering scenario that spans physical hosts — virtual-to-virtual clusters as well as physical- to-virtual clusters. In this case, cluster data and quorum disks should be configured as RDMs rather than as files on a shared VMFS.

Think of an RDM as a symbolic link from a VMFS volume to a raw LUN. The mapping makes LUNs appear as files in a VMFS volume. The RDM, not the raw LUN, is referenced in the virtual machine configuration. The RDM contains a reference to the raw LUN.

Using RDMs, you can:

nUse vMotion to migrate virtual machines using raw LUNs.

nAdd raw LUNs to virtual machines using the vSphere Client.

nUse file system features such as distributed file locking, permissions, and naming. Two compatibility modes are available for RDMs:

nVirtual compatibility mode allows an RDM to act exactly like a virtual disk file, including the use of snapshots.

nPhysical compatibility mode allows direct access of the SCSI device for those applications that need lower level control.

Benefits of Raw Device Mapping

An RDM provides a number of benefits, but it should not be used in every situation. In general, virtual disk files are preferable to RDMs for manageability. However, when you need raw devices, you must use the RDM.

RDM offers several benefits.

User-Friendly Persistent

Provides a user-friendly name for a mapped device. When you use an RDM,

Names

you do not need to refer to the device by its device name. You refer to it by the

 

name of the mapping file, for example:

 

/vmfs/volumes/myVolume/myVMDirectory/myRawDisk.vmdk

Dynamic Name

Stores unique identification information for each mapped device. VMFS

Resolution

associates each RDM with its current SCSI device, regardless of changes in the

 

physical configuration of the server because of adapter hardware changes, path

 

changes, device relocation, and so on.

Distributed File Locking

Makes it possible to use VMFS distributed locking for raw SCSI devices.

 

Distributed locking on an RDM makes it safe to use a shared raw LUN without

 

losing data when two virtual machines on different servers try to access the

 

same LUN.

File Permissions

Makes file permissions possible. The permissions of the mapping file are

 

enforced at file-open time to protect the mapped volume.

File System Operations

Makes it possible to use file system utilities to work with a mapped volume,

 

using the mapping file as a proxy. Most operations that are valid for an ordinary

 

file can be applied to the mapping file and are redirected to operate on the

 

mapped device.

Snapshots

Makes it possible to use virtual machine snapshots on a mapped volume.

 

Snapshots are not available when the RDM is used in physical compatibility

 

mode.

132

VMware, Inc.

 

Chapter 10 Raw Device Mapping

vMotion

Lets you migrate a virtual machine with vMotion. The mapping file acts as a

 

proxy to allow vCenter Server to migrate the virtual machine by using the same

 

mechanism that exists for migrating virtual disk files.

 

Figure 10-2. vMotion of a Virtual Machine Using Raw Device Mapping

 

 

Host 1

 

Host 2

 

 

 

VMotion

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VM1

VM2

 

 

 

 

 

 

VMFS volume

 

 

 

mapping file

 

 

 

address

 

 

 

resolution

 

 

 

mapped device

SAN Management

Makes it possible to run some SAN management agents inside a virtual

Agents

machine. Similarly, any software that needs to access a device by using

 

hardware-specific SCSI commands can be run in a virtual machine. This kind

 

of software is called SCSI target-based software. When you use SAN

 

management agents, select a physical compatibility mode for the RDM.

N-Port ID Virtualization

Makes it possible to use the NPIV technology that allows a single Fibre Channel

(NPIV)

HBA port to register with the Fibre Channel fabric using several worldwide

 

port names (WWPNs). This ability makes the HBA port appear as multiple

 

virtual ports, each having its own ID and virtual port name. Virtual machines

 

can then claim each of these virtual ports and use them for all RDM traffic.

NOTE You can use NPIV only for virtual machines with RDM disks.

VMware works with vendors of storage management software to ensure that their software functions correctly in environments that include ESX. Some applications of this kind are:

nSAN management software

nStorage resource management (SRM) software

nSnapshot software

nReplication software

Such software uses a physical compatibility mode for RDMs so that the software can access SCSI devices directly.

VMware, Inc.

133

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]