Creating Relationships for the NetApp Open Replication Feature

For the NetApp Open Replication feature, you need to create a relationship.

The type of relationship that you create depends on the type of copy that you want to use.

Type of copy to use

Type of relationship to create

Vault/replica copy

  • SnapVault

  • MirrorVault

Mirror copy

  • SnapMirror

  • Version Flexible Mirror

To configure the relationships, use either the commands in the following procedure or the NetApp OnCommand System Manager Web Interface.

Before You Begin

Verify that both the source volume and the target volume meet the following conditions:

  • Are the same size

  • Use the same volume language

Procedure

Type the following commands on the destination storage virtual machine (that is, the Vserver).

  1. To create a destination volume, type the following command:

    volume create -vserver <destination SVM name> -volume <volume name> -aggregate <aggregate name> -size <size of volume> -state online -type DP -language <volume language> -space-guarantee none -snapshot-policy none
  2. For each volume that is going to be replicated, create one of the following relationships:

    • To create a SnapVault relationship, type the following command:

      snapmirror create -type XDP -policy XDPDefault -source-path <Source SVM>:<Source Volume> -destination-path <Destination SVM>:<Destination Volume>

    • To create a SnapMirror relationship on ONTAP versions earlier than 9.3, type the following command:

      snapmirror create -type DP -policy DPDefault -source-path <Source SVM>:<Source Volume> -destination-path <Destination SVM>:<Destination Volume>

    Note

    Starting on ONTAP 9.3 and later, by default, all relationships are of type XDP.

    • To create a MirrorVault relationship, type the following command:

      snapmirror create -type XDP –policy <Snapmirror policy with policy type mirror-vault> -source-path <Source SVM>:<Source Volume> -destination-path <Destination SVM>:<Destination Volume>

    Note

    Starting ONTAP 9.5 and later, the -type and -policy fields are optional when creating a MirrorVault relationship.

    • To create a Version Flexible Mirror relationship, do one of the following:

      • On ONTAP versions 9.3 and later, type the following command

        snapmirror create –policy <Snapmirror policy with policy type async-mirror> -source-path <Source SVM>:<Source Volume> -destination-path <Destination SVM>:<Destination Volume>
      • On ONTAP versions earlier than 9.3, type the following command:

        snapmirror create -type XDP –policy <Snapmirror policy with policy type async-mirror> -source-path <Source SVM>:<Source Volume> -destination-path <Destination SVM>:<Destination Volume>

Note

To verify the snapmirror policy type, type the following command:

snapmirror policy show -fields policy, type

  1. To initialize the relationship, type the following command:

    snapmirror initialize -destination-path <Destination SVM>:<Destination Volume>

Results

The relationship is created on the target NetApp array and accessible from the source array.

Loading...