How to storage migrate VMs with shared VMDK disks as in virtual disks with multi-writer flag, clustered VMDK datastores (e.g. Oracle RAC, WSFC(MSCS), RHEL High Availability Cluster).
VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x
Precheck:
Note down the current SCSI controller settings, SCSI number and SCSI ID to which every Disk is connected, as the disks will need to be attached to the same SCSI ID when they are attached back once the migration is complete
Record the datastore paths of disks
Migration steps:
Shutdown/Stop the cluster application gracefully by following all the required vendor best practices
Shut down all VMs that are sharing the multi-writer VMDKs (1st shutdown all the secondary/passive VMs and then primary VM)
Remove shared disks from the secondary VMs (choose Remove from VM only, not delete from disk)
Storage vMotion all the VMs to new datastore
Re-attach the disks to secondary VMs (Please pay attention to do that reflecting same SCSI number and ID to which every Disk is connected as noted in the Precheck)
Power On the VMs starting with Primary/Active Node before powering on the secondary/passive
For migrating Virtual Machines with RDMs please refer to the below KB article:
Migrating virtual machines with Raw Device Mappings (RDMs)