Failover steps when active site is inaccessible
Disable network access to your failed active data center, and promote your warm-standby data center to active.
About this task
Follow the steps in this procedure when your active site is inaccessible, or the API Connect subsystems in your active site are not responding to apicup operations.
Procedure
What to do next
After failover, select the appropriate recovery path based on whether the failed data center can
be recovered.
- If the failed data center cannot be recovered
- Do not leave your remaining data center as an active 2DCDR deployment without a functioning warm-standby. You have the
following options:
- Convert your remaining data center to a stand-alone, and continue with one data center. See Removing a two data center deployment.
- Install a new warm-standby data center to replace the failed one. See Installing a two data center deployment.
- If you are able to recover your failed data center
- Before re-enabling network access, convert the management and portal subsystems in the failed
data center to warm-standby:
- Set the
multi-site-ha-modeproperty topassivefor the management subsystem in DC1:apicup subsys set <DC1 management> multi-site-ha-mode=passive - CAUTION:This is a destructive command that will cause data loss if used incorrectly or in the wrong environment. Ensure you are demoting the correct environment before proceeding.Apply the update to convert the management subsystem in DC1 to passive:
apicup subsys install <DC1 management> --skip-health-check --accept-dr-data-deletion --force-demotionNote:--skip-health-checkbypasses health validation since the network is down.--accept-dr-data-deletionacknowledges that all contents of the management database in DC1 will be deleted and replaced during synchronization.--force-demotionensures the subsystem is demoted even if the peer is unreachable.- When an active management subsystem is converted to warm-standby, all contents of its
management database are deleted (to be replaced by the contents from the other data center when it
becomes the active). The
--accept-dr-data-deletionflag is acknowledgment that you accept this temporary loss of data.
- Monitor the progress of the conversion to warm-standby:
apicup subsys health-check <DC1 management> -vNote: Demotion can take time. Monitor using the health-check command until the output looks similar to:./apicup subsys health-check mgmtv10 Error: Cluster not in good health: ManagementCluster (specified multi site ha mode: passive, current ha mode: WarmStandbyError, ha status: PeerNotReachable, ha message: multi site peer is not reachable. Warm Standby is enabled, cannot proceed further without peer communication. requeuing after 10 sec) is not Ready or Complete | State: 21/22 | Phase: Blocked | Message: HA status PeerNotReachable - see HAStatus in CR for detailsUse the--validatecommand to confirm that the environment is now set to passive:./apicup subsys get mgmtv10 --validate - Set the
multi-site-ha-modeproperty topassivefor the portal subsystem in DC1:apicup subsys set <DC1 portal> multi-site-ha-mode=passive - Apply the update to
DC1:
apicup subsys install <DC1 portal> --skip-health-check - Monitor the progress of the conversion to warm-standby:
apicup subsys health-check <DC1 portal> -v - When you have confirmed that both management and portal subsystems in DC1 are set to warm-standby, you can re-enable the
network to the DC1 API Connect subsystems, and
the two data centers should synchronize their API Connect data.Monitor the health at both data centers with:
apicup subsys health-check <DC1 management> -v
- Set the