Stay organized with collections Save and categorize content based on your preferences.
This document describes how to resize and clone Asynchronous Replication disks.
Artifact Registry is useful for low-RPO, low-RTO disaster recovery. To learn more about asynchronous replication, see About Asynchronous Replication.
LimitationsSelect the tab for how you plan to use the samples on this page:
ConsoleWhen you use the Google Cloud console to access Google Cloud services and APIs, you don't need to set up authentication.
gcloudInstall the Google Cloud CLI. After installation, initialize the Google Cloud CLI by running the following command:
gcloud init
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
Note: If you installed the gcloud CLI previously, make sure you have the latest version by runninggcloud components update
.To use the REST API samples on this page in a local development environment, you use the credentials you provide to the gcloud CLI.
Install the Google Cloud CLI. After installation, initialize the Google Cloud CLI by running the following command:
gcloud init
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
For more information, see Authenticate for using REST in the Google Cloud authentication documentation.
If you require additional storage space or increased performance limits, you can increase the size of a primary disk to up to 64 TiB. You can't decrease the size of a disk.
When you resize a primary disk that is actively replicating to a secondary disk, the secondary disk size is increased to the same size as the primary disk. If the secondary disk fails to resize automatically, then you must manually resize it to the same size as the primary disk.
For information about how to increase the size of a disk, see Increase the size of a disk.
Clone disksYou can clone a single primary or secondary disk, or all secondary disks in a consistency group.
Clone a single diskClone a Artifact Registry disk using the methods described in Create a disk clone.
Clone all disks in a consistency groupBefore you can clone secondary disks from a consistency group, you must create a consistency group in the secondary region for the disks that you want to clone, then add the secondary disks to the consistency group.
Clone all secondary disks in a consistency group using the Google Cloud console, the gcloud CLI, or REST.
ConsoleClone all secondary disks in a consistency group by doing the following:
In the Google Cloud console, go to the Asynchronous replication page.
Click the Consistency groups tab.
Click the name of the consistency group that contains the secondary disks.
Click Clone consistency group. The Clone consistency group window opens.
Click Clone consistency group.
Clone all secondary disks in a consistency group using the gcloud compute disks bulk create
command:
gcloud compute disks bulk create \ --source-consistency-group-policy=CONSISTENCY_GROUP \ --LOCATION_FLAG=LOCATION
Replace the following:
CONSISTENCY_GROUP
: the URL of the consistency group that contains the secondary disks to clone. For example, projects/PROJECT/regions/REGION/resourcePolicies/CONSISTENCY_GROUP_NAME
.LOCATION_FLAG
: the location flag for the disks in the consistency group. For regional disks, use --region
. For zonal zonal, use --zone
.LOCATION
: the region or zone that the disks in the consistency group are located in. For regional disks, use the region. For zonal disks, use the zone. The clones are created in this location.Clone all secondary disks in a consistency group using one of the following methods:
To clone zonal disks in a consistency group, use the disks.bulkInsert
method:
POST https://compute.googleapis.com/compute/v1/projects/CLONE_PROJECT/zones/ZONE/disks/bulkInsert { "sourceConsistencyGroupPolicy": "projects/CONSISTENCY_GROUP_PROJECT/regions/CONSISTENCY_GROUP_REGION/resourcePolicies/CONSISTENCY_GROUP_NAME", }
To clone regional disks in a consistency group, use the regionDisks.bulkInsert
method:
POST https://compute.googleapis.com/compute/v1/projects/CLONE_PROJECT/regions/REGION/regionDisks/bulkInsert { "sourceConsistencyGroupPolicy": "projects/CONSISTENCY_GROUP_PROJECT/regions/CONSISTENCY_GROUP_REGION/resourcePolicies/CONSISTENCY_GROUP_NAME", }
Replace the following:
CLONE_PROJECT
: the project to create the disk clones in.ZONE
: the zone to create the disk clones in.REGION
: the region to create the disk clones in.CONSISTENCY_GROUP_PROJECT
: the project that contains the consistency group.CONSISTENCY_GROUP_REGION
: the region where the consistency group is located.CONSISTENCY_GROUP_NAME
: the name of the consistency group.Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["This document provides instructions on how to resize and clone Persistent Disk Asynchronous Replication (PD Async Replication) disks, which are utilized for disaster recovery with low Recovery Point Objective (RPO) and Recovery Time Objective (RTO)."],["Primary and secondary disks in PD Async Replication must maintain the same size; resizing a primary disk triggers automatic resizing of the secondary disk, but manual resizing is necessary if automatic resizing fails and replication will pause until the disks match in size."],["While primary disks cannot be cloned from a consistency group, secondary disks can be cloned individually or in bulk from a consistency group, after having setup the consistency group."],["Resizing a primary disk can only be done to increase its size up to 64 TiB, and the resizing of a disk can be achieved by using the Google cloud console, gcloud CLI, or REST."],["Cloning all disks in a consistency group is done via the gcloud CLI using the `gcloud compute disks bulk create` command, or through the REST API by using the `disks.bulkInsert` or `regionDisks.bulkInsert` methods for zonal or regional disks respectively."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4