Manage disks that use Asynchronous Replication


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

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:

  1. In the Google Cloud console, go to theAsynchronous replication page.

    Go to Asynchronous replication

  2. Click theConsistency groups tab.

  3. Click the name of the consistency group that contains the secondarydisks.

  4. ClickClone consistency group. TheClone consistency groupwindow opens.

  5. 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 thedisks.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 theregionDisks.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

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.