Moving a Volume Group to Another Compartment

Move a volume group in the Block Volume service to another compartment.

    1. On the Volume Groups list page, find the volume group that you want to work with. If you need help finding the list page or the volume group, see Listing Volume Groups.
    2. From the Actions menu (three dots) for the volume group, select Move resource.
    3. In the Move resource panel, select the destination compartment from the list.
    4. Select Move resource.
  • Use the oci bv volume-group change-compartment command and specify the --volume-group-id and --compartment-id parameters to move a volume group to a different compartment:

    oci bv volume-group change-volume-group-compartment --volume-group-id <volume_group_OCID> --compartment-id <destination_compartment_OCID>

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the ChangeVolumeGroupCompartment operation and specify the volumeGroupId attribute in the request body and the compartmentId attribute in the ChangeVolumeGroupCompartmentDetails resource to move the volume group to a different compartment.