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

Skip to main content

My Subscriptions

Loading

Knowledge Base

Migrating virtual machines with Raw Device Mappings (RDMs) (1005241)

Last Updated: 3/31/2021Categories: InformationalTotal Views: 59455Language:
Chinese (Simplified)JapaneseEnglish

57 like this article

Subscribe to get an email
newsletter with new updates

57 people found this helpful Please provide article feedback:

Learn how VMware Skyline Advisor and Skyline Health Diagnostics work together to provide proactive intelligence and self-service log analysis.

Use Skyline Advisor to avoid issues before they occur across VCF, vSphere, vSAN, NSX, vROps & Horizon. Skyline Findings are based on top KBs, VMSAs/CVEs and design best practices.

Use Skyline Health Diagnostics to root cause vSphere & vSAN logs when an issue occurs. Skyline Health Diagnostic Findings are based on top KBs and VMSA/CVEs. You can use the Skyline Health Diagnostics tool in online or offline mode.

If you require additional help from technical support, please use Skyline Advisor to initiate a Log Assist to reduce time to upload logs. TSEs can also initiate logs to reduce effort.

Symptoms

When migrating virtual machines that have disks configured with Raw Device Mappings (RDMs), you experience this symptom:

The storage vMotion fails.

Purpose

This article discusses some of the common questions that arise when migrating virtual machines that use Raw Device Mappings (RDMs).

Migrating virtual machines with RDMs can be performed in three ways:

Warm migration (vMotion), with the virtual machine powered on.

Cold migration, with the virtual machine powered off.

Storage migration (Storage vMotion), with the virtual machine powered on.

Resolution

Warning:

When an RDM is removed from the virtual machine configuration, the device associated with this RDM becomes visible in the list of available devices during an attempt to increase the size of a VMFS datastore. This device can be selected during the process, which can overwrite the existing data present on that device.

To prevent such accidental lost, use one of these options:

Inform all necessary parties involved to ensure these devices does not get selected when performing VMFS datastore size increase.

Temporarily detach the device that has issue from all the ESXi hosts on the cluster.

Note: An HBA rescan can potentially reattach these devices.

vMotion

Files for a virtual machine are not relocated when it is migrated using vMotion.

The virtual machine is re-registered to the destination host.

Any RDMs remain as RDMs when the virtual machine is registered to another host. That is, no changes to the virtual machine itself are made.

Cold migration

With file relocation:

Any non-RDM virtual disks are physically moved to the destination.

The virtual machine configuration files are physically moved to the destination.

Raw LUNs themselves cannot be moved, as they are raw disks presented from the SAN. However, the pointer files (RDMs) can be relocated if required.

When performing a cold migration of a virtual machine with RDMs attached to it, the contents of the raw LUN mapped by the RDM are copied into a new .vmdk file at the destination, effectively converting or cloning a raw LUN into a virtual disk. This also applies when the virtual machine is not moving between ESXi hosts. In this process, your original raw LUN is left intact. However, the virtual machine no longer reads or writes to it. Instead, the newly-created virtual disk is used.

If you want to cold migrate a virtual machine without cloning or converting its RDMs, remove them from the configuration of the virtual machine before migrating. You can delete the RDM from the disk when removing it (the raw LUN contents are not changed). Re-add them to the configuration when completed.

For ESXi 5.x and later: During the migration you can use the Advanced section of the migration wizard and select if you want to maintain the same format of the files at the destination or convert it to a thick/thin disk.

The virtual machine registration changes, but the files are left untouched.

Cloning

If you want to clone a virtual machine without its RDMs, remove them from the configuration of the virtual machine before migrating. You can delete the RDM from the disk when removing it (the raw LUN contents are not changed, only the RDM mapping file is deleted). Re-add them to the configuration when completed.

Storage vMotion

When you perform Storage vMotion, the virtual machine files are physically relocated to a destination datastore. The same host retains ownership or registration of the virtual machine after Storage vMotion completes.

Notes:

In ESXi 6.x and later, during the Storage vMotion operation, virtual mode RDM data can be migrated to new VMDK disks by selecting either thick or thin provisioning for the disk type under the Advanced section of the migration wizard.

When migrating Physical mode RDM pointer files that are greater than 2TB using Storage vMotion, you must use the vSphere Web Client.

Physical mode RDM data can be migrated to VMDK disks only through cold migration.

If you do not change the destination format to thick or thin provisioned for an RDM in the advanced section of the migration wizard, only the RDM mapping file will be migrated to the destination datastore.

If using N-Port ID Virtualization (NPIV), Storage vMotion is not supported. For more information, see the NPIV Capabilities and Limitations section in the vSphere Storage Guide .

If you are attempting a Storage vMotion of a virtual mode RDM using the Advanced method, and the RDM pointer mapping file is already present in the target datastore, the Storage vMotion finishes quickly, but without moving the data. This is because the Storage vMotion detects that the source and target datastores for the mapping file are the same, and therefore concludes that no movement is needed.

To work around this issue:

Remove the RDM from the virtual machine, and delete it from disk to ensure that the mapping file is deleted. This will not delete the data in the RDM.

Add the RDM again, and put the mapping file in a different datastore than the ultimate target of the Storage vMotion.

After the virtual machine reconfiguration is complete, attempt the Storage vMotion again.

Note: To avoid downtime, you can migrate the virtual mode RDM pointer file to an alternate datastore (that is, any other datastore than the actual destination datastore), then Storage vMotion the same pointer file back using either Thick Zeroed or Thick Eager Zeroed disk format. Using the du -ah command, you can confirm if the pointer exists in the directory on the alternate datastore.

For more information on the various steps involved during the migration, see Migrating virtual machines .

For instructions on using Storage vMotion, see Migration with Storage vMotion.

Notes:

Storage vMotion of virtual machines using virtual compatibility mode RDMs is supported. However, clustered applications or clustered virtual machine configurations do not support Storage vMotion. RDM Considerations and Limitations.

RDM .vmdk pointer files must reside on VMFS datastores. The NFS protocol does not support SCSI commands. For more information, see Unable to add a physical mode disk mapping (RDM) to a virtual machine stored on an NFS datastore (1001856).

For Storage vMotion requirements and limitations, see the Storage vMotion Requirements and Limitations section of the vSphere Virtual Machine Administration.

Related Information

VMware Skyline Health Diagnostics for vSphere - FAQ (81931)
Raw Device Mapping for local storage
Snapshots

Ensure that snapshots are committed before performing storage migrations, especially if you are removing mappings or disks from your virtual machine configuration and later re-adding them. During re-addition of the respective disk, the VMware Infrastructure or vSphere Client does not allow you to re-select a specific (the previous) snapshot level or .vmdk file to add back to the virtual machine configuration.

Block size and capacity limitations of your destination datastore

Raw Device Mappings occasionally represent large raw LUNs. If you clone a virtual machine with an RDM still attached, the contents of the raw LUN mapped by the RDM are copied into a new virtual disk (.vmdk) file at the destination. Converting an RDM into a virtual disk (.vmdk) file does not succeed if your destination or target datastore does not have the capability of storing single contiguous files as large as the raw LUN. Large virtual disks have the same requirements or constraints.

For example, if your destination datastore is VMFS-3 created with a 2 MB block size, and the RDM or virtual disk being converted or migrated is 640 GB, the process fails. A VMFS-3 block size of 4 MB or higher is necessary to store files larger than 512 GB. For more information, see Block size limitations of a VMFS datastore (1003565).
Unable to add a physical mode disk mapping (RDM) to a virtual machine stored on an NFS datastore
Block size limitations of a VMFS datastore
Moving virtual machines with Storage vMotion
Switching a raw data mapping between physical and virtual compatibility modes in ESX/ESXi
Migrating virtual machines
Migrating virtual machines with snapshots
迁移使用裸设备映射 (RDM) 的虚拟机
Raw デバイス マッピング（RDM）を使用している仮想マシンの移行
一つ以上の RDM のディスクが接続された仮想マシンの移行が、次のエラーで失敗する：Target disc should be different than the source disc, unable to access file

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)

Result 1 of 1

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vSphere ESXi

VMware vCenter Server

VMware ESX Server

Related Versions:

VMware vSphere ESXi 7.0.0

VMware vSphere ESXi 6.7

VMware vSphere ESXi 6.5

VMware vSphere ESXi 6.0

VMware vCenter Server 6.7.x

VMware vCenter Server 6.5.x

Take Our Survey

Was this article helpful?

YES

NO

Copyright © 2005-2024 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.

Terms of Use

Your California Privacy Rights

Privacy

Accessibility

Cookie Settings

Support Assistant