Note:

Use QuickDR with Moving Instances in Oracle Cloud Infrastructure Full Stack Disaster Recovery

Introduction

Oracle Cloud Infrastructure Full Stack Disaster Recovery (OCI Full Stack DR) orchestrates the transition of compute, database, and applications between Oracle Cloud Infrastructure (OCI) regions from around the globe with a single click. Customers can automate the steps needed to recover one or more business systems without redesigning or re-architecting existing infrastructure, databases, or applications and without needing specialized management or conversion servers.

A moving instance in OCI Full Stack DR is a compute instance that is transferred from the primary region to the standby region during disaster recovery operations. Under normal conditions, these instances exist only in the primary region. In the event of a disaster, they are recreated and started in the standby region. This DR topology is called Pilot Light or Cold Virtual Machine (VM) DR.

Key Characteristics of Moving Instances

Manual DR Setup Process for Moving Instances Before QuickDR

Prior to the introduction of the QuickDR feature, setting up disaster recovery for a moving instance and integrating it with OCI Full Stack DR involved several manual prerequisite steps, outlined below.

Enabling DR for Moving Instances with QuickDR

With the QuickDR feature, you can now enable disaster recovery for VM instances directly from the OCI Compute Console under the Disaster Recovery section by selecting Activate QuickDR.

This feature:

OCI Full Stack DR automatically performs all the tasks outlined in the section Manual DR Setup Process for Moving Instances Before QuickDR, eliminating the need for manual setup.

You have two configuration options when using QuickDR. In both cases, the OCI Compute instance being protected must reside in the primary region.

Note: For existing DR configurations, the associated DR plans will enter a “Needs Refresh” state if new compute instances are added. You must refresh and verify the plans after adding any new compute instances.

In this tutorial, you will learn how to use the QuickDR feature to protect moving instances in OCI using both Set up a new DR Configuration and Update an Existing DR Configuration configuration.

Architecture Description

This tutorial uses a cold VM DR architecture, also known as Pilot Light. In this setup, the virtual machine runs only in the primary region. During a DR plan execution, the VM is created in the standby region.

The QuickDR feature can be accessed directly from the OCI Compute.

Note: The QuickDR feature is only applicable for moving instances.

fsdr_moving_instance_disaster_recovery_Physical_Architecture.png
Figure 1: Moving Instance Architecture

Definitions and Assumptions throughout the Tutorial

Objectives

The following tasks will be covered in this tutorial:

In this tutorial, for both Set up a New DR Configuration and Update an Existing DR Configuration, we will use an existing VCN and subnets that are pre-created in the standby region.

Note: If you do not provide existing networking details, OCI Full Stack DR can automatically create the VCN and subnets in the standby region. It will use the same CIDR ranges for VCN and subnets.

Prerequisites

We will use the following resources to start with the tutorial.

Resources Region 1 - Ashburn Region 2 - Phoenix
Compartment suraj suraj
VCN VCN_IAD VCN_PHX
Subnet Public Subnet_VCN_ASH Public Subnet_VCN_PHX
Compute VM VM1, VM2 NA

Complete all the required prerequisites before proceeding further. These steps lay the foundation for a smooth and successful OCI Full Stack DR setup.

Task 1: Activate QuickDR from the OCI Console in Region 1

  1. Login to the OCI Console and navigate to Compute.

    1. Ensure the OCI region context is set to Region 1 (Ashburn).

    2. Click Compute.

    3. Click Instances.

    4. Select the virtual machine (VM1). Click Details and navigate to the Disaster Recovery section.

    activatequickdr-vm1.png
    Figure 1.1: Activate QuickDR

  2. Click Activate QuickDR. You will be redirected to a QuickDR setup page for the compute instance where you can choose one of two options: Set Up a New DR Configuration or Update an Existing DR Configuration.

    activatequickdr-type.png
    Figure 1.2: Activate QuickDR options

Task 2: Set up a New DR Configuration in Region 1 for VM1

