Step 7: Perform a failover

Updated at:

After a protection group enters the incremental replication state, you can perform a failover. This topic describes the basic operations of failover and failback.

Failover types

  • Switch After Data Synchronization

    During the failover, Cloud Backup first stops the protected instances in the protection group. After all the protected instances are stopped, Cloud Backup performs the final round of data synchronization and starts the switchover only after the data synchronization is complete. This ensures that the data at the disaster recovery site is exactly the same as that at the production site, with no data loss. This failover mode applies to scenarios such as planned disaster recovery drills and business migration.

  • Switch Now

    During the failover, Cloud Backup attempts to stop the protected instances in the protection group. Cloud Backup does not wait until all the protected instances are stopped and does not perform the final round of data synchronization. Some data may be lost within the recovery point objective (RPO) range. This mode applies to scenarios in which an unrecoverable short-term fault occurs at the production site and business must be immediately switched to the disaster recovery site.

Failback types

  • Switch After Data Synchronization

    During the failback, Cloud Backup stops the protected instances in the protection group and waits until all the protected instances are stopped. Then, Cloud Backup performs the final round of data synchronization and starts the switchover only after the data synchronization is complete. The service unavailability time is longer than that of Switch Now. This mode is mainly used when the production site is working properly.

  • Switch Now

    During the failback, Cloud Backup attempts to stop the protected instances in the protection group but does not wait until all the protected instances are stopped and does not perform the final round of data synchronization. Starting the failback immediately causes some data loss. This mode is mainly used when an unrecoverable short-term fault occurs at the disaster recovery site and business must be immediately restored to the production site.

Switch After Data Synchronization

Forward Protection - Failover

Perform the following steps to perform a forward protection failover.

  1. Log on to the Cloud Backup console.

  2. In the navigation pane on the left, choose Disaster Recovery > ECS Disaster Recovery.

  3. If you are not on the EBS Async Replication page, click Switch to EBS Async Replication.

  4. On the Site Pairs tab, click the target site pair and choose Protection Group.

  5. On the Protection Group tab, in the Actions column of the target protection group, click image..png and choose Forward Protection > Failover.

  6. In the Start Failover dialog box, select Switch after data synchronization, configure the policy for handling insufficient instance specifications, and then click OK.

    Note
    • When an instance is in economical mode (stopped), the instance may fail to start because the specification is out of stock in the zone. 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 select manual processing, change the instance specification in the ECS console based on the task failure message, and then retry the task in the task list.

    1. The protection group status changes to Failover in Progress.

    2. After the failover is complete, the protection group status changes to Failover Succeeded.

  7. After the failover is complete, click Manage Protected Instances for the protection group to open the Protected Instances page.

  8. Click the link in the ID/Name of instance at DR site column to verify the ECS data and applications.

  9. After verification, in the Actions column of the protection group, click image..png and choose Forward Protection > Failover Completed.

    The protection group status changes to Failover Confirmed. At this point, the ECS instance at the production site is Stopped, and the ECS instance at the disaster recovery site is Running.

Enable Reverse Replication

Reverse replication replicates data from the disaster recovery site to the production site to prepare for failback.

  1. Log on to the Cloud Backup console.

  2. In the navigation pane on the left, choose Disaster Recovery > ECS Disaster Recovery.

  3. If you are not on the EBS Async Replication page, click Switch to EBS Async Replication.

  4. On the Site Pairs tab, click the target site pair and choose Protection Group.

  5. On the Protection Group tab, in the Actions column of the target protection group, click Enable Reverse Replication.

  6. In the Enable Reverse Replication panel, click Confirmation.

    Note

    If you enable reverse replication after the production site recovers, you do not need to create new instances or cloud disks.

    The protection group status changes to Reverse Replicating Data.

Reverse Protection - Failback

After the production site recovers, you must restore data from the disaster recovery site to the production site to complete the failback. You can perform a failback when the protection group status is Reverse Replicating Data and the Actual RPO meets your expectations.

Perform the following steps to perform a reverse protection failback.

  1. Log on to the Cloud Backup console.

  2. In the navigation pane on the left, choose Disaster Recovery > ECS Disaster Recovery.

  3. If you are not on the EBS Async Replication page, click Switch to EBS Async Replication.

  4. On the Site Pairs tab, click the target site pair and choose Protection Group.

  5. On the Protection Group tab, in the Actions column of the target protection group, click image..png and choose Reverse Protection>Failback.

  6. In the Start Failback dialog box, select Switch after data synchronization, configure the policies for economical mode and for handling insufficient instance specifications, and then click OK.

    The protection group status changes to Failback in Progress.

    After the failback is complete, the protection group status changes to Failback Completed. At this point, the ECS instance at the production site is Running, and the ECS instance at the disaster recovery site is Stopped.

  7. After confirming that the failback is complete, click image..png and choose Reverse Protection>Failback Completed.

    After you confirm the completion of the failback, the protection group status changes to Dispatching.

Switch Now

Forward Protection - Failover

  1. Log on to the Cloud Backup console.

  2. In the navigation pane on the left, choose Disaster Recovery > ECS Disaster Recovery.

  3. If you are not on the EBS Async Replication page, click Switch to EBS Async Replication.

  4. On the Site Pairs tab, click the target site pair and choose Protection Group.

  5. On the Protection Group tab, in the Actions column of the target protection group, click image..png and choose Forward Protection>Failover.

  6. In the Start Failover dialog box, select Switch now, configure the policy for handling insufficient instance specifications, and then click OK.

    Note
    • When an instance is in economical mode (stopped), the instance may fail to start because the specification is out of stock in the zone. 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 select manual processing, change the instance specification 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.

    Important

    This operation may cause some data loss. Evaluate the risks before you proceed.

    After the failover is complete, the protection group status changes to Failover Succeeded. Use the link to verify the ECS data and applications.

  7. After verification, in the Actions column of the protection group, click image..png and choose Forward Protection>Failover Completed.

    The protection group status changes to Failover Confirmed. At this point, the ECS instance at the production site is Stopped, and the ECS instance at the disaster recovery site is Running.

Enable Reverse Replication

Reverse replication replicates data from the disaster recovery site to the production site to prepare for failback.

  1. Log on to the Cloud Backup console.

  2. In the navigation pane on the left, choose Disaster Recovery > ECS Disaster Recovery.

  3. If you are not on the EBS Async Replication page, click Switch to EBS Async Replication.

  4. On the Site Pairs tab, click the target site pair and choose Protection Group.

  5. On the Protection Group tab, in the Actions column of the target protection group, click Enable Reverse Replication.

  6. In the Enable Reverse Replication panel, click Confirmation.

    Note

    If you enable reverse replication after the production site recovers, you do not need to create new instances or cloud disks.

    The protection group status changes to Reverse Replicating Data.

Reverse Protection - Failback

  1. Log on to the Cloud Backup console.

  2. In the navigation pane on the left, choose Disaster Recovery > ECS Disaster Recovery.

  3. If you are not on the EBS Async Replication page, click Switch to EBS Async Replication.

  4. On the Site Pairs tab, click the target site pair and choose Protection Group.

  5. On the Protection Group tab, in the Actions column of the target protection group, click image..png and choose Reverse Protection>Failback.

  6. In the Start Failback dialog box, select Switch now, configure the policies for economical mode and for handling insufficient instance specifications, and then click OK.

    Important

    This operation may cause some data loss. Evaluate the risks 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 Running, and the ECS instance at the disaster recovery site is Stopped.

  7. After confirming that the failback is complete, click image..png and choose Reverse Protection>Failback Completed.

    After you confirm the completion of the failback, the protection group status changes to Dispatching.

FAQ

What instance specifications are supported for EBS async replication for ECS disaster recovery? Are limits imposed on disks? Are limits imposed on IP addresses?