ONTAP Discussions

How to change direction of replication?

manosoftlive
4,275 Views

Hi

Can anyone let me know how to change the direction of replication?

I had configured SnapMirror,


Source
Filer:Location
Destination
Filer:Location
StatusStateLag
hh:mm:ss
Operations

netapp1:Vol1netapp2:Vol1idlesnapmirrored00:01:54
Modify
View
Delete
Advanced

What are the series of commands i need to execute in order to reverse the direction of replication?

-Manoranjan

2 REPLIES 2

radek_kubka
4,275 Views

Hi,

Very nice example in this doc:

http://media.netapp.com/documents/tr-3671.pdf

page 28

Regards,

Radek

eric_barlier
4,275 Views

Hi Manoranjan

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

<snapmirror destinations>

This will for example return

NFS_TST_VOL001 FAS60800:NFS_TST_VOL001

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.

Eric

Public