As part of this task, we will use the OCI Compute instance (VM1) from the Ashburn region and activate QuickDR from the Disaster Recovery section of Compute in the OCI Console.

  1. Select Set up a new DR Configuration.

  2. Enter Name of the DR protection group.

  3. Select Compartment.

  4. Select Peer Region (standby region). In this example, this will be Phoenix.The source region Compartment and Instance (VM1) should appear automatically.

  5. Select Specify destination networking details for DR configuration to use an existing VCN and subnet in the standby region.

    setupnewdr-vm1.png
    Figure 2.1: Set up New DR for VM1

    Note: If you are fine with the networking configuration (VCN, subnets and so on) being created in the standby region to match the source region, you can leave the default option for Specify destination networking details for DR configuration unchecked and click Configure. After this stage, no additional manual setup is required. OCI Full Stack Disaster Recovery will automatically create and configure all other necessary prerequisites, including networking. If you want to use the exisiting networking details, you can follow the step 6 and 7.

  6. In the VNIC mapping list, click Add VNIC mapping and select the standby region details like VNIC, Destination VCN, Compartment, Destination Subnet and other details. Verify and click Add.

    setupnewdr-vm1-vnic.png
    Figure 2.2: VNIC details for VM1

    Verify the VNIC details.

    setupnewdr-vm1-vnic-added.png
    Figure 2.3: Added VNIC details for VM1

  7. Click Configure.

    setupnewdr-vm1-configure.png
    Figure 2.4: Configure QuickDR for VM1

    You will be redirected to the Work Requests page. After a few minutes, you should see the status Created DR protection group marked as Succeeded. You can verify the associated resources that were created and review the log messages from the respective tabs.

    setupnewdr-vm1-configured.png
    Figure 2.5: QuickDR for VM is configured

  8. From the Ashburn region, go to Migration & Disaster Recovery, DR Protection Groups, and select the QuickDR-APP DR protection group.

  9. Verify that the DR protection group Role is Primary. Then, navigate to the Members section and confirm that the compute instance VM1 and its corresponding volume group have been added.

    setupnewdr-vm1-primary-drpg-members.png
    Figure 2.6: DR protection group members in Ashburn

  10. From the Phoenix region, go to Migration & Disaster Recovery, DR Protection Groups, and select the fsdr-auto-0ffdaeaf-quickdr-app DR protection group. The DR protection group in the standby region is embedded with auto-generated names ending with the primary protection group name.

  11. Verify that the DR protection group Role is set to Standby. Then, navigate to the DR Plans section and confirm that the Switchover, Failover, and Start Drill plans have been created successfully and are in Active status.

    setupnewdr-vm1-standby-drpg-plans.png
    Figure 2.7: DR Plans in Phoenix

At this stage, all the required DR plans are ready and can be executed whenever needed.

Task 3: Update an Existing DR Configuration in Region 1 for VM2

As a part of this task, we will use the OCI Compute instance VM2 from the Ashburn region and activate the QuickDR option from the Disaster Recovery section of Compute in the OCI Console.

  1. Follow Task 1 but select VM2 instead.

  2. Select Update an existing DR Configuration.

    updatedrconfig.png
    Figure 3.2: Select Update DR configuration for VM2

  3. Select Compartment.

  4. Select the DR protection group created as part of Task 2, so it will be QuickDR-APP.

  5. Select the volume group details created in Task 2, so it will be fsdr-auto-0ffdaeaf-volumegroup-iad.

  6. The source region Compartment and Instance (VM2) should appear automatically.

  7. Select Specify destination networking details for DR configuration to use an existing VCN and subnet in the standby region.

    updatedrconfig-vm2.png
    Figure 3.2: Update DR configuration for VM2

    Note: If you are fine with the networking configuration (VCN, subnets, and so on) being created in the standby region to match the source region, you can leave the default option for Specify destination networking details for DR configuration unchecked. OCI Full Stack DR will automatically create those resources. Finally, click Configure.

  8. In the VNIC mapping list, click Add VNIC mapping and select the standby region details like VNIC, Destination VCN, Compartment, Destination Subnet and other details. Verify and click Add.

    updatedrconfig-vm2-add-vnic.png
    Figure 3.3: Add VNIC details for VM2

  9. Verify the VNIC details.

    updatedrconfig-vm2-added-vnic.png
    Figure 3.4: Added VNIC details for VM2

  10. Click Configure.

    updatedconfig-vm2-configure.png
    Figure 3.5: Configure QuickDR for VM2

  11. You will be redirected to the Work Requests page. After a few minutes, you should see the status Created DR protection group marked as Succeeded. You can verify the associated resources that were created and review the log messages from the respective tabs.

    updatedconfig-vm2-configured.png
    Figure 3.6: QuickDR for VM2 is configured

  12. From the Ashburn region, go to Migration & Disaster Recovery, DR Protection Groups, and select the QuickDR-APP DR protection group.

  13. Verify that the DR protection group role is Primary. Then, navigate to the Members section and confirm that the compute instance VM2 has been added and its corresponding volume group has been updated.

    updatedconfig-vm2-primary-drpg-members.png
    Figure 3.7: DR protection group members in Ashburn

  14. From the Phoenix region, go to Migration & Disaster Recovery, DR Protection Groups, and select the fsdr-auto-0ffdaeaf-quickdr-app DR protection group. The DR protection group in the standby region is embedded with auto generated names ending with the primary protection group name.

  15. Verify that the DR protection group role is set to Standby. Then, navigate to the DR Plans section and confirm that the Switchover, Failover, and Start Drill plans have been updated successfully and are in Needs attention (Need refresh) state.

    updateconfig-vm2-standby-drpg-plans.png
    Figure 3.8: DR Plans in Phoenix which needs refresh

  16. Since there were changes to the members including the addition of VM2 and an update to the volume group,the DR plans have been updated. As the next step, all DR plans need to be refreshed and verified so that plans can be made Active.

  17. Click the three dots (…) menu on the right end of the Switchover plan, and select Refresh.

    updatedrconfig-drplans-refresh.png
    Figure 3.9: Refresh DR plan

  18. Click Refresh to confirm the refresh action.

    updatedrconfig-drplans-confirm-refresh.png
    Figure 3.10: Confirm refresh DR plan

  19. Repeat Step 17 and 18 for the Failover and Start Drill plans to refresh and confirm each of them.

    The status of the DR plans will be shown as Needs Verification after the refresh action.

    updatedrconfig-drplans-needs-verification.png
    Figure 3.11: DR plans needs verification

  20. Click the three dots (…) menu on the right end of the Switchover plan, and select Verify.

    updatedrconfig-drplans-verify.png
    Figure 3.12: Verify DR plan

  21. Click Verify to confirm verify action.

    updatedrconfig-drplans-confirm-verify.png
    Figure 3.13: Confirm verify DR plan

    Repeat Step 20 and 21 for the Failover and Start Drill plans to verify and confirm each of them.

  22. All the DR plans will now be in the Active state and ready to use.

    updatedrconfig-drplans-active-drplans.png
    Figure 3.14: Active DR plans

