Cloning a Block Volume
On Compute Cloud@Customer, you can create a clone from a volume using the Block Volume service. Cloning enables you to make a copy of an existing block volume without needing to go through the backup and restore process.
A cloned volume is a point-in-time direct disk-to-disk deep copy of the source volume. All the data that's in the source volume is copied to the clone volume. Any subsequent changes to the data on the source volume aren't copied to the clone.
By default, the clone is the same size as the source volume unless you specify a larger volume size when you create the clone.
The volume data is being copied in the background, and can take up to thirty minutes depending on the size of the volume. You can attach and use the cloned volume as a regular volume when the state changes to Available.
For more information about cloning volumes, see Volume Backups and Clones.
Avoid entering confidential information in names and tags.
-
In the Compute Cloud@Customer Console navigation menu, click Block Storage, then click Block Volumes.
- At the top of the page, select the compartment that contains the block volume you want to clone.
-
For the volume you want to clone, click the Actions menu (
), then click Create Clone.
-
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.
-
Size (in GBs): You can keep the size the same, or increase the size in 1 GB increments up to 32768 (32 TB). You can't decrease the size.
-
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.
-
Backup Policy:(Optional) Select a backup policy from the drop-down list. You might need to change the compartment.
Oracle defined policies are listed, and any user defined policies. For information about Oracle defined policies (
bronze
,silver
, andgold
) see Oracle Provided Backup Policies.Backup policies can be assigned or changed after the volume is cloned, or you can back up this volume manually. A volume can only have only one volume backup policy assigned at a time. For information about creating, editing, and assigning backup policies, see Managing Backup Policies. You can also back up this volume manually as described in Creating a Manual Boot or Block Volume Backup.
-
Tagging: (Optional) Add one or more tags to this resource. Tags can also be applied later. For more information about tagging resources, see Resource Tags.
-
-
Click Create Clone.
-
Use the oci bv volume create command and required parameters to clone a volume.
oci bv volume create --availability-domain <availability_domain_name> --compartment-id <compartment_OCID> --source-volume-id <source_volume_OCID> --display-name <display_name> [OPTIONS]
For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Use the CreateVolume operation to clone a volume.
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.