Thursday, December 30, 2010

How to revert setting device attributes

The syntax is

set device SymDevName[:SymDevName]
[emulation=EmulationType]
[attribute=[NO] device_attr];

i.e
set dev 0D44 attribute= NO SCSI3_PERSIST_RESERV;

Wednesday, December 15, 2010

Netapp Snapshot: quick guide

Netapp Snapshot: quick guide

Netapp Snapshot technology helps in creating point-in-time copies of file systems, which you can use to protect data—from a single file to a complete disaster recovery solution. You can create a Snapshot copies in less than a second, regardless of volume size or level of activity on your NetApp system. Currently there is a limit of 255 snapshots per volume. Read more at Netapp Tech library.

Here is a quick overview of the netapp snapshot management commands.

To list a snapshots on a netapp storage volume

filer2> snap list vol79
Volume vol79
working...

%/used %/total date name
---------- ---------- ------------ --------
0% ( 0%) 0% ( 0%) Nov 12 22:00 hourly.0
0% ( 0%) 0% ( 0%) Nov 12 21:00 hourly.1
0% ( 0%) 0% ( 0%) Nov 12 00:00 nightly.0
0% ( 0%) 0% ( 0%) Nov 11 00:00 nightly.1
0% ( 0%) 0% ( 0%) Nov 10 00:00 weekly.0
0% ( 0%) 0% ( 0%) Nov 09 00:00 nightly.2
0% ( 0%) 0% ( 0%) Nov 08 00:00 nightly.3
0% ( 0%) 0% ( 0%) Nov 07 00:00 nightly.4
0% ( 0%) 0% ( 0%) Nov 03 00:00 weekly.1
filer2>


To create a manual snapshot

filer2> snap create vol79 test123

filer2> snap list vol79
Volume vol79
working...

%/used %/total date name
---------- ---------- ------------ --------
0% ( 0%) 0% ( 0%) Nov 12 22:09 test123
0% ( 0%) 0% ( 0%) Nov 12 22:00 hourly.0
0% ( 0%) 0% ( 0%) Nov 12 21:00 hourly.1
0% ( 0%) 0% ( 0%) Nov 12 00:00 nightly.0
0% ( 0%) 0% ( 0%) Nov 11 00:00 nightly.1
0% ( 0%) 0% ( 0%) Nov 10 00:00 weekly.0
0% ( 0%) 0% ( 0%) Nov 09 00:00 nightly.2
0% ( 0%) 0% ( 0%) Nov 08 00:00 nightly.3
0% ( 0%) 0% ( 0%) Nov 07 00:00 nightly.4
0% ( 0%) 0% ( 0%) Nov 03 00:00 weekly.1
filer2>


Print the snapshot schedules for a volume (hourly, nightly, weekly snapshot)

filer2> snap sched vol79
Volume vol79: 2 5 2
filer2>

Change snapshot schedules

filer2> snap sched vol79 2 4 3
filer2> snap sched vol79
Volume vol79: 2 4 3
filer2>

Show snapshot reserve space ( the space allotted to store snapshot in volume )

filer2> snap reserve vol79
Volume vol79: current snapshot reserve is 0% or 0 k-bytes.
filer2> df -h vol79
Filesystem total used avail capacity Mounted on
/vol/vol79/ 300GB 229GB 70GB 77% /vol/vol79/
/vol/vol79/.snapshot 0MB 65MB 0MB ---% /vol/vol79/.snapshot

Change snaphot reserve space

filer2> snap reserve vol79 5
filer2> df -h vol79
Filesystem total used avail capacity Mounted on
/vol/vol79/ 285GB 229GB 55GB 81% /vol/vol79/
/vol/vol79/.snapshot 15GB 66MB 14GB 0% /vol/vol79/.snapshot
filer2>

To delete a snapshot

filer2> snap delete vol79 test123
filer2>