Step 7: Perform a failover
After a protection group enters the incremental replication state, you can perform a failover. This topic describes the basic operations for failover and failback.
Failover types
-
Switch After Data Synchronization
This type of failover first stops the protected instances in the protection group and waits until all the protected instances are stopped before performing the final round of data synchronization. The switchover starts only after data synchronization is complete. This ensures that the data at the disaster recovery site is completely consistent with that at the production site, with no data loss. This mode applies to scenarios such as planned disaster recovery drills and service migration.
-
Switch Now
This type of failover attempts to stop the protected instances in the protection group but does not wait for all the protected instances to stop, and does not perform the final round of data synchronization. Some data may be lost within the RPO range. This mode applies to scenarios in which an unrecoverable failure occurs at the production site for a short period of time and you must immediately switch to the disaster recovery site.
Failback types
-
Switch After Data Synchronization
This type of failback stops the protected instances in the protection group and waits until all the protected instances are stopped. It then performs the final round of data synchronization and starts the switchover only after data synchronization is complete. The service unavailability time is longer than that of Switch Now. This mode is mainly used in scenarios such as when the production site is working properly.
-
Switch Now
This type of failback attempts to stop the protected instances in the protection group but does not wait for all the protected instances to stop, and does not perform the final round of data synchronization. The switchover starts immediately, which causes some data loss. This mode is mainly used in disaster recovery scenarios.
Switch After Data Synchronization
Forward Protection - Failover
Perform the following steps to perform a forward protection failover.
Log on to the Cloud Backup console.
In the navigation pane on the left, choose .
-
If the disaster recovery type is not EBS Async Replication, click Switch to EBS Async Replication.
-
On the Site Pairs tab, click the target site pair, and select Protection Group.
-
On the Protection Group tab, in the Actions column of the target protection group, click
, and select Forward Protection > Failover. -
In the Start Failover dialog box, select Switch After Data Synchronization, configure the policy for handling insufficient instance specifications, and click OK.
Note-
When an instance is in economical mode or stopped mode, the instance specification may be out of stock in the zone at startup. If you select Upgrade within specification family, the system preferentially attempts to upgrade the instance within the specification family. The maximum specification is three times the CPU or memory of the current specification.
-
If the automatic upgrade fails or you choose manual handling, modify the instance specifications in the ECS console based on the task failure message, and then retry the task in the task list.
The protection group status changes to Failover in Progress.
After the failover is complete, the protection group status changes to Failover Succeeded.
-
-
After the disaster recovery switchover is complete, click Manage Protected Instances for the protection group to go to the Protected Instance List page.
-
Click the link under ID/Name of Instance at DR Site to verify the ECS data and applications.
-
After verification is complete, in the Actions column of the protection group, click
, and select Forward Protection > Failover Completed.The protection group status changes to Failover Confirmed. At this point, the ECS instance at the production site is in the Stopped state, and the ECS instance at the disaster recovery site is in the Running state.
Enable Reverse Replication
The purpose of reverse replication is to replicate data from the disaster recovery site to the production site to prepare for failback.
Log on to the Cloud Backup console.
In the navigation pane on the left, choose .
-
If the disaster recovery type is not EBS Async Replication, click Switch to EBS Async Replication.
-
On the Site Pairs tab, click the target site pair, and select Protection Group.
-
On the Protection Group tab, in the Actions column of the target protection group, click and select Enable Reverse Replication.
-
In the Enable Reverse Replication panel, click Confirmation.
NoteAfter the production site is restored to normal, enable reverse replication. You do not need to create new instances or disks.
The protection group status changes to Reverse Replicating.
Reverse Protection - Failback
After the production site is restored from the failure, you need to restore the data at the disaster recovery site to the production site to complete the failback. When the protection group status is Reverse Replicating and Actual RPO meets your expectations, you can perform the failback operation.
Perform the following steps to perform a reverse protection failback.
Log on to the Cloud Backup console.
In the navigation pane on the left, choose .
-
If the disaster recovery type is not EBS Async Replication, click Switch to EBS Async Replication.
-
On the Site Pairs tab, click the target site pair, and select Protection Group.
-
On the Protection Group tab, in the Actions column of the target protection group, click
, and select Reverse Protection > Failback. -
In the Start Failback dialog box, select Switch After Data Synchronization, and click OK.
The protection group status changes to Failback in Progress.
After the failback is successful, the protection group status changes to Failback Succeeded. At this point, the ECS instance at the production site is in the Running state, and the ECS instance at the disaster recovery site is in the Stopped state.
-
After you confirm that the failback is successful, click
, and select Reverse Protection > Complete Recovery.After you confirm that the recovery is complete, the protection group status changes to Dispatching.
Switch Now
Forward Protection - Failover
Log on to the Cloud Backup console.
In the navigation pane on the left, choose .
-
If the disaster recovery type is not EBS Async Replication, click Switch to EBS Async Replication.
-
On the Site Pairs tab, click the target site pair, and select Protection Group.
-
On the Protection Group tab, in the Actions column of the target protection group, click
, and select Forward Protection > Failover. -
In the Start Failover dialog box, select Switch Now, configure the policy for handling insufficient instance specifications, and click OK.
ImportantThis operation may cause some data loss. Evaluate the risks carefully before you proceed.
The protection group status changes to Failover in Progress.
Note-
When an instance is in economical mode or stopped mode, the instance specification may be out of stock in the zone at startup. If you select Upgrade within specification family, the system preferentially attempts to upgrade the instance within the specification family. The maximum specification is three times the CPU or memory of the current specification.
-
If the automatic upgrade fails or you choose manual handling, modify the instance specifications in the ECS console based on the task failure message, and then retry the task in the task list.
After the failover is complete, the protection group status changes to Failover Succeeded.
-
-
After the disaster recovery switchover is complete, click Manage Protected Instances for the protection group to go to the Protected Instance List page.
-
Click the link under ID/Name of Instance at DR Site to verify the ECS data and applications.
-
After verification is complete, in the Actions column of the protection group, click
, and select Forward Protection > Failover Completed.The protection group status changes to Failover Confirmed. At this point, the ECS instance at the production site is in the Stopped state, and the ECS instance at the disaster recovery site is in the Running state.
Enable Reverse Replication
The purpose of reverse replication is to replicate data from the disaster recovery site to the production site to prepare for failback.
Log on to the Cloud Backup console.
In the navigation pane on the left, choose .
-
If the disaster recovery type is not EBS Async Replication, click Switch to EBS Async Replication.
-
On the Site Pairs tab, click the target site pair, and select Protection Group.
-
On the Protection Group tab, in the Actions column of the target protection group, click and select Enable Reverse Replication.
-
In the Enable Reverse Replication panel, click Confirmation.
NoteAfter the production site is restored to normal, enable reverse replication. You do not need to create new instances or disks.
The protection group status changes to Reverse Replicating.
Reverse Protection - Failback
Perform the following steps to start the failback.
Log on to the Cloud Backup console.
In the navigation pane on the left, choose .
-
If the disaster recovery type is not EBS Async Replication, click Switch to EBS Async Replication.
-
On the Site Pairs tab, click the target site pair, and select Protection Group.
-
On the Protection Group tab, in the Actions column of the target protection group, click
, and select Reverse Protection > Failback. -
In the Start Failback dialog box, select Switch Now, configure the stop mode and the policy for handling insufficient instance specifications, and click OK.
ImportantThis operation may cause some data loss. Evaluate the risks carefully before you proceed.
The protection group status changes to Failback in Progress.
After the failback is complete, the protection group status changes to Failback Succeeded. At this point, the ECS instance at the production site is in the Running state, and the ECS instance at the disaster recovery site is in the Stopped state.
-
After you confirm that the failback is complete, click
, and select Reverse Protection > Complete Recovery.After you confirm that the recovery is complete, the protection group status changes to Dispatching.