Failback to the old primary system

After the failover and role reversal operations have completed and the old primary system is repaired, you can restore the original DR setup. This is an optional step, which will convert the role of the old primary system back to the active primary, and the old secondary system back to the standby secondary role.

Procedure

  1. Initiate a snapshot on the current primary system after role reversal once the old primary is repaired.
  2. Wait for the recovery point to appear on the secondary system:
    apdr status
    Example status output of a system ready for failback:
    
    ========================Snapshot Recovery Point Details=========================
    Availability Status:                                AVAILABLE
    Recovery Point (UTC):                     2019-12-05 18:23:51
    Latest job started at (UTC)               2019-12-05 18:23:51
  3. Stop the database on both systems by running:
    apstop -a
  4. Convert the old primary system into the active primary role and restore the standby secondary role in the secondary system by logging in to the primary system as apuser or equivalent and using:
    apdr failback
  5. You can monitor the status of the failback process by running the following command on the primary system:
    apdr failback --status
  6. To start the database on the primary system, run:
    apstart

Results

After failback the original DR setup is restored and the primary system is active again.