Chapter 5. Test the cluster configuration
5.1. Check the constraints Copy linkLink copied to clipboard!
5.2. Failover ASCS due to node crash Copy linkLink copied to clipboard!
Before the crash, ASCS is running on s4node1 while ERS is 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, cluster should be in such state, with ASCS and ERS both on s4node2.
5.3. ERS moves to the previously failed node Copy linkLink copied to clipboard!
Bring s4node1 back online and start the cluster:
pcs cluster start
[root@s4node1 ~]# pcs cluster start
ERS should move to s4node1, while ASCS remains on s4node2. Wait for ERS to finish the migration, and at the end the cluster should be in such state: