Enabling Cross-Region Replication When Creating a Volume Group
Learn how to enable cross-region replication when you create a new boot volume.
Use the
oci bv volume-group create
command and specify the--compartment-id
,--volume-group-replicas'[{"displayName":"
,"availabilityDomain"
and"xrrKmsKeyId"
parameters to enable cross-region replication when creating a volume group:oci bv volume-group create --compartment-id <compartment_ID> --volume-group-replicas '[{"displayName":"<display_name>","availabilityDomain":"<availability-domain_ID>","xrrKmsKeyId" : "<kms_key_ID>"}]'
For example:
oci bv volume-group create --compartment-id ocid1.compartment.oc1.phx.<unique_ID> --volume-group-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
CreateVolumeGroup
operation and specify thevolumeGroupReplicas
attribute in theCreateVolumeGroupDetails
resource to enable cross-region replication when creating a new volume group.