Note:

Enable Snapshot Policy Restoration and Customer-Managed Keys for File System with OCI 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.

Initial Deployment Architecture

Deployment Architecture

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

Objectives

Configure the newly introduced feature in OCI Full Stack DR that enables the application of custom encryption keys and snapshot policy settings for file system that are members of a DR protection group.

This tutorial aims to guide users through the process of configuring the newly introduced feature in OCI Full Stack DR that enables the application of custom encryption keys and snapshot policy to file system within a protection group.

The following tasks will be covered in this tutorial.

Prerequisites

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

  1. In the primary DR protection group (DRPG_CMK_SP_FSS_FRA), select Members and 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 Primary DR Protection Group

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

    Add new members

Task 3: Add the File System (fsvmap01) to Primary DR Protection Group

  1. In the primary DR protection group (DRPG_CMK_SP_FSS_FRA), select Members and add the file system (fsvmap01) as a member.

    Add new members

    Note: A new section with the destination snapshot policy, destination vault and destination encryption will be presented.

Task 4: 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_CMK_SP_FSS_LON).

  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 5: Run the Switchover Plan

Note:

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

  1. Open the switchover plan in the standby region.

  2. Click Run Prechecks.

  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

  4. To run the switchover plan, click Execute plan.

  5. Again, click Execute plan in the confirmation box to continue.

    Monitor the plan execution to ensure all steps in the plan succeed.

    Run Disaster Recovery Plan

    The following image shows the successful completion of the switchover plan. However, you may encounter failed steps even though the prechecks completed successfully; there is a chance steps will fail as the recovery steps are being executed in reality. Remediate any failed steps and try again.

    Run Disaster Recovery Plan Status

Task 6: Verify the Encryption Key and Snapshot Policy on New File System

Go to the standby region, navigate to Storage, File Storage and look for fsvmap01. You will see that the customer encryption key and snapshot policy were applied to the file system.

File Storage

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 the integrity of your DR plans, catching missing member resources, missing networks, the inability to find expected scripts called by user-defined steps, etc.

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.