Updating a Volume Group
Update a volume group in the Block Volume service. For example, add or remove block volumes or boot volumes.
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_ID> --volume-ids <volume_ID_JSON>
You can update the volume group display name along with adding or removing volumes from the volume group. The volume group is updated to include only the volumes specified in the update operation. This means that you need to specify the volume IDs for all of the volumes in the volume group each time you update the volume group.
The following example changes the volume group's display name for a volume group with two volumes:
oci bv volume-group update --volume-group-id ocid1.volumegroup.oc1.phx.<unique_ID> --volume-ids '["ocid1.volume.oc1.phx.<unique_ID_1>","ocid1.volume.oc1.phx.<unique_ID_2>"]' --display-name "new display name"
If you specify volumes in the command that are not part of the volume group they are added to the group. Any volumes not specified in the command are removed from the volume group.
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the UpdateVolumeGroup operation to update a volume group.