SEARCH
TOOLBOX
LANGUAGES
NetAppFiler

NetAppFiler

From GarrettHoneycutt

Jump to: navigation, search

Contents

Filer Cheat Sheet

Connecting

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

http://now.netapp.com/ - 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

Aggregate

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

Volume

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`

"anon=0"

Logs

shows messages, rdfile is similar to cat

$ rdfile /etc/messages

show auditlog. warning this log is very verbose

$ rdfile /etc/log/auditlog

Performance

show utilization stats, updating every 5 seconds

$ sysstat 5

show extended utilization stats, updating every 5 seconds

$ sysstat -u 5

Network

show network interfaces

$ ifconfig -a

show virtual network interfaces (vifs)

$ vif status

show stats for vif vif0

$ vif stat vif0

Cluster

$ cf status
show cluster status

Messages

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

Exports

show current exports

$ exportfs

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

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

Snapshots

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.
NOTIFY YOUR SYSTEM MANAGER.
The following directory is part of the cycle:
  `/some/nfs/mount/.snapshot/v_nightly.8'



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

Procedure

  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

Verification

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