Table of ContentsView in Frames

Converting a SnapMirror relationship to a version-flexible SnapMirror relationship

You can convert SnapMirror relationships that you created in a previous Data ONTAP release to version-flexible SnapMirror relationships because you can better control the Snapshot copies you replicate and retain for better resource utilization.

Steps

  1. On the destination volume, break the SnapMirror relationship by using the snapmirror break command.
    Example
    cluster2::> snapmirror break -destination-path
    vserverB:dstvolB
  2. On the destination volume, delete the SnapMirror relationship by using the snapmirror delete command.
    Example
    cluster2::> snapmirror delete -destination-path
    vserverB:dstvolB
  3. Create a policy by using the snapmirror policy create command.
    Alternatively, you can use an existing policy that is a policy type of async-mirror.
    Example
    The following command creates a version-flexible SnapMirror policy called "vserverB-DR-policy" that will be used for SnapMirror style disaster recovery in which only the SnapMirror created Snapshot copy is transferred:
    cluster2::> snapmirror policy create -vserver vserverB -policy vserverB-DR-policy 
    -policy-type mirror-vault -comment "DR policy"
    
  4. Add a rule to the "vserverB-DR-policy" policy by using the snapmirror policy add-rule command.
    Adding a rule that matches the all_source_snapshots SnapMirror label will cause the version-flexible SnapMirror relationship to transfer all of the Snapshot copies to the destination volume, closely matching the behavior of the previous SnapMirror relationship.
    Example
    The following command adds a rule to the "vserverB-DR-policy" policy to retain all of the Snapshot copies on the source volume:
    cluster2::> snapmirror policy add-rule -vserver vserverB -policy vserverB-DR-policy 
    -snapmirror-label all_source_snapshots 
    
  5. On the destination volume, create the version-flexible SnapMirror relationship by using the snapmirror create command with the -type XDP parameter and the -policy parameter.
    The version-flexible SnapMirror relationship must use the same source volume and destination volume as the previous SnapMirror relationship.
    Example
    cluster2::> snapmirror create -source-path vserverA:srcvolA
    -destination-path vserverB:dstvolB -type XDP -policy 
    vserverB-DR-policy -schedule daily
  6. On the destination volume, resynchronize the source volume and destination volume of the version-flexible SnapMirror relationship by using the snapmirror resync command.
    cluster2::> snapmirror resync -destination-path 
    vserverB:dstvolB