Note:

Enable Custom Prechecks 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 the need for specialized management or conversion servers.

Full Stack Disaster Recovery now supports user-defined precheck steps, allowing users to integrate custom validations into their DR plans. This feature enhances DR plans by allowing users to incorporate specific checks that align with their unique infrastructure and application requirements, ensuring comprehensive validation before DR plan execution.

Initial Deployment Architecture

Deployment Architecture

Note: Primary region is London and standby region is Frankfurt.

Objectives

Configure the newly introduced feature in OCI Full Stack DR that enables users to define their own custom prechecks.

OCI Full Stack DR performs comprehensive prechecks before a DR plan is executed to ensure readiness of the application stack and recovery environments so that the recovery operation will succeed in the standby region.

The following tasks will be covered in this tutorial.

Prerequisites

Task 1: Add the Compute Instance (vmapp01) to the Primary DR Protection Group

  1. In the primary DR protection group (DRPG_CPC_LON), select Members and click Add member.

    Add new members

  2. Add the compute VM (vmapp01) as a member.

    Add new members

    Add new members

Task 2: Add the Volume Group (vgapp01) to the Primary DR Protection Group

  1. In the primary DR protection group (DRPG_CPC_LON), select Members and add the volume group (vgapp01) as a member.

    Add new members

Task 3: Generate a Switchover Plan

Switchover plan is a type of DR plan that performs a planned transition of services from the primary DR protection group to the standby DR protection group.

Create a switchover plan in standby DR protection group.DRPG_CPC_FRAN.

  1. Select Plans and click Create plan.

    Switchover Plan

  2. Enter Name as Switchover and select Plan type as Switchover (planned).

    Switchover Plan

  3. Click Create.

    Switchover Plan

Task 4: Add a User-Defined Precheck

  1. Open the switchover plan created in Task 3.

    Create Custom Precheck

  2. Click the three dots (ellipsis) icon at the end of the row labelled Prechecks – Built-in in the Plan Groups table.

    Create Custom Precheck

  3. Click Add user defined precheck.

    Create Custom Precheck

  4. You will be prompted for more information about the script you want to run as a precheck. Click Add Step.

    Create Custom Precheck

    Create Custom Precheck

Task 5: Run the User-Defined and Built-In Prechecks

Note:

Run the prechecks for the switchover plan you just created in the current standby region, then run the switchover plan if the prechecks succeed. Run the prechecks as an independent operation first as a best practice.

  1. Open the switchover plan in the standby region.

  2. Click Run Prechecks.

    Create Custom Precheck

  3. Again, click Run Prechecks in the confirmation box to continue.

    Switchover precheck

    Ensure the prechecks complete successfully as shown in the following image. You may need to remediate any failed precheck steps at this point and then run the precheck again until all steps succeed.

    Switchover precheck status

Task 6: Verify the Prechecks Output Log

  1. Click the three dots (ellipsis) icon on the right side of Run Script - User Defined Custom Precheck.

    Switchover precheck status

  2. Select View Logs.

    Switchover precheck status

    Verify the output of your User Defined Custom Precheck.

    Switchover precheck status

Next Steps

There are two best practices that should be incorporated into the normal day-to-day operations to help ensure the readiness of your DR plans.

Think about scheduling weekly prechecks of all DR plans in the standby DR Protection Group. Prechecks can be run at any time and have zero impact on production workloads. This will help ensure integrity of your DR plans, catching missing member resources, missing networks, the inability to find expected scripts called by user-defined steps, and so on.

Another very important way of validating the readiness of your DR is to schedule periodic DR drills once a month or quarter. DR drills also have zero impact on production workloads, but give you the ability to validate recovery of compute, storage, Oracle databases and backend sets for load balancers in the standby region with the click of a single button. For more information, see:

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.