Table of ContentsView in Frames

Preparing storage systems for SnapMirror replication

Before you can use SnapManager's integrated SnapMirror technology to mirror Snapshot copies, you need to configure a data-protection relationship between the source and destination volumes, then initialize the relationship. Upon initialization, SnapMirror makes a Snapshot copy of the source volume, then transfers the copy and all the data blocks that it references to the destination volume. It also transfers any other, less recent Snapshot copies on the source volume to the destination volume.

Before you begin

About this task

You can use the Data ONTAP command-line interface (CLI) or OnCommand System Manager to create a SnapMirror relationship. The following procedure assumes you are using the CLI. For information about how to create SnapMirror relationship by using OnCommand System Manager, see the Clustered Data ONTAP Volume Disaster Recovery Preparation Express Guide.

The following illustration shows the procedure for initializing a SnapMirror relationship:

This illustration shows the procedure for initializing a SnapMirror relationship: identifying the destination cluster, creating a destination volume, creating a SnapMirror relationship between the volumes, and then initializing the relationship to start a baseline transfer.

Steps

  1. Identify the destination cluster.
  2. On the destination cluster, use the volume create command with the -type DP option to create a SnapMirror destination volume that is either the same or greater in size than the source volume.
    Important: The language setting of the destination volume must match the language setting of the source volume.
    Example
    The following command creates a 2-GB destination volume named dstvolB in SVM2 on the aggregate node01_aggr:
    cluster2::> volume create -vserver SVM2 -volume dstvolB -aggregate node01_aggr -type DP 
    -size 2GB
  3. On the destination SVM, use the snapmirror create command with the -type DP parameter to create a SnapMirror relationship.
    The DP type defines the relationship as a SnapMirror relationship.
    Example
    The following command creates a SnapMirror relationship between the source volume srcvolA on SVM1 and the destination volume dstvolB on SVM2. By default, the command assigns the default SnapMirror policy DPDefault:
    SVM2::> snapmirror create -source-path SVM1:srcvolA -destination-path SVM2:dstvolB 
    -type DP
    Note: Do not define a mirror schedule for the SnapMirror relationship. SnapManager does that for you when you create a backup schedule.

    If you do not want to use the default SnapMirror policy, you can invoke the snapmirror policy create command to define a SnapMirror policy.

  4. Use the snapmirror initialize command to initialize the relationship.
    The initialization process performs a baseline transfer to the destination volume. SnapMirror makes a Snapshot copy of the source volume, then transfers the copy and all the data blocks it references to the destination volume. It also transfers any other Snapshot copies on the source volume to the destination volume.
    Example
    The following command initializes the relationship between the source volume srcvolA on SVM1 and the destination volume dstvolB on SVM2:
    SVM2::> snapmirror initialize -destination-path SVM2:dstvolB