Table of ContentsView in Frames

Preparing storage systems for SnapVault replication

Before you can use SnapManager's integrated SnapVault technology to archive Snapshot copies to disk, you need to configure a data-protection relationship between the source and destination volumes, then initialize the relationship. On initialization, SnapVault makes a Snapshot copy of the source volume, then transfers the copy and all the data blocks it references 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 SnapVault relationships. The following procedure assumes you are using the CLI. For information about how to create SnapVault relationship by using OnCommand System Manager, see the Clustered Data ONTAP Volume Backup Using SnapVault Express Guide.

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

This illustration shows the procedure for initializing a SnapVault relationship: identifying the destination cluster, creating a destination volume, creating a policy, adding rules to the policy, creating a SnapVault relationship between the volumes and assigning the policy to the relationship, 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 SnapVault destination volume that is 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 policy create command to create a SnapVault policy.
    Example
    The following command creates the SVM-wide policy SVM1-vault:
    SVM2::> snapmirror policy create -vserver SVM2 -policy SVM1-vault
    Note: Do not define a cron schedule or Snapshot copy policy for the SnapVault relationship. SnapManager does that for you when you create a backup schedule.
  4. Use the snapmirror policy add-rule command to add a rule to the policy that defines the following Snapshot copy labels and the retention policy for each label:
    • Daily
    • Weekly
    • Monthly
    • Hourly
    • Unlimited
    Important: The labels are case-sensitive.
    These are fixed labels that SnapManager uses. You select one of these options when you archive a backup. You must execute this command once for each of the rules you are adding.
    Example
    The following command adds a rule to the SVM1-vault policy that defines the "daily" label and specifies that thirty Snapshot copies matching the label should be kept in the vault:
    SVM2::> snapmirror policy add-rule -vserver SVM2 -policy SVM1-vault 
    -snapmirror-label Daily -keep 30
  5. Use the snapmirror create command with the -type XDP parameter and the -policy parameter to create a SnapVault relationship and assign a vault policy.
    The XDP type defines the relationship as a SnapVault relationship.
    Example
    The following command creates a SnapVault relationship between the source volume srcvolA on SVM1 and the destination volume dstvolB on SVM2. It assigns the policy named SVM1-vault:
    SVM2::> snapmirror create -source-path SVM1:srcvolA -destination-path SVM2:dstvolB 
    -type XDP -policy SVM1-vault
  6. 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.
    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