"We have business critical application with MS-SQL running in virtual machine on top of VMware vSphere. OS disk is vmdk but data disk is on RDM disk. We want to get rid of RDM and migrate it into normal vmdk disk. We know there are several methods but we would like to know the safest method. We cannot accept too long service downtime but we prefer certainty against shorter down time."Let's write down customer requirements
- migrate RDM into VMDK
- migrate business critical application
- service downtime as shorter as possible
- guarantee seamless migration
IMPORTANT: First of all you have to do backup before any migration.
- RDM disk is in virtual mode (if not, you have to remove physical RDM from VM and connect RDM in virtual mode)
- Latest system and data backup exist
- At least two datastores exists. One where VM currently resides and second one where you will do migration.
- Just for Option 1: Experience with VMware Cold Migration
- Just for Option 2: Experience with VMware live Disk Migration (aka Storage vMotion)
- Just for Option 2: Availability of VMware vSphere Storage vMotion licence
- Shutdown operating system
- Use VMware Migrate function and migrate VM in power off state to another datastore. You must select another virtual disk format (for example Lazy Zeroed) and another datastore than VM current datastore. It will convert RDM to VMDK during migration.
- Power On VM and validate system functionality
- Use VMware Migrate function and migrate VM in power on state to another datastore. You must select another virtual disk format (for example Lazy Zeroed) and different datastore than VM currently resides. It will convert RDM to VMDK during data migration.
- Validate system functionality
- system is in power off so it is just disk conversion which is very safe method
- offline migration which means service downtime
- No service downtime because of online disk migration without service disruption
- Leveraging your investment into VMware enterprise capabilities
- potential issues specially on disks with high load
- if there is high disk load on RDM migration will generate another I/O which can lead into worse response times and overall service quality and availability
- migration of system where all services are running so there is potential risk of data corruption but the risk is very low and mitigated by existing data backup
There are even other methods how to convert RDM to VMDK but these two options are relatively easy, fast, save and doesn't require any special software. It simply leverage native vSphere capabilities.
Hope this helps.