Enabling Cross-Region Replication When Updating An Existing Boot Volume
Learn how to enable cross-region replication for an existing boot volume.
Use the steps described in this procedure to enable replication on an existing boot volume.
- On the Boot Volumes list page, select the boot volume you want to work with. If you need help finding the list page or the boot volume, see Listing Boot Volumes.
- On the details page, select Edit.
- In the Cross/ad region replication section, move the Enable cross ad/region replication slider to the right to enable cross-region replication.
- Select the target region for the replica.
- Select the availability domain for the replica.
- Enter a name for the replica.
- Select Confirm to acknowledge the cost warning.
- (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.
- Select Encrypt using customer-managed keys.
- Enter the encryption key OCID for the destination region.
-
Select Save changes.
Use the
oci bv boot-volume update
command and specify the--boot-volume-id
,--boot-volume-replicas
,"displayName"
,"availabilityDomain"
and"xrrKmsKeyId"
parameters to enable cross-region replication when updating an existing boot volume:oci bv boot-volume update --boot-volume-id <boot_volume_ID> --boot-volume-replicas '[{"displayName":"<display_name>","availabilityDomain":"<availability-domain_ID>","xrrKmsKeyId" : "<kms_key_ID>"}]'
For example:
oci bv boot-volume update --boot-volume-id ocid1.bootvolume.oc1.phx.<unique_ID> --boot-volume-replicas '[{"displayName":"Sample_Replica","availabilityDomain":"pjBI:US-ASHBURN-AD-1","xrrKmsKeyId" : "ocid1.key.oc1.iad-ad-1.<unique_ID>"}]'
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the
UpdateVolume
operation and specify thebootVolumeReplicas
attribute in theUpdateVolumeDetails
resource to enable cross-region replication for an existing boot volume.