Restoring a Block Volume Replica to Its Source Region

To restore a block volume replica to the source region, you must activate the replica in the destination region, with volume replication enabled, and select the original source region as the target region for replication.

    1. Switch to the region that contains the block volume replica that you want to activate. See Switching Regions.
    2. On the Block Volume Replicas list page, find the boot volume replica you want to work with. If you need help finding the list page or the boot volume, see Listing Block Volume Replicas.
    3. From the Actions menu (three dots), select Activate and then Confirm.
    4. In the Activate Replica panel, enter the following information:
      • Name: Replica name.
      • Create in compartment: Compartment to create the replica in.
      • Cluster Placement Group: (Optional) Select a cluster placement group for the replica.
        Note

        This option is visible when cluster placement groups are enabled for the tenancy, and you've created and activated a cluster placement group with the capability added for volume resources. See Cluster Placement Groups for Block Volume.
      • Volume size and performance: Select default or custom.
      • Enable cross ad/region replication: (Optional) Turn on to enable cross-region replication.
        1. Select the target region for the replica.
        2. Select the availability domain for the replica.
        3. Enter a name for the replica.
        4. Select Confirm.
      • Volume Encryption: (Optional) Encrypt the data in this volume by using your own encryption key. For more information, see Customer-Managed Encryption Keys for Cross-Region Operations.
        1. Select Encrypt using customer-managed keys.
        2. Select the vault compartment and vault that contain the master encryption key you want to use.
        3. Select the master encryption key compartment and master encryption key.
          Note

          The service doesn't support encrypting volumes with keys that are encrypted using the Rivest-Shamir-Adleman (RSA) algorithm. When you use your own keys, you must use keys that are encrypted using the Advanced Encryption Standard (AES) algorithm. This restriction applies to block volumes and boot volumes.
      • Tagging: (Optional) Select Show tagging options to add tags to the volume. If you have permissions to create a resource, then you also have permissions to apply free-form tags to that resource. To apply a defined tag, you must have permissions to use the tag namespace. For more information about tagging, see Resource Tags. If you're not sure whether to apply tags, skip this option or ask an administrator. You can apply tags later.
    5. Select Activate.

    The new volume appears in the list, in the provisioning state. After the initial synchronization finishes, the restoration process is complete, and you can use the volume in the original source region.

  • Use the oci bv volume create command and specify the --availability-domain, --compartment-id, --display-name, --source-details, blockVolumeReplicaId, and "displayName" parameters to restore a block volume replica to its source region:
    oci bv volume create --availability-domain <availability_domain> --compartment-id <compartment_ID> --display-name <activated_volume_name> --source-details '{"type": "blockVolumeReplicaId", "blockVolumeReplicaId": "<replica_ID>"}' --blockVolumeReplicas '[{"displayName": "<replica_display_name>", "availabilityDomain": "<destination_availability_domain>"}]'

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the CreateVolume operation and specify the compartmentId, blockVolumeReplicas and sourceDetails attributes for the CreateVolumeDetails resource to restore a block volume replica to its source region.