Tuesday, February 2, 2016

NetApp: Disabling snapshot for a volume on Data OnTAP

Sometimes, you need to disable snapshots for a volume, and the command line makes it so much easier.

Why in the world would someone want to disable a perfectly good feature of NetApp NAS Storage? Server/data migration for one. Disabling it temporarily will prevent the volume from filling up the snapshot directory. Maybe your volume doesn't need snapshots such as iscsi luns (data always changing, and can not be recoverable even with snapshots- such as oracle data dirs, in which case snapshots are useless).
You have to perform simple but important tasks. If your volume has a schedule, turn it off.

filer> snap sched volname Volume volname: 2 4 8@2,4,6,12,164
filer> snap sched volname 0 0 0 
filer> snap sched volname Volume volname: 0 0 0

That takes care of that. Next step is to disable the automatic snapshot option.

filer> vol options volname nosnap on

Now if you issue vol options vol You should see an option that says nosnap=on.

Lastly, you'll probably want to disable the display of the .snapshot directory. Not really a biggie if the qtree/vol is NTFS security style. But in UNIX, you'll see ".snapshot" in ls -la.

filer> vol options volname nosnapdir on

No comments:

Post a Comment