Testing BCM HA#

Login to the secondary head node to be made active and run cmha makeactive.

# ssh bcm-head-02
# cmha makeactive
=========================================================================
This is the passive head node. Please confirm that this node should become
the active head node. After this operation is complete, the HA status of
the head nodes will be as follows:
bcm-head-02 will become active head node (current state: passive)
bcm-head-01 will become passive head node (current state: active)
=========================================================================
Continue(c)/Exit(e)? c
Initiating failover.............................. [ OK ]
bcm-head-02 is now active head node, makeactive successful

Run the cmsh status command again to verify that the secondary head node has become the active head node.The active head node is indicated by an asterisk.

# cmha status
Node Status: running in active mode
bcm-head-02\* -> bcm-head-01
failoverping [ OK ]
mysql [ OK ]
ping [ OK ]
status [ OK ]
bcm-head-01 -> bcm-head-02\*
failoverping [ OK ]
mysql [ OK ]
ping [ OK ]
status [ OK ]

Manually failover back to the primary head node by running cmha makeactive

# ssh bcm10-headnode1
# cmha makeactive
===========================================================================
This is the passive head node. Please confirm that this node should
become the active head node. After this operation is complete, the HA status
of the head nodes will be as follows:
bcm-head-01 will become active head node (current state: passive)
bcm-head-02 will become passive head node (current state: active)
===========================================================================
Continue(c)/Exit(e)? c
Initiating failover.............................. [ OK ]
bcm-head-01 is now active head node, makeactive successful

Run cmha status command again to verify that the primary head node has become the active head node. Then proceed to power on the cluster nodes

# cmha status
Node Status: running in active mode
bcm-head-01\* -> bcm-head-02
failoverping [ OK ]
mysql [ OK ]
ping [ OK ]
status [ OK ]
bcm-head-02 -> bcm-head-01\*
failoverping [ OK ]
mysql [ OK ]
ping [ OK ]
status [ OK ]

Power on the cluster nodes.

#cmsh -c "device ; power -c dgx-h100 on"
ipmi0 .................... [ ON ] bcm-dgx-h100-01
ipmi0 .................... [ ON ] bcm-dgx-h100-02
ipmi0 .................... [ ON ] bcm-dgx-h100-03
ipmi0 .................... [ ON ] bcm-dgx-h100-04

This concludes the setup and verification of HA.