Skip to content
Luca Dell'Oca Principal Cloud Architect @Veeam
Virtual To The Core Virtual To The Core

Virtualization blog, the italian way.

  • Media
  • About me
Virtual To The Core
Virtual To The Core

Virtualization blog, the italian way.

Howto convert a physical RDM into a VMDK disk

Luca Dell'Oca, June 17, 2013December 4, 2016

I’m working with a customer to refresh his VMware infrastructure. At the moment, the platform is based on ESX 3.5 and vCenter 2.5, so it’s pretty old. The upgrade phase is not going to be a problem, but the customer in the past has followed too much some old reccomendations, and has made a high usage of RDM disks, bacause he was worried about performances of his virtual machines.

I found several VMs with the primary disk in VMDK format, followed by a second disk (dedicated to the applications, mainly databases, app servers or mail) in physical RDM format.

Since a part of the project is to have a complete data protection solution completely based on VMware VADP libraries, we suggested the customer to convert all the RDM disks into VMDK disks. With the latest vSphere releases, there are really no performance differences to justify RDM disks if not for Microsoft clusters or other situations requiring shared disks between VMs, while in the contrary it’s not possible to take snapshots of physical RDM disks, thus preventing backups of those disks and forcing to use backup agents inside the Guest OS.

To validate the procedure, and to reassure the customer, I realized a quick test to show the conversion process. This task can only be done once the infrastructure is upgraded at least to vSphere 4, since (based on KB1005241) a storage vmotion on ESX 3.5 of a virtual RDM does not convert it to VMDK, while this is possible with vSphere 4.0 or newer versions.

In my lab, I created a simple Windows 2003 VM, with a primary 20 Gb vmdk disk , and a secondary 5 Gb physical RDM disk:

Physical RDM disk

To complete the conversion, the VM must be shut down at least once, so you need to schedule the activity with the customer.

Once the VM is stopped, you need to edit its settings and remove the RDM disk. Write down the Virtual Device Node (0:1 in my example), because later you will have to reconnect the disk with the same value.

Remove RDM disk

Select the option “Deletes files from datastore”. Don’t be scared: since it’s a physical RDM, the only thing that will be deleted is the pointer to the RDM disk, not the disk itself.

Then, add a new RDM disk to the VM using the same LUN you removed before:

Add a new RDM disk

This time, choose “virtual” competibility mode, and select the same device node value as before. This let the Guest OS think the disk is the same as before.

Add virtual RDM

Now you can start again the VM. The downtime could be reduced to a couple of minutes if you do all the operation quickly. Then, initiate a storage vmotion, it will automatically convert the virtual RDM disk in a VMDK disk without further downtime (but be prepared to it if you do not have SVMotion license and thus you need a cold migration):

Disk converted into VMDK format

Share this:

  • Twitter
  • Facebook
  • LinkedIn
  • Email
  • Tumblr
  • Pinterest
  • Reddit
  • WhatsApp
  • Pocket
Tech convertdiscodiskhowtomodephysicalrdmstorage vmotionsvmotionvirtualvmdkvsphere

Post navigation

Previous post
Next post

Comments (4)

  1. Dan says:
    September 22, 2014 at 23:16

    After completing these steps my VM (Windows 2008 R2 Enterprise) was stuck in a boot loop, I had to set the RDMs back to physical? I was also unable to cold storage migrate, any ideas?
    Thanks

  2. Luca Dell'Oca says:
    September 23, 2014 at 08:02

    Hi,
    no I’ve never experienced such an error. Since there is an error also while trying to cold migrate the VM, it could be something else, worth investigating with VMware support probably.

  3. Pingback: RDM to VMKD – reposted blog | Infrastructure Land
  4. Ken Miller says:
    February 15, 2017 at 15:29

    In a cluster, after the 1st node has been vmotioned and the disks converted to vmdks, what has to be done on the other cluster nodes to map to the new vmdks? Also, do the cluster disks in the Microsoft cluster have to be removed and re-added as well?

Comments are closed.

Search

Sponsors

Latest Posts

  • My Automated Lab project: #6 Create a S3 Bucket with Terraform
  • My Automated Lab project: #5 Deploy a Linux vSphere VM with Terraform and custom disks
  • My Automated Lab project: #4 Deploy the VMs from templates using Terraform
  • My Automated Lab project: #3 Create a Windows Server 2019 template in VMware vSphere with Packer
  • My Automated Lab project: #2 Create a Ubuntu template in VMware vSphere with Packer
©2023 Virtual To The Core | WordPress Theme by SuperbThemes