ONTAP Discussions

snapmirror and sanpdrive

RATNATHURAI
6,086 Views

I have setup snapmirror relation between source and destination for a volume. Added the entry into the snapmirror.conf file and scheduled the snapmirror. I took the snapshot at the source using snapdrive to make the consistent snap shot . I invoked snapmirror quiesce and break via oncomand system manger so the destination volume will be read/writeable. Mounted the dr Lun at the destination server and tested all ok.  Everything worked up to this stage.

I took a snapshot at the destination server using snapdrive.

My intention was to reverse synch from dr to source filer after few test . I noticed that the snapmirror relation on the oncomand system manger was in unknown sate instead “reverse” or “resync “ with broken-off.  I was not able to reversesync  from the destination to source back since the only option was left to initialize from source to destination.

I can not think of any reason  why I did not have the option to reverse sync .  Is it something to do with oncomand sytem manager or snapdrive snapshot? I will appreciate experts who can help me on this.

11 REPLIES 11

aborzenkov
6,040 Views

I would not trust system manager at this point. It is quite possible that it needed SnapMirror.conf on source (i.e. new destination) or that it did not find common snapshot with "correct" name.

Next time start with doing reverse resync using CLI. This will also make troubleshooting easier.

RATNATHURAI
6,040 Views

Thank you for your quick reply.

Am i doing this at the source as below

source> snapmirror resync -S DST:vol1 SOurce:vol1

or DST>snapmirror resync -S  dst:vol1 source:vol1

aborzenkov
6,040 Views

To revert you do it on original source.

RATNATHURAI
6,040 Views

If there is no common snapshot then it is not going to resync . So we have to initialize from destination to source , am I correct?

aborzenkov
6,040 Views

Yes, that's correct.

RATNATHURAI
6,040 Views

I was able to recreate the issue today. I ran the initialization first then ran snap mirror via snap drive.

i made it sure that both place have common snapshot.

> snap list vol at both filer and noticed that both place has had common snapshot.

for an example ****.snap.25

I noticed that last snapshot (***.snap.25) at the dr site is being deleted/renamed when i mount the lun to snapdrive .

the sanpdrive gave this warning when i mounted the lun.

you are attempting to connect to a lun residing on a broken snap mirror swatination storage system volume. A snaprestore operation from the most recent consistent snapshot copy of the lun will be performed before the connection is established.

aborzenkov
6,040 Views

Any snapshot can be used as common base snapshot when doing resync, including SnapDrive consistent snapshot. Please show snap list from both source and destination.

RATNATHURAI
6,040 Views

SRN> snap list v_unitrends

Volume v_unitrends

working...

  %/used       %/total  date          name

----------  ----------  ------------  --------

  0% ( 0%)    0% ( 0%)  Jul 18 10:51  DST(0142236780)_v_unitrends.3 (snapmirror)

  0% ( 0%)    0% ( 0%)  Jul 18 10:51  srv01_snap.0

  0% ( 0%)    0% ( 0%)  Jul 18 10:44  srv01_snap.1

SRN>

srv01_snap_recent these snapshot are being created by snapdrive script.

the destination filer shows this after the snapdrive connected to lun.

DST> snap list v_unitrends

Volume v_unitrends

working...

  %/used       %/total  date          name

----------  ----------  ------------  --------

  0% ( 0%)    0% ( 0%)  Jul 18 10:51  srv01_snap_recent

  0% ( 0%)    0% ( 0%)  Jul 18 10:45  DST(0142236780)_v_unitrends.2

  0% ( 0%)    0% ( 0%)  Jul 18 10:44  srv01_snap.0

  0% ( 0%)    0% ( 0%)  Jul 18 10:16  srv01_snap.1

DST>

the snapdrive is removing this snapshot

0% ( 0%)0% ( 0%)  Jul 18 10:51  DST(0142236780)_v_unitrends.3 (snapmirror)

aborzenkov
6,040 Views

I wonder, where srv01_snap_recent on source is gone? That seems to be the actual problem.

But with snapshots shown, you still have at least one common snapshot that should allow resyncing back (or forth).

RATNATHURAI
5,094 Views

Thank you for your reply.srv01_snap_*  are snap drive snapshot.

DST(0142236780)_v_unitrends.* these are the snap mirror snapshots?

I am wondering why .3 is disappearing when i mount the lun to snapshot.

I can snap mirror resycn using cli command ,but reluctant to do it in production,

aborzenkov
5,094 Views

Yes, snapshots with names containing destination and sysid are SnapMirror snapshots. They are created automatically every time SnapMirror is updated (unless snapshot is specified explicitly). What happens here most likely is

- SnapDrive creates "consistent" snapshot on source

- SnapMirror is updated created next xxx.n snapshot. This updates transfers also SnapDrive snapshot, which is earlier than SnapMirror snapshot.

- when LUN is connected on destination, it is reverted to SnapDrive snapshot - this by definition removes all later snapshots.

As I already mentioned, to me most surprising is missing SnapDrive snapshot on source.

Public