From GarrettHoneycutt

Revision as of 12:48, 25 September 2013 by Gh (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Filer Cheat Sheet


When ssh'ing to the filer, ensure agent forwarding is off, otherwise your session will hang before it begins

$ ssh -a

Info and status

Web interface - Login and view your filers as NetApp sees them.

system commands

show software and hardware info

$ sysconfig

show even more software and hardware info

$ sysconfig -v

show spare disks

$ sysconfig -r

show disk info

$ storage show

show disk paths

$ storage show disk -p

show ontap version

$ version

show configuration settings

$ options

show temperature, fan, and power status as well as shelf information

$ environment status


show aggregates

$ df -A

show aggregates

$ aggr status

show status of aggregate aggr0

$ aggr status aggr0

show more info about aggr0

$ aggr status aggr0 -v

show spare disks

$ aggr status -s


show volumes

$ df -h

show savings from deduplication

$ df -hs

show volumes

$ vol status

show status of volume vol vol0

$ vol status vol0

show more info about vol0

$ vol status vol0 -v

export with `no_root_squash`



shows messages, rdfile is similar to cat

$ rdfile /etc/messages

show auditlog. warning this log is very verbose

$ rdfile /etc/log/auditlog


show utilization stats, updating every 5 seconds

$ sysstat 5

show extended utilization stats, updating every 5 seconds

$ sysstat -u 5


show network interfaces

$ ifconfig -a

show virtual network interfaces (vifs)

$ vif status

show stats for vif vif0

$ vif stat vif0


$ cf status
show cluster status


shows messages

$ rdfile /etc/messages

rdfile is similar to cat(1)

$ rdfile

Aggregate operations

add named disks to aggregate aggr0

$ aggr add aggr0 -d 0a.115 0a.116 0a.117

add 36 150GB drives to aggr0

$ aggr add agg0 36@150

Volume operations

create new 100GB volume vol1 on aggregate aggr0

$ vol create vol1 -s volume aggr0 100G

grow volume vol1 by 50GB

$ vol size vol1 +50g

shrink volume vol1 by 50GB

$ vol size vol1 -50g


show current exports

$ exportfs

export /vol/foo read-write and let root on and write

$ exportfs -io rw,nosuid,rw,root= /vol/foo


list snapshots and status

$ snap list

show snapshot schedule

$ snap sched

disable snapshots for vol0

$ vol options vol0 nosnap on

disable snapshot schedule for vol0

$ snap sched vol0 0 0 0

take a snapshot of volume db_foo called db_bar

$ snap create db_foo db_bar

.snapshot causing problems?

If you see

# du -hs /some/nfs/mount
du: WARNING: Circular directory structure.
This almost certainly means that you have a corrupted file system.
The following directory is part of the cycle:

disable snapshot directory from being visible on the volume

$ vol options some_volume nosnapdir on

Replacing a disk

This has been tested on a FAS960 running Release 6.5.2R1P17


  1. telnet to filer
  2. priv set advanced 1 blink_on 2a.16
  3. remove drive with blinking LED 1 replace failed drive with new drive
  4. run: sysconfig -r to ensure that the drive has been removed as failed and new drive has been recognized.
  5. blink_off 2a.16
  6. priv set


Just run the following command that the new drive is recognized by the system.

sysconfig -r

If you do not see the drive, contact NetApp