Subscribe

How to lock a SnapMirror Snapshot?

Hello,

Below snapmirror snapshots are busy. But, can be deleted easily. They are busy but not 'locked' in our environment.

If a script is run carelessly to delete all older snapshots, or if someone deletes the snapshot manually, or if auto deletion kicks in, these snapshots can easily be deleted. Esp for large databases, we end up re-initializing the whole volume.

Do you know if using any vol options or so, I can lock the snapmirror snapshots for regular users? And as a storage admin, I can go to storage system as privileged user etc to delete these snapmirror snapshots if at all need be?

netapp1> snap list  Vol1
Volume Vol1
working...
  %/used       %/total  date          name
----------  ----------  ------------  --------
  0% ( 0%)    0% ( 0%)  May 08 23:30  netapp2(1873968716)_Vol1.1532 (snapmirror)

netapp2> snap list Vol1
Volume Vol1
working...
  %/used       %/total  date          name
----------  ----------  ------------  --------
  0% ( 0%)    0% ( 0%)  May 08 22:30  netapp2(1873968716)_Vol1.1532
  0% ( 0%)    0% ( 0%)  May 08 22:15  netapp2(1873968716)_Vol1.1531

Re: How to lock a SnapMirror Snapshot?

Vol options--- nosnapdir on. try this. this will disable user access to snapshots per volume.