Adding Volumes to a Group
On Compute Cloud@Customer, you can add block and boot volumes to an existing volume group using the Compute Cloud@Customer Console, CLI, and API.
You can't add a volume with an existing backup policy assignment to a volume group with a backup policy assignment. You must first remove the backup policy assignment from the volume before you can add it to the volume group.
-
In the Compute Cloud@Customer Console navigation menu, click Block Storage, then click Volume Groups.
-
At the top of the page, select the compartment that contains the volume group.
-
In the Volume Groups list, click the volume group you want to add the volume to.
-
Under Resources, click Volumes.
- Click Add Volumes.
-
Select a volume to add to the group from the volume drop-down list. You might need to select a different compartment above the volume drop-down list. Click + Add Volume to add another volume.
-
Click Update Volume Group.
-
Use the oci bv volume-group update command and required parameters to update a volume group.
oci bv volume-group update --volume-group-id <volume_group_OCID> --volume-ids <volume_OCIDs_JSON> [OPTIONS]
For details about the JSON format, run this command:
oci bv volume-group update --generate-param-json-input volume-ids
For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Use the UpdateVolumeGroup operation to update a volume group.
For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.