Moving an existing RDM to a different VM

简介:

moveexistingrdm01


Moving an existing RDM from one virtual machine to another some steps are required to avoid data loss and to keep the disk configuration.

The RDM allows a virtual machine to directly access and use the storage device and before proceeding with the move, the virtual machine where the RDM is currently attached must be shut down.

From vSphere Web Client (vSphere 5.5 has been used in the example), right click the VM to process and select Shutdown Guest OS option.

moveexistingrdm02


Click Yes to confirm the shut down.

moveexistingrdm03


 

Remove the RDM

From vSphere Web Client, select the VM and click Edit Settings in the VM Hardware area.

Keep in mind this procedure destroys the mapping file, not the LUN content.

moveexistingrdm04


Identify the RDM hard disk to remove.

moveexistingrdm05


Click on the ‘x’ sign to remove the disk.

moveexistingrdm06


Enable Delete files from datastore option then click OK.

moveexistingrdm07


Hard disk 2 has been removed from the VM. LUN and its contenut are not altered during this step.

moveexistingrdm08


 

Attach the RDM to the new VM

In the new virtual machine, click Edit Settings under the VM Hardware area.

moveexistingrdm09


In the New device field, click the right arrow to open the drop-down menu and select RDM Disk option.

moveexistingrdm10


Click Add button.

moveexistingrdm11


From the list of SAN disks or LUNs, select the LUN to access directly and click OK.

moveexistingrdm12


Click on the just attached New Hard disk and select the appropriate Compatibility Mode (i.e. Physical).

moveexistingrdm13


Click OK to save the configuration.

moveexistingrdm14


The new RDM disk (Hard disk 2) is now attached to the VM.

moveexistingrdm15


Access the processed virtual machine (a Windows VM in the example) and open the Disk Management tool. Right click the new attached disk and select Online option.

moveexistingrdm16


The partition previously configured in the old VM is retained and is now available to the new VM.

moveexistingrdm17


To check if the RDM move procedure have been completed successfully, try accessing files and folders using Windows Explorer.

moveexistingrdm18

As best practice, before moving disks and LUNs be sure to have a full working backup.

本文转自学海无涯博客51CTO博客,原文链接http://blog.51cto.com/549687/1826023如需转载请自行联系原作者


520feng2007

相关文章
|
9月前
|
运维 监控 网络协议
译|llustrated Guide to Monitoring and Tuning the Linux Networking Stack: Receiving Data
译|llustrated Guide to Monitoring and Tuning the Linux Networking Stack: Receiving Data
72 0