Manage disks that use Asynchronous Replication Stay organized with collections Save and categorize content based on your preferences.
This document describes how to resize and clone Asynchronous Replicationdisks.
Artifact Registry is useful for low-RPO, low-RTO disaster recovery. To learnmore about asynchronous replication, seeAbout Asynchronous Replication.
Limitations
- Primary and secondary disks must be the same size. If you resize a primarydisk that is actively replicating, then the secondary disk is automaticallyresized. If the secondary disk fails to resize automatically, then you mustmanually resize it to the same size as the primary disk. Replication ispaused until the secondary disk is the same size as the primary disk.
- You can't clone primary disks from a consistency group. You must clone primarydisks individually. However, you can clone secondary disks from a consistencygroup.
Before you begin
- Create a primary disk.
- Create a secondary disk.
- If you haven't already, then set up authentication.Authentication is the process by which your identity is verified for access to Google Cloud services and APIs. To run code or samples from a local development environment, you can authenticate to Compute Engine by selecting one of the following options:
Select the tab for how you plan to use the samples on this page:
Console
When you use the Google Cloud console to access Google Cloud services and APIs, you don't need to set up authentication.
gcloud
Afterinstalling the Google Cloud CLI,initialize it by running the following command:
gcloudinit
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
.- Set a default region and zone.
REST
To use the REST API samples on this page in a local development environment, you use the credentials you provide to the gcloud CLI.
Afterinstalling the Google Cloud CLI,initialize it by running the following command:
gcloudinit
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, seeAuthenticate for using REST in the Google Cloud authentication documentation.
Resize disks
If you require additional storage space or increased performance limits, you canincrease 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 secondarydisk, 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 manuallyresize it to the same size as the primary disk.
For information about how to increase the size of a disk, seeIncrease the size of a disk.
Clone disks
You can clone a single primary or secondary disk, or all secondary disks in aconsistency group.
Clone a single disk
Clone a Artifact Registry disk using the methods described inCreate a disk clone.
Clone all disks in a consistency group
Before you can clone secondary disks from a consistency group, you mustcreate a consistency groupin the secondary region for the disks that you want to clone, thenadd the secondary disks to the consistency group.
Clone all secondary disks in a consistency group using the Google Cloud console, thegcloud CLI, or REST.
Console
Clone all secondary disks in a consistency group by doing the following:
In the Google Cloud console, go to theAsynchronous replication page.
Click theConsistency groups tab.
Click the name of the consistency group that contains the secondarydisks.
ClickClone consistency group. TheClone consistency groupwindow opens.
ClickClone consistency group.
gcloud
Clone all secondary disks in a consistency group using thegcloud 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 groupthat contains the secondary disks to clone. For example,projects/PROJECT/regions/REGION/resourcePolicies/CONSISTENCY_GROUP_NAME
.LOCATION_FLAG
: the location flag for the disksin the consistency group. For regional disks, use--region
. For zonalzonal, use--zone
.LOCATION
: the region or zone that the disks in theconsistency group are located in. For regional disks, use the region. Forzonal disks, use the zone. The clones are created in this location.
REST
Clone all secondary disks in a consistency group using one of the followingmethods:
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 diskclones in.ZONE
: the zone to create the disk clones in.REGION
: the region to create the disk clones in.CONSISTENCY_GROUP_PROJECT
: the project thatcontains the consistency group.CONSISTENCY_GROUP_REGION
: the region where theconsistency group is located.CONSISTENCY_GROUP_NAME
: the name of theconsistency group.
What's next
- Learn how tomanage consistency groups.
- Learn how tomanage replication.
- Learn how tofailover and failback.
- Learn how tomonitor Asynchronous Replication performance.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-09 UTC.