Enabling Cross-Region Replication When Creating a Boot Volume
Learn how to enable cross-region replication when you create a new boot volume.
This task can't be performed using the Console. Use the
oci bv boot-volume createcommand and specify the--source-boot-volume-id,--compartment-id,"displayName","availabilityDomain"and"xrrKmsKeyId"parameters to create boot volume with cross-region replication enabled:oci bv boot-volume create --source-boot-volume-id <volume_ID> --compartment-id <compartment_ID> --boot-volume-replicas '[{"displayName":"<display_name>","availabilityDomain":"<availability-domain_ID>","xrrKmsKeyId" : "<kms_key_ID>"}]'For example:
oci bv boot-volume create --source-boot-volume-id ocid1.bootvolume.oc1.phx.<unique_ID> --compartment-id ocid1.compartment.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
.CreateVolumeoperation and specify thebootVolumeReplicasattribute in theCreateVolumeDetailsresource to enable cross-region replication for the new boot volume.