NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

How to lock a SnapMirror Snapshot?

murugupp
4,397 Views

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

1 REPLY 1

anilvummaneni
4,397 Views

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

Public