Loading

×Sorry to interrupt
CSS Error

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

Recreating pass-through Raw Device Mapping (RDM) files for a virtual machine (1026256)

Last Updated: 11/22/2023Categories: How toTotal Views: 80810Language:
Chinese (Simplified)JapaneseEnglish

4 like this article

Subscribe to get an email
newsletter with new updates

4 people found this helpful Please provide article feedback:

Purpose

This article provides instructions on recreating Raw Device Mapping (RDM) files for virtual machines in a VMware Infrastructure 3 or newer data center.

Resolution

If the descriptor file of an RDM is missing, delete the remaining mapping file (name–rdm.vmdk or name–rdmp.vmdk) and recreate the RDM.

Note: Deleting the mapping file or descriptor file for the RDM does not affect the data

Unlike standard virtual machine disk files in VMware ESX 3.x and newer, the RDM comprises of a name–rdm.vmdk or name–rdmp.vmdk mapping file, and the associated name.vmdk descriptor file. These files are used to map a RAW LUN for use with a virtual machine.

Creating a new RDM, modifying the descriptor file content, and using it in-place of a mapping file that is missing is possible, but usually unnecessary. However, these requirements are documented if such circumstances are present.

Note: Easiest option to create the RDM is through the vSphere Client. But, if needed, the commands in this article can be used to create RDMs using the host console. For additional RDM creation procedures, see the product documentation.

Creating a virtual RDM

Creating a virtual RDM creates two files:

The descriptor file, example.vmdk

The mapping or pointer file, example-rdm.vmdk

To create a virtual RDM, run the command:

vmkfstools -r /vmfs/devices/disks/<device> example.vmdk

Note: The <device> nomenclature varies between VMware ESX product releases. For more information, see Identifying disks when working with VMware ESX/ESXi (1014953).

The resulting descriptor file example.vmdk contains similar information to a standard virtual machine disk, with these exceptions:

Standard virtual machine disk descriptor file

Standard virtual machine Raw Device Mapping file

# Disk DescriptorFile
version=1
CID=fb183c20
parentCID=ffffffff
createType="vmfs"

# Extent description
RW 8388608 VMFS "example-flat.vmdk"

# The Disk Data Base
#DDB

ddb.virtualHWVersion = "4"
ddb.geometry.cylinders = "522"
ddb.geometry.heads = "255"
ddb.geometry.sectors = "63"
ddb.adapterType = "lsilogic"

# Disk DescriptorFile
version=1
CID=fb183c20
parentCID=ffffffff
createType="vmfsRawDeviceMap"

# Extent description
RW 8388608 VMFSRDM "example-rdm.vmdk"

# The Disk Data Base
#DDB

ddb.virtualHWVersion = "4"
ddb.geometry.cylinders = "522"
ddb.geometry.heads = "255"
ddb.geometry.sectors = "63"

The createType is vmfsRawDeviceMap.

The Extent description directs to the example-rdm.vmdk mapping file.

The Extent description indicates the type is VMFSRDM.

The adapter type is either buslogic or lsilogic, depending on your intended virtual SCSI controller configuration.

Creating a physical RDM

Similar to creating a virtual RDM, creating a physical RDM creates two files:

The descriptor file example.vmdk

The mapping or pointer file, example-rdmp.vmdk

To create a physical RDM, run the command:

vmkfstools -z /vmfs/devices/disks/device example.vmdk

Note: The device nomenclature varies between VMware ESX product releases. For more information, see Identifying disks when working with VMware ESX/ESXi (1014953).

The resulting descriptor file example.vmdk contains similar information to a standard virtual machine disk, with these exceptions:

# Disk DescriptorFile
version=1
CID=fb183c20
parentCID=ffffffff
createType="vmfs"

# Extent description
RW 8388608 VMFS "example-flat.vmdk"

# The Disk Data Base
#DDB

ddb.virtualHWVersion = "4"
ddb.geometry.cylinders = "522"
ddb.geometry.heads = "255"
ddb.geometry.sectors = "63"
ddb.adapterType = "lsilogic"

# Disk DescriptorFile
version=1
CID=fb183c20
parentCID=ffffffff
createType="vmfsPassthroughRawDeviceMap"

# Extent description
RW 8388608 VMFSRDM "example-rdmp.vmdk"

# The Disk Data Base
#DDB

ddb.virtualHWVersion = "4"
ddb.geometry.cylinders = "522"
ddb.geometry.heads = "255"
ddb.geometry.sectors = "63"
ddb.adapterType = "buslogic"

The createType is vmfsPassthroughRawDeviceMap.

The Extent description directs to the example-rdmp.vmdk mapping file.

The Extent description indicates the type is VMFSRDM.

The adapter type is either buslogic or lsilogic, depending on your intended virtual SCSI controller configuration.

Note: Additional parameters or strings within these descriptor files are possible, depending on the version of VMware ESX used. Usually these additional lines are safe to retain. Relevant items that pertain to this article are noted in red, above.

Related Information

For more information on virtual disks, see VMware Virtual Disks: Virtual Disk Format v1.1.
Identifying disks when working with VMware ESXi/ESX
仮想マシンのパス スルー Raw デバイス マッピング（RDM）ファイルを再度作成する
为虚拟机重新创建直通裸设备映射 (RDM) 文件

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)JapaneseEnglish

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

KB
•
VMware los dispositivos virtuales y las personalizaciones al sistema operativo y los paquetes incluidos (2090839)

Results 1-2 of 2

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

Related Versions:

Take Our Survey

Support Assistant