1.7. Issues with Live Migration of VMs in a RHEL cluster
- If any preparations need to be made before stopping or moving the resources or software running on the VM to migrate, perform those steps.
- Move any managed resources off the VM. If there are specific requirements or preferences for where resources should be relocated, then consider creating new location constraints to place the resources on the correct node.
- Place the VM in standby mode to ensure it is not considered in service, and to cause any remaining resources to be relocated elsewhere or stopped.
pcs cluster standby VM
- Run the following command on the VM to stop the cluster software on the VM.
pcs cluster stop
- Perform the live migration of the VM.
- Start cluster services on the VM. If cluster services had been enabled before migration, you can enable them again.
pcs cluster start#
pcs cluster enable
- Take the VM out of standby mode.
pcs cluster unstandby VM
- If you created any temporary location constraints before putting the VM in standby mode, adjust or remove those constraints to allow resources to go back to their normally preferred locations.