Chapter 7. Test failover
7.1. Failover ASCS due to node crash Copy linkLink copied to clipboard!
Before the crash, ASCS was running on s4node1 while ERS was running on s4node2.
On s4node2, run the following command to monitor the status changes in the cluster:
crm_mon -Arf
[root@s4node2 ~]# crm_mon -Arf
Crash s4node1 by running the following command. Please note that connection to s4node1 will be lost after the command.
echo c > /proc/sysrq-trigger
[root@s4node1 ~]# echo c > /proc/sysrq-trigger
On s4node2, monitor the failover process. After failover, the cluster should be in such a state that the ASCS and ERS instance is running on s4node2.
7.2. ERS moves to the previously failed node Copy linkLink copied to clipboard!
Bring s4node1 back online. ERS should remain on the current node instead of moving back to s4node1.
7.3. Test ERS crash Copy linkLink copied to clipboard!
Similarly, test crash the node where ERS is running. The ERS group should failover to the spare node while ASCS remains intact on its current node. After the crashed node is back, the ERS group should not move back.