VMware vSphere

 View Only
  • 1.  Clone VM with RDM

    Posted Jan 12, 2021 09:48 PM

    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



  • 2.  RE: Clone VM with RDM

    Posted Jan 12, 2021 10:00 PM

     

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



  • 3.  RE: Clone VM with RDM

    Posted Jan 12, 2021 10:01 PM

     

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

     



  • 4.  RE: Clone VM with RDM

    Posted Jan 13, 2021 02:24 AM

    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



  • 5.  RE: Clone VM with RDM

    Posted Jan 13, 2021 08:19 AM

    Hey ,

    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.

     

     



  • 6.  RE: Clone VM with RDM

    Posted Jan 15, 2021 03:16 PM

    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

     



  • 7.  RE: Clone VM with RDM

    Posted Jan 15, 2021 05:02 PM

    Hey ,

    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