Cloning a Boot Volume

On Oracle Cloud Infrastructure, you can create a clone from a boot volume using the Block Volume service. Cloning enables you to make a copy of an existing boot volume without needing to go through the backup and restore process.

Any subsequent changes to the data on the source boot volume are not copied to the boot volume clone. The clone is the same size as the source boot volume unless you specify a larger volume size when you create the clone.

The clone operation occurs immediately and you can use the cloned boot volume when the state changes to available.

There is a single point-in-time reference for a source boot volume while it is being cloned. If you clone a boot volume while the associated compute instance is running, you need to wait for the first clone operation to complete before creating more clones. You also need to wait for any backup operations to complete.

You can only create a clone for a boot volume within the same tenant. You can create a clone of a boot volume in a different compartment from the source volume compartment if you have the required access permissions.

    1. In the Compute Cloud@Customer Console navigation menu, click Block Storage, then click Boot Volumes.

    2. At the top of the page, select the compartment that contains the boot volume that you want to clone.

    3. For the volume you want to clone, click the Actions menu (An image of the three dot icon.), then click Create Clone.

    4. In the dialog box, enter the following information:

      • Name: A name or description for the volume. Avoid entering confidential information.

      • Compartment: Select the compartment in which to clone the block volume.

      • High-Performance Volume: (Optional) By default, the clone has the same performance setting as the source volume. Use this button to change the performance setting for this clone.

      • Tagging: (Optional) Add one or more tags to this resource. If you aren't sure whether to apply tags, skip this option (you can apply tags later). For more information about tagging resources, see Resource Tags.

    5. Click Create Clone.

      The new boot volume is ready to use when it reaches the Available state. For example, you can click the Actions menu and then click Create Instance to use this new boot volume to create a new instance.

  • Use the oci bv boot-volume create command and required parameters to clone a boot volume.

    oci bv boot-volume create --source-boot-volume-id OCID_of_volume_to_clone

    For a complete list of CLI commands, flags, and options, see the Command Line Reference.

  • This task is not available in the API.

    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.