Failing Back to the Primary Node

Failback automatically occurs on HACMP. When HACMP is brought up on the primary node, the stop_server event on the secondary node triggers the monitoring script to execute sp_companion 'prepare_failback'.

To fail back to the primary node, make sure that the secondary companion is in secondary failover mode, and bring up HACMP services on the primary node. To make sure that sp_companion 'prepare_failback' was executed successfully, search for this string in /tmp/hacmp.out:

SYBASE HA MONITOR: Prepare_failback was successful.

NoteBefore you start the HACMP services on the primary node, make sure that the secondary node is up and the secondary companion is running in secondary failover mode. If the secondary companion or secondary node is not up and running, do not bring up the primary companion. If both nodes are down, or the HACMP services has stopped on both nodes, always restart the secondary node and its HACMP services before restarting the primary node.