Skip to main content

Create a replication relationship

Contributors netapp-rlithman

Create a replication relationship for an FSx for ONTAP file system to avoid data loss in case of an unforeseen disaster.

About this task

Replication is an added layer of data protection which is essential in case the region where your data resides experiences a disaster. Data loss can be avoided if you use cross-region replication.

This operation creates a replication relationship for one or all source volumes in an FSx for ONTAP file system.

Replicated volumes in the target file system follow the naming format: {OriginalVolumeName}_copy.

Before you begin

Make sure you meet the following prerequisites before you begin.

  • You must have two available file systems in your storage inventory to create a replication relationship.

  • The two file systems you use for the replication relationship must have an associated link. If the file systems don't have existing links, first create a link. To associate a link in the file systems, click Associate link under Account name. Once the link associates in both file systems, return to this operation.

Complete the following steps to replicate a single volume or replicate all volumes in a file system.

Replicate a single volume
Steps
  1. Log in to the Workload Factory console

  2. In Storage, select Go to storage inventory.

  3. In the FSx for ONTAP tab, select the three dots menu of the file system that contains the volume to replicate and then select Manage.

  4. From the Volumes tab, select the three dots menu of the volume to replicate.

  5. Select Data protection actions then Replicate volume data.

  6. On the Create replication page, under Replication target, provide the following:

    1. FSx for ONTAP file system: Select credentials, region, and FSx for ONTAP file system name for the target FSx for ONTAP file system.

    2. Storage VM name: Select the storage VM from the dropdown menu.

    3. Volume name: The target volume name is generated automatically with the following format {OriginalVolumeName}_copy. You can use the auto-generated volume name or enter another volume name.

    4. Tiering policy: Select the tiering policy for the data stored in the target volume.

      Auto is the default tiering policy when creating a volume using the Workload Factory FSx for ONTAP user interface. For more information about volume tiering policies, refer to Volume storage capacityin AWS FSx for NetApp ONTAP documentation.

    5. Max transfer rate: Select Limited and enter the max transfer limit in MB/s. Alternatively, select Unlimited.

      Without a limit, network and application performance may decline. Alternatively, we recommend an unlimited transfer rate for FSx for ONTAP file systems for critical workloads, for example, those that are used primarily for disaster recovery.

  7. Under Replication settings, provide the following:

    1. Replication interval: Select the frequency that snapshots are transferred from the source volume to the target volume.

    2. Long-term retention: Optionally, enable snapshots for long-term retention.

      If you enable long-term retention, then select an existing policy or create a new policy to define the snapshots to replicate and the number to retain.

      1. For Choose an existing policy, select an existing policy from the dropdown menu.

      2. For Create a new policy, provide the following:

        1. Policy name: Enter a policy name.

        2. Snapshot policies: In the table, select the snapshot policy frequency and the number of copies to retain. You can select more than one snapshot policy.

  8. Click Create.

Replicate all volumes in a file system
Steps
  1. Log in to the Workload Factory console

  2. In Storage, select Go to storage inventory.

  3. In the FSx for ONTAP tab, click the three dots menu of the file system with the volumes and then select Manage.

  4. From the file system overview, select Create replication.

  5. On the Create replication page, under Replication target, provide the following:

    1. FSx for ONTAP file system: Select credentials, region, and FSx for ONTAP file system name for the target FSx for ONTAP file system.

    2. Storage VM name: Select the storage VM from the dropdown menu.

    3. Volume name: The target volume name is generated automatically with the following format {OriginalVolumeName}_copy.

    4. Tiering policy: Select the tiering policy for the data stored in the target volume.

      Auto is the default tiering policy when creating a volume using the Workload Factory FSx for ONTAP user interface. For more information about volume tiering policies, refer to Volume storage capacityin AWS FSx for NetApp ONTAP documentation.

    5. Max transfer rate: Select Limited and enter the max transfer limit in MB/s. Alternatively, select Unlimited.

      Without a limit, network and application performance may decline. Alternatively, we recommend an unlimited transfer rate for FSx for ONTAP file systems for critical workloads, for example, those that are used primarily for disaster recovery.

  6. Under Replication settings, provide the following:

    1. Replication interval: Select the frequency that snapshots are transferred from the source volume to the target volume.

    2. Long-term retention: Optionally, enable snapshots for long-term retention.

      If you enable long-term retention, then select an existing policy or create a new policy to define the snapshots to replicate and the number to retain.

      1. For Choose an existing policy, select an existing policy from the dropdown menu.

      2. For Create a new policy, provide the following:

        1. Policy name: Enter a policy name.

        2. Snapshot policies: In the table, select the snapshot policy frequency and the number of copies to retain. You can select more than one snapshot policy.

  7. Click Create.

Result

The replication relationship appears in the Replication relationships tab.