VMware Cloud Community
fborges555
Enthusiast
Enthusiast

Clone VM with RDM

HI gurus

 

How to accomplish cloning a vm with an RDM attached to it, it errors 

"The operation is not supported with virtual disks in independent mode or raw disk mappings in physical compatibility mode."

 

thanks for any help

Reply
0 Kudos
6 Replies
scott28tt
VMware Employee
VMware Employee

@fborges555 

Moderator: Moved to vSphere Discussions, this is a vSphere administration matter.


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
Reply
0 Kudos
scott28tt
VMware Employee
VMware Employee

@fborges555 

Do you also need to “clone” whatever data is in the LUN which backs the RDM, or not?

 


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
Reply
0 Kudos
fborges555
Enthusiast
Enthusiast

S.

 

Thanks for jumping in, I would like to clone the machine with everything attached to it, so clone the vm and clone the RDM also as well.

 

Thanks

Reply
0 Kudos
Lalegre
Virtuoso
Virtuoso

Hey @fborges555,

As the error clearly says you cannot clone a virtual machine with the RDM in Physical Mode attached to it as the cloning operations uses an snapshot temporarily and they cannot be used in that mode. However if your RDM is in Virtual Mode, the cloning operation will convert it to VMDK in the destination VM.

The only way of doing this is removing the RDM from the virtual machine, clone the same and in the destination one create the RDM once again. If you delete the RDM it will not affect the data as it only deletes the mapper files for the RDM and do not interact with the LUN directly.

 

 

fborges555
Enthusiast
Enthusiast

L.

 

The machine in question is on Virtual mode but I think  where I have the issue is on the "Disk compatibility " as is independent persistent

I have read if you turn the machine off, this cloning will happen, but I am not 100% sure of this

thoughts

 

Thanks again for helping

 

Reply
0 Kudos
Lalegre
Virtuoso
Virtuoso

Hey @fborges555,

Oh then nothing related with RDM as it is a VMDK and yes the supported way of cloning the VM with independent disk is by powering it off first and then executing the action.

The explanation is here: https://kb.vmware.com/s/article/1010396

Reply
0 Kudos