2009-10-08 02:32 AM
Can anyone let me know how to change the direction of replication?
I had configured SnapMirror,
What are the series of commands i need to execute in order to reverse the direction of replication?
2009-10-08 04:17 PM
The command you need to use is <snapmirror resync>. snapmirror resync can help you change source and destination by adding -S (source)
if you have a relationship that is vol1 > vol2 you can reverse this by adding the -S tag and reverse the source and destination volume like so:
snapmirror resync -S filer:vol2 filer:vol1
The command above will reverse relationship a bit like in a DR scenario. Then when you want to reverse back change it back:
snapmirror resync -S filer:vol1 filer:vol2
Once you have gone through the sequence above you will have to clean up your snapmirror destinations on filer:vol2. this can
be done by running
This will for example return
Then grab that outuput and insert it in <snapmirror release>
<snapmirror release NFS_TST_VOL001 FAS608002B:NFS_TST_VOL001>
This will clean up your snapmirror relationships so that the destination filer does not think it is a source: keep in mind it was a source for a short while after you reversed the first time.
Any questions, feel free to ask.