The way I got rid of those annoying RDMs was with the use of the OS mirroring options.
In simple steps, add another VMDK with the same size as the RDM to the VM, create a mirror, resync, break mirror, remove RDM.
These steps I used on Windows machines
- Start with adding a VMDK disk with the same size as the RDM you want to get rid off
- Initialize disk VMDK disk in disk manager
- Convert the source disk to "Dynamic" (check permissions and shares beforehand because I noticed a few cases where they were removed when converting the disk to dynamic)
- Right click on the existing RDM volume and choose "Add Mirror"
- Choose the VMDK disk to add to the mirror (this is probably the only option)
- If done right, the disks now start to resync, when there is a lot of data this can take a while. If the resync is complete both disks will show the state "Healthy" instead of "Resynching"
- Now it's time to remove the mirror as the disks are in sync
- Right click the mirrored volume and choose the option "Break Mirrored Volume" (this option will leave you with 2 identical disks which you can use), the option "Remove mirror" will destroy the mirror and 1 disk will not be usable.
- Change the drive letter(s) from the VMDK disk to the one of the RDM one.
- Remove the RDM disk from the VM through "Edit settings"
- Remove LUN from SAN
In our Linux environment we used the similar approach, but in that case the Linux admins handled it and didn't hear any issues so can't give you much tips on that one. I hope this helps you get rid of the RDM's :smileyhappy: