Protect with ONTAP SnapMirror active sync for NAS
Configure SnapMirror active sync for NAS
Beginning with ONTAP 9.19.1, you can configure SnapMirror active sync for NAS configurations.
-
Both clusters in the SnapMirror active sync relationship must be running ONTAP 9.19.1 or later.
-
You must be a cluster administrator.
-
You must have configured ONTAP Mediator or ONTAP Cloud Mediator.
-
The source and destination clusters must be peered.
The following table describes supported and unsupported ONTAP features with SnapMirror active sync for NAS.
| ONTAP feature | Supported by SnapMirror active sync | Additional information |
|---|---|---|
Application consistency groups |
No |
|
Audit |
Yes |
Only consolidated logs in the SVM are replicated. |
DP volumes |
No |
|
FabricPool |
Partially |
The |
File System Analytics |
Partially |
On the secondary SVM, File System Analytics is set to |
FlexCache volume |
No |
|
FlexGroup volume |
No |
|
Fpolicy and antivirus scan |
Yes |
|
Load-sharing mirrors |
No |
In ONTAP 9.19.1, SnapMirror active sync for NAS supports only 2 nodes in an AFF cluster. |
MetroCluster configuration |
No |
|
Multi admin verify for NAS commands |
No |
|
S3 NAS |
No |
|
SAN volumes in a SnapMirror active sync NAS protected SVM |
No |
SnapMirror active sync for NAS inititialization fails if volumes hosting LUNs exist in the SVM. |
SnapLock |
No |
|
SnapMirror to cloud |
No |
|
SVM migrate |
No |
To enable SnapMirror active sync for NAS, you create a destination SVM. The destination SVM remains dormant until a failover occurs.
You can use System Manager or the ONTAP CLI to configure SnapMirror active sync for NAS.
-
From the source cluster, navigate to Cluster > Storage VMs.
-
Click
next to the name of the SVM you want to configure and select Protect. -
In the Protect Storage VM window, choose the destination cluster.
-
Choose
AutomatedFailOveras the replication policy. -
Enter a name for the storage VM being created on the destination.
-
Choose the volumes to protect:
-
Protect all volumes – by default, all volumes are protected
-
Choose volumes to protect - only the selected volumes are protected
-
Choose volumes to exclude - the selected volumes are excluded from protection
-
-
Click Initialize relationship.
-
Click Save.
-
In the Protect Storage VM window, verify the SVM protection status in the Protection column.
-
On the destination cluster, create an SVM of type dp-destination:
vserver create -vserver <SVM name> -sub-type dp-destinationExample:
destination::> vserver create -vserver vs_b -sub-type dp-destination
-
Create an SVM peer relationship to the source SVM:
vserver peer create -vserver <destination SVM> -peer-vserver <souce SVM> -peer-cluster <source cluster> -applications snapmirrorExample:
destination::> vserver peer create -vserver vs_b -peer-vserver vs_a -peer-cluster SiteA -applications snapmirror
-
On the source SVM, accept the peer request:
vserver peer accept -vserver <source SVM name> -peer-vserver <destination SVM name>vserver peer accept -vserver <source SVM name> -peer-vserver <destination SVM name>Example:
source::> vserver peer accept -vserver vs_a -peer-vserver vs_b
-
Create the SnapMirror relationship:
snapmirror create -source-path <source SVM name>: -destination-path <destination SVM name>: -policy AutomatedFailOverExample:
destination::> snapmirror create -source-path vs_a: -destination-path vs_b: -policy AutomatedFailOver
-
Verify the relationship was created and check the status:
'snapmirror show'
Example:
destination::> snapmirror show Progress Source Destination Mirror Relationship Total Last Path Type Path State Status Progress Healthy Updated ----------- ---- ------------ ------- -------------- --------- ------- -------- vs_a: XDP vs_b: Uninitialized Idle - true -
-
On the destination SVM, initialize the relationship:
snapmirror initialize -destination-path <SVM name>:Example:
destination::> snapmirror initialize -destination-path vs_b:
-
Check the initialization status:
snapmirror showExample:
destination::> snapmirror show Progress Source Destination Mirror Relationship Total Last Path Type Path State Status Progress Healthy Updated ----------- ---- ------------ ------- -------------- --------- ------- -------- vs_a: XDP vs_b: Snapmirrored InSync - true -
Create an unprotected volume in a SnapMirror active sync NAS configuration
You can exclude volumes from SnapMirror active sync if protection is not required; for example while creating a FlexClone volume for development testing.
You can use System Manager or the ONTAP CLI to exclude a cloned volume from SnapMirror active sync for NAS.
-
From the source cluster, navigate to Storage > Volumes.
-
In the list of volumes, click
next to the name of the volume you want to clone and select Clone. -
In the Clone volume window, ensure that Include clone in protection for business continuity is deselected.
-
Click Clone.
-
From the source cluster, add an unprotected volume to an existing SnapMirror active sync configuration:
volume clone create -vserver <SVM name> -flexclone <clone vol name> -parent-vserver <SVM name> -parent-volume <vol name> -parent-snapshot <snapshot name>
volume add -vserver <SVM name> -volume <volume name> -smas-protection unprotected
Use the ONTAP CLI to exclude a volume from a SnapMirror active sync NAS configuration
You can exclude a volume from a SnapMirror active sync NAS configuration if protection is no longer needed, or if you want to delete the volume.
|
|
Marking a currently protected volume as unprotected initiates a shrink operation on the SnapMirror active sync relationship. The shrink operation deletes SnapMirror entries for the volume on both the source and destination. |
|
|
Marking a volume as unprotected does not automatically delete the volume on the primary or secondary relationship. If you want to delete the volume, you can manually delete it on both the primary and secondary SVM. |
-
Remove a volume from SnapMirror active NAS protection:
volume modify -vserver <SVM name> -volume <volume name> -smas-protection unprotected
Convert an SVM DR relationship to a SnapMirror active sync relationship
In ONTAP 9.19.1, you cannot directly convert an SVM DR relationship into a SnapMirror active sync for NAS relationship. Instead, you must delete the SVM DR relationship, create a new destination SVM, establish a new SnapMirror active sync relationship, and initialize the relationship.
|
|
The snapmirror resync command is not currently supported.
|
-
On the destination cluster, delete the SnapMirror relationship:
snapmirror delete -destination-path -
On the primary cluster, release the relationship information:
snapmirror release -relationship-info-only true -
On the destination cluster, create an SVM with the dp-destination subtype:
vserver create -vserver <SVM name> -sub-type dp-destination -
On the destination cluster, create the SnapMirror relationship using the
AutomatedFailoverpolicy:snapmirror create -source-path <source SVM name> -destination-path <destination SVM name> -policy AutomatedFailOver -
On the destination cluster, initialize the relationship:
snapmirror initialize -destination-path <SVM name>