Create a volume replication

This page provides instructions on how to create a volume replication.

Replications are managed in the Google Cloud NetApp Volumes Volume details page in the Google Cloud console. When you replicate a volume, it creates a destination volume in an existing pool in the destination location.

Create a volume replication

Use the following instructions to create a volume replication using either the Google Cloud console or Google Cloud CLI.

Console

  1. Go to NetApp Volumes page in the Google Cloud console.

    Go to NetApp Volumes

  2. Click Volumes.

  3. Click the name of the volume you want to replicate.

    The Details page for the volume opens.

  4. Select the Replication tab. If the volume is part of a replication, details of the replication appear.

Select an existing storage pool or create a new one:

To select an existing storage pool for the destination volume:

  1. Click Select storage pool.

  2. In the Storage pools dialog, select the destination pool and click Select. You return to the Replication tab of the source volume details view. Details of the selected pool appear.

To create a new storage pool from the supported location pair:

  1. Follow the steps in Create a storage pool.

  2. After creating the storage pool, go back and select the volume for replication, then select the pool you just created.

  3. Click Next.

Fill out the volume replication dialog box:

  1. In the Create a volume replication dialog, complete the following steps:

    1. Review the source volume details.

    2. Click Next.

    3. Configure replication details:

    4. Enter a location-specific unique name for the replication.

    5. Optional: Add a description in the Description field.

    6. Select a replication schedule.

    7. Click Next.

Configure destination volume details:

  1. Configure destination volume details. Note that the destination volume inherits all settings from the source volume except the ones you must specify:

    1. Review the following details of the destination pools:

      • Location

      • Pool

      • Protocol

      • Active Directory settings

  2. Enter a name for the destination volume.

    1. Optional: Add a description in the Description field for the destination volume.

    2. Enter a share name. We strongly recommend that you use the same share name as the source volume, since it eases building disaster recovery concepts on top of volume replication.

    3. Optional: Under the Labels section, click Add label to add labels for the destination volume.

  3. Click Create.

gcloud

Create a new volume replication using the following command:

   gcloud netapp volumes create VOLUME_NAME \
      --project=PROJECT_ID \
      --location=LOCATION \
      --replication-schedule=REPLICATION_SCHEDULE \
      --destination-volume-parameters=description=DESCRIPTION,share_name=SHARE_NAME,storage_pool=STORAGE_POOL,volume_id=VOLUME_ID

Replace the following information:

  • VOLUME_NAME: the name of the volume.

  • PROJECT_ID: the name of the project you want to create the new volume replication in.

  • LOCATION: the location you want to create the new replication in.

  • REPLICATION_SCHEDULE: the schedule for the replication. The value must be either one of EVERY_10_MINUTES, HOURLY or DAILY.

  • DESCRIPTION: the description in the new volume.

  • SHARE_NAME: the share name.

  • STORAGE_POOL: the resource name of the storage pool you want to create the new volume replication in.

  • VOLUME_ID: the ID of the new volume.

For more options, see Google Cloud SDK documentation on volume replication.

An initial transfer begins and can take up to a few days depending on the amount of data in the source volume. Charges incurred for the amount of data that transfers. After the initial transfer completes, the destination volume is in a replicated state and you can mount it safely for read-only operations. Only changed blocks can replicate to the destination volume in subsequent replication actions.

What's next

View replication details.