Creating a Volume Group
Create a volume group in the Block Volume service.
Use the
oci bv volume-group create
command and required parameters to create a volume group from existing volumes:oci bv volume-group create --compartment-id <compartment_ID> --availability-domain <external_AD> --source-details <Source_details_JSON>
Volume lifecycle status must be
AVAILABLE
to add it to a volume group.For example:
oci bv volume-group create --compartment-id ocid1.compartment.oc1..<unique_ID> --availability-domain ABbv:PHX-AD-1 --source-details '{"type": "volumeIds", "volumeIds":["ocid1.volume.oc1.phx.<unique_ID_1>", "ocid1.volume.oc1.phx.<unique_ID_2>"]}'
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the
CreateVolumeGroup
operation and specify theavailabilityDomain
andcompartmentId
attributes in theCreateVolumeDetails
resource to create a volume group.