Configuring a replication relationship in one step
Starting in ONTAP 9.5, you can use the snapmirror protect command to configure a data protection relationship in a single step. You specify a list of volumes to be replicated, an SVM on the destination cluster, a job schedule, and a SnapMirror policy. snapmirror protect does the rest.
Before you begin
The source and destination clusters and SVMs must be peered.
The language on the destination volume must be the same as the language on the source volume.
About this task
The snapmirror protect command chooses an aggregate associated with the specified SVM. If no aggregate is associated with the SVM, it chooses from all the aggregates in the cluster. The choice of aggregate is based on the amount of free space and the number of volumes on the aggregate.
The snapmirror protect command then performs the following steps:
Creates a destination volume with an appropriate type and amount of reserved space for each volume in the list of volumes to be replicated.
Configures a replication relationship appropriate for the policy you specify.
Initializes the relationship.
The name of the destination volume is of the form source_volume_name _dst. In case of a conflict with an existing name, the command appends a number to the volume name. You can specify a prefix and/or suffix in the command options. The suffix replaces the system-supplied dst suffix.
In ONTAP 9.5 and later, a destination volume can contain up to 1019 Snapshot copies.
Starting with ONTAP 9.5, SnapMirror Synchronous relationships can be created by using the snapmirror protect command.
true.
Example
The following example creates and initializes a SnapMirror DR relationship using the default MirrorAllSnapshots policy:
cluster_dst::> snapmirror protect -path-list svm1:volA, svm1:volB -destination-vserver svm_backup -policy MirrorAllSnapshots -schedule replication_daily
Example
The following example creates and initializes a SnapVault relationship using the default XDPDefault policy:
cluster_dst::> snapmirror protect -path-list svm1:volA, svm1:volB -destination-vserver svm_backup -policy XDPDefault -schedule replication_daily
Example
The following example creates and initializes a unified replication relationship using the default MirrorAndVault policy:
cluster_dst::> snapmirror protect -path-list svm1:volA, svm1:volB -destination-vserver svm_backup -policy MirrorAndVault
Example
The following example creates and initializes a SnapMirror Synchronous relationship using the default Sync policy:
cluster_dst::> snapmirror protect -path-list svm1:volA, svm1:volB -destination-vserver svm_sync -policy Sync
After you finish
Use the snapmirror show command to verify that the SnapMirror relationship was created. For complete command syntax, see the man page.