Moving a Volume Group to a Different Compartment

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

    1. Open the navigation menu  and select Storage. Under Block Storage, select Volume Groups.
    2. Under List scope, select the compartment that contains the volume group.
    3. In the Volume Groups list, select the volume group you want to move.
    4. Select Move resource.
    5. In the Move resource dialog box, select the compartment that you want to move the volume group to.
    6. Select Move resource.
  • Use the oci bv volume-group change-compartment command and required parameters to move a volume group to a different compartment:

    oci bv volume-group change-compartment --volume-group-id <volume-group_ID> --compartment-id <compartment_ID>

    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 a volume group to a different compartment.