[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


netapp snapmirror  update

Posted on 2012-09-17
Medium Priority
Last Modified: 2012-09-20
I am having two Netapp storage devices located on two different sites.
There is configured snapmirror( synchronous and asynchronous) replication between them.
3 of my volumes are being replicated synchronously. The other 12 are replicating asynchrounously with time between 15 min to 2 hours.
I want to test my DR scenario. I am going to shut down the storage on the primary site.
 What I do for synchrounous replicated volumes is, that are not managed by VMware SRM software is:
snapmirror  quiesce volume1
snapmirror break volume1

For asynchrounous replication I am doing :

snapmirror update volume4
snapmirror update volume 5
snapmirror update volume 15

The other operations are performed by VMWare SRM software(like quiesce, break).

I was wondering if it's possible to write just one command to update all volumes and not one by one like above ( snapmirror update volume 4, snapmirror update volume 5 ........)
Question by:dedri
LVL 22

Accepted Solution

robocat earned 1000 total points
ID: 38404897
There's no command to update all snapmirrors at once.

If you enable rsh or ssh, you can send remote commands by script. Make a (shell or bat) script like this:

ssh filer snapmirror update volume1
ssh filer snapmirror update volume2

Next you can run this from a remote host that is allowed to send rsh/ssh commands to the filer.
LVL 42

Assisted Solution

by:Paul Solovyovsky
Paul Solovyovsky earned 1000 total points
ID: 38404904
Quite easy, just create a text file, put all your "snapmirror update volume x", paste into CLI via SSH and it will do each line one by one.  You can do the same with break, quiesce, resync, etc.. if you need it to.

Hopefully you're using SRM 5 (5.1 just came out with new features), lots of improvements over 4.x

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
The main intent of this article is to make you aware of ‘Exchange fail to mount’ error, its effects, causes, and solution.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question