NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Hardware

Command for SnapMirror Break with Wildcard

GUNNAR75
3,848 Views

Hello NetAppianer,

for a DR-Solution we need one command to break all snapmirror-destinations on secondary site.
Is it possible to break all Snapmirror-relations for a vserver or destination-cluster with one Command on cluster-shell ?

command like this:

destination-cluster::>snapmirror break -destination-vserver dr-vserver: -force

 

OnTap-Version: 9.1

 



kind regards

1 ACCEPTED SOLUTION

sgrant
3,793 Views

Hello, yes you can use wildcards in the snapmirror command...

 

cluster2::snapmirror> snapmirror break -destination-path svm_dst1:*
Operation succeeded: snapmirror break for destination "svm_dst1:vol2_dest".
Operation succeeded: snapmirror break for destination "svm_dst1:vol3_dest".
Operation succeeded: snapmirror break for destination "svm_dst1:vol4_dest".
3 entries were acted on.

 

Have you also considered using the Storage Virtual Machine Disaster Recovery (SVM DR) feature? This will allow you to SnapMirror the SVM (either with -identity-preserve set to true or false) from a single command, since all volumes owned by the SVM are managed by a single schedule and all SnapMirror commands apply to the SVM not individual volumes.

 

Note: However it is not compatable from SnapManager products, since the updates must be from ONTAP.

 

For more info see Data Protection Using SnapMirror and SnapVault Technology: https://library.netapp.com/ecm/ecm_download_file/ECMLP2494079 page 69.

 

Hope this helps,

 

Cheers,

Grant.

 

 

 

View solution in original post

1 REPLY 1

sgrant
3,794 Views

Hello, yes you can use wildcards in the snapmirror command...

 

cluster2::snapmirror> snapmirror break -destination-path svm_dst1:*
Operation succeeded: snapmirror break for destination "svm_dst1:vol2_dest".
Operation succeeded: snapmirror break for destination "svm_dst1:vol3_dest".
Operation succeeded: snapmirror break for destination "svm_dst1:vol4_dest".
3 entries were acted on.

 

Have you also considered using the Storage Virtual Machine Disaster Recovery (SVM DR) feature? This will allow you to SnapMirror the SVM (either with -identity-preserve set to true or false) from a single command, since all volumes owned by the SVM are managed by a single schedule and all SnapMirror commands apply to the SVM not individual volumes.

 

Note: However it is not compatable from SnapManager products, since the updates must be from ONTAP.

 

For more info see Data Protection Using SnapMirror and SnapVault Technology: https://library.netapp.com/ecm/ecm_download_file/ECMLP2494079 page 69.

 

Hope this helps,

 

Cheers,

Grant.

 

 

 

Public