Moving a Volume to a Different Compartment
On Compute Cloud@Customer, you can move Block Volume resources such as block volumes, boot volumes, clones, volume backups, volume groups, and volume group backups from one compartment to another.
When you move a resource to a new compartment, associated resources might not be moved. For example, when you move a block volume, any backups of that volume are not moved.
Any access policies that exist on the new compartment apply immediately. Before you move resources to a different compartment, ensure that the resource users have sufficient access permissions on the compartment the resource is being moved to.
-
You can't move a block volume or boot volume from a security zone to a standard compartment.
-
You can't move a volume from a standard compartment to a compartment that is in a security zone if the volume violates any security zone policies.
This task isn't available in the Console.
Use the oci bv boot-volume change-compartment:
oci bv volume change-compartment --volume-id <volume_OCID> --compartment-id <destination_compartment_OCID> [OPTIONS]
For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Use the ChangeVolumeCompartment operation to move a volume to another compartment.
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.