Manually failing back

NoteIf the automatic failback failed, examine the logs to make sure that the high availability system performed the following steps. If it did not, you can perform them manually. You must perform them in the sequence described below.

  1. Stop the HACMP subsystem with the takeover mode on the primary node. This shuts down the primary companion and fails over its resources to the secondary companion.

  2. Shutdown and then restart your secondary companion.The RUNHA_servername.sh restarts the companion automatically after you shut it down if RETRY is set to a value greater than 0.

  3. Log in as LOGIN_NAME to the secondary companion through isql and make sure that it is running in secondary failover mode.

  4. Issue sp_companion 'prepare_failback'. For example, to fail back from the secondary companion PERSONNEL1:

    sp_companion MONEY1, 'prepare_failback'
    
  5. Restart HACMP on the primary node.

  6. Log in to the primary companion using isql and make sure that it is running in primary failback mode.

  7. Issue sp_companion 'resume'. For example, to resume companion mode for primary companion MONEY1:

    sp_companion PERSONNEL1, 'resume'
    

    NoteYou cannot connect clients with the failover property (for example isql -Q) until you issue sp_companion resume. If you do try to reconnect them after issuing sp_companion prepare_failback, the client hangs until you issue sp_companion resume.