Task 4: Run Start Drill plan in Region 2

The basic DR plans created in Task 3 contain pre-populated steps for recovery tasks that are built into OCI Full Stack DR.

  1. Verify the start drill plan.

    plan-startdrill-phx-groups-show.png
    Fig 4.1: Plan groups for the start drill plan

  2. Click the Actions drop-down menu and select Run Prechecks.

    plan-startdrill-phx-run-precheck.png
    Fig 4.2: Run pre checks for the Start drill plan

  3. Click Run Prechecks.

    plan-startdrill-phx-run-precheck-confirm.png
    Fig 4.3: Confirm Run prechecks for the Start drill plan

    Monitor the prechecks status and confirm that the execution completes Successfully.

    plan-startdrill-phx-run-precheck-succeeded.png
    Fig 4.4: Pre checks succeeded for the Start drill plan

  4. Click the Actions drop-down menu and select Execute Plan.

    plan-startdrill-phx-executeplan.png
    Fig 4.5: Run execute plan for the Start drill plan

  5. Click Execute Plan.

    plan-startdrill-phx-executeplan-confirm.png
    Fig 4.6: Confirm Run execute plan for the Start drill plan

    Monitor the Execute Plan status and confirm that the execution completes successfully.

    plan-startdrill-phx-executeplan-succeeded.png
    Fig 4.7: Execute plan succeeded for the Start drill plan

  6. All the DR plans will become Inactive, and the DR protection group status will show as Inactive (Drill in progress).

    plan-startdrill-phx-drplans-status-afterstartdrill.png
    Fig 4.8: DR plan status after Start drill

At this stage, both the VMs (VM1 and VM2) will be up and running in Phoenix region.

Task 5: Create Stop Drill Plan and Run Stop Drill Plan in Region 2

Stop drill plan will terminate the resources (VMs and volume groups) that were created in Task 4. Once the plan is Successful, the DR plans (switchover, failover, start drill) will return to Active status, and the stop drill plan will become Inactive.

Note: OCI Full Stack DR allows you to create a stop drill plan only after the start drill plan has been executed successfully, and the DR protection group is in the Inactive (Drill in progress) state. Because of this, the QuickDR feature cannot automatically create a stop drill plan, you must create it manually.

  1. Go to the Plans section, click Create Plan to begin creating a new DR plan.

    plan-stopdrill-phx-create-plan.png
    Fig 5.1: Create stop drill plan

  2. Enter Plan Name, select the Plan Type as Stop Drill and click Create.

    plan-stopdrill-phx-create-plan1.png
    Fig 5.2: Create stop drill plan

  3. Verify the stop drill plan and it should be in Active state.

    plan-stopdrill-phx-active.png
    Fig 5.3: Stop drill plan active status

  4. Select the Stop Drill plan, click the Actions drop-down menu and select Execute Plan.

    plan-stoprill-phx-executeplan.png
    Fig 5.4: Run execute plan for the Start drill plan

  5. Click Execute Plan.

    Monitor the Execute Plan status and confirm that the execution completes successfully.

    plan-stopdrill-phx-executeplan-succeeded.png
    Fig 5.5: Execute plan succeeded for the Stop drill plan

  6. The Stop Drill plan will become Inactive, the rest of the plans will become Active, and the DR Protection Group status will show as Active.

    plan-stopdrill-phx-drplans-status-afterstoprill.png
    Fig 5.6: DR plan status after Stop drill

At this stage, the resources (VMs and volume groups) in the Phoenix region will be terminated.

Task 6: Run switchover plan in Region 2 and create DR plans in Region 1

By default, OCI Full Stack DR only allows you to create DR plans in the protection group with the standby role.

To create DR plans in Region 1, you must first execute a Switchover plan.

Just like you ran the Start Drill Plan, you can run a Switchover plan from Region 2.

Once the switchover plan completes:

This role reversal allows you to create Switchover, Failover, and Drill plans in Region 1.

Please follow the DR Plan Creation section for step-by-step instructions on creating these plans.

Acknowledgments

More Learning Resources

Explore other labs on docs.oracle.com/learn or access more free learning content on the Oracle Learning YouTube channel. Additionally, visit education.oracle.com/learning-explorer to become an Oracle Learning Explorer.

For product documentation, visit Oracle Help Center.