Skip to main content

Initialize an ONTAP SnapMirror replication relationship

Contributors netapp-aaron-holt netapp-lenida netapp-aherbin netapp-dbagwell netapp-thomi

For all relationship types, initialization performs a baseline transfer: it makes a snapshot of the source volume, then transfers that copy and all the data blocks it references to the destination volume. Otherwise, the contents of the transfer depend on the policy.

Before you begin

The source and destination clusters and SVMs must be peered.

About this task

Initialization can be time-consuming. You might want to run the baseline transfer in off-peak hours.

Beginning with ONTAP 9.5, SnapMirror synchronous relationships are supported.

You should be aware that if a filesystem is rebooted for any reason, such as a node reboot, takeover/giveback, or panic, then initialization will not automatically resume and must be restarted manually.

Step
  1. Initialize a replication relationship:

    snapmirror initialize -source-path <SVM:volume>|<cluster://SVM/volume>, …​ -destination-path <SVM:volume>|<cluster://SVM/volume>, …​

    Note

    You must run this command from the destination SVM or the destination cluster.

    The following example initializes the relationship between the source volume volA on svm1 and the destination volume volA_dst on svm_backup:

    cluster_dst::> snapmirror initialize -source-path svm1:volA -destination-path svm_backup:volA_dst

    Learn more about snapmirror initialize in the ONTAP command reference.