Wednesday, May 20, 2015

Commands Netappp


http://netappnotesark.blogspot.in/2015/08/index_12.html
  This post contains the list of commands that will be most used and will come handy when managing or monitoring or troubleshooting a Netapp filer in 7-mode.
  • sysconfig -a : shows hardware configuration with more verbose information
  • sysconfig -d : shows information of the disk attached to the filer
  • version : shows the netapp Ontap OS version.
  • uptime : shows the filer uptime
  • dns info : this shows the dns resolvers, the no of hits and misses and other info
  • nis info : this shows the nis domain name, yp servers etc.
  • rdfile : Like “cat” in Linux, used to read contents of text files/
  • wrfile : Creates/Overwrites a file.
  • aggr status : Shows the aggregate status
  • aggr status -r : Shows the raid configuration, reconstruction information of the disks in filer
  • aggr show_space : Shows the disk usage of the aggregate, WAFL reserve, overheads etc.
  • vol status : Shows the volume information
  • vol status -s : Displays the spare disks on the filer
  • vol status -f / aggr status -f : Displays the failed disks on the filer
  • vol status -r : Shows the raid configuration, reconstruction information of the disks
  • df -h : Displays volume disk usage
  • df -i : Shows the inode counts of all the volumes
  • df -Ah : Shows “df” information of the aggregate
  • license : Displays/add/removes license on a netapp filer
  • maxfiles : Displays and adds more inodes to a volume
  • aggr create <Aggr Name> <Disk Names> : Creates aggregate
  • vol create : Creates volume in an aggregate
  • vol offline : Offlines a volume
  • vol online : Onlines a volume
  • vol destroy : Destroys and removes an volume
  • vol size [+|-] : Resize a volume in netapp filer
  • vol options : Displays/Changes volume options in a netapp filer
  • qtree create : Creates qtree
  • qtree status : Displays the status of qtrees
  • quota on : Enables quota on a netapp filer
  • quota off : Disables quota
  • quota resize : Resizes quota
  • quota report : Reports the quota and usage
  • snap list : Displays all snapshots on a volume
  • snap create : Create snapshot
  • snap sched : Schedule snapshot creation
  • snap reserve : Display/set snapshot reserve space in volume
  • /etc/exports : File that manages the NFS exports
  • rdfile /etc/exports : Read the NFS exports file
  • wrfile /etc/exports : Write to NFS exports file
  • exportfs -a : Exports all the filesystems listed in /etc/exports
  • cifs setup : Setup cifs
  • cifs shares : Create/displays cifs shares
  • cifs access : Changes access of cifs shares
  • lun create : Creates iscsi or fcp luns on a netapp filer
  • lun map : Maps lun to an igroup
  • lun show : Show all the luns on a filer
  • igroup create : Creates netapp igroup
  • lun stats : Show lun I/O statistics
  • disk show : Shows all the disk on the filer
  • disk zero spares : Zeros the spare disks
  • disk_fw_update : Upgrades the disk firmware on all disks
  • options : Display/Set options on netapp filer
  • options nfs : Display/Set NFS options
  • options timed : Display/Set NTP options on netapp.
  • options autosupport : Display/Set autosupport options
  • options cifs : Display/Set cifs options
  • options tcp : Display/Set TCP options
  • options net : Display/Set network options
  • ndmpcopy : Initiates ndmpcopy
  • ndmpd status : Displays status of ndmpd
  • ndmpd killall : Terminates all the ndmpd processes.
  • ifconfig : Displays/Sets IP address on a network/vif interface
  • vif create : Creates a VIF (bonding/trunking/teaming)
  • vif status : Displays status of a vif
  • netstat : Displays network statistics
  • sysstat -us 1 : begins a 1 second sample of the filer’s current utilization (crtl – c to end)
  • nfsstat : Shows nfs statistics
  • nfsstat -l : Displays nfs stats per client
  • nfs_hist : Displays nfs historgram
  • statit : beings/ends a performance workload sampling [-b starts / -e ends]
  • stats : Displays stats for every counter on netapp. Read stats man page for more info
  • ifstat : Displays Network interface stats
  • qtree stats : displays I/O stats of qtree
  • environment : display environment status on shelves and chassis of the filer
  • storage show <disk|shelf|adapter> : Shows storage component details
  • snapmirror intialize : Initialize a snapmirror relation
  • snapmirror update : Manually Update snapmirror relation
  • snapmirror resync : Resyns a broken snapmirror
  • snapmirror quiesce : Quiesces a snapmirror bond
  • snapmirror break : Breakes a snapmirror relation
  • snapmirror abort : Abort a running snapmirror
  • snapmirror status : Shows snapmirror status
  • lock status -h : Displays locks held by filer
  • sm_mon : Manage the locks
  • storage download shelf : Installs the shelf firmware
  • software get : Download the Netapp OS software
  • software install : Installs OS
  • download : Updates the installed OS
  • cf status : Displays cluster status
  • cf takeover : Takes over the cluster partner
  • cf giveback : Gives back control to the cluster partner
  • reboot : Reboots a filer

Monday, March 30, 2015

Adding Disks to the Aggregate / Expanding the Aggregate

EXPANDING THE AGGREGATE / ADDING THE DISKS TO AGGREGATE

To add the disks to the aggregate, verify the UN-assigned disks first using below command.

Filer> disk show -n
  DISK       OWNER                  POOL   SERIAL NUMBER
------------ -------------          -----  -------------
3c.03.16     Not Owned              NONE   6SL9229GNK
3c.03.22     Not Owned              NONE   6SLN5261G8L
3c.03.8      Not Owned              NONE   6SL0N5261A3Q
3c.03.23     Not Owned              NONE   6SR7260000N03E
3c.03.9      Not Owned              NONE   6SL9260UVL
3c.03.20     Not Owned              NONE   6SLN5260YN3
3c.03.13     Not Owned              NONE   6SL9T9P1CC6
3c.03.19     Not Owned              NONE   6SL20000N5260QUY
3c.03.15     Not Owned              NONE   6SL9TBNG0YKA

Then Assign the disks to a pool using below command

Filer> disk assign  3c.03.16 3c.03.23
Mon Mar 30 21:58:21 PDT [Filer: diskown.changingOwner:info]: changing ownership for disk 3c.03.16 (S/N 6SL9R52N5219B9) from unowned (ID -1) to Filer (ID 15749567)
 Mon Mar 30 21:58:21 PDT [Filer: diskown.changingOwner:info]: changing ownership for disk 3c.03.23 (S/N 6SL9RN2619B9) from unowned (ID -1) to Filer (ID 15749567)

then verify the spare disks using below command

Filer>aggr status -s

before adding disks to the aggregate run below command 

Filer> df -Ah
then Add the spare disks to Aggregate

Filer> aggr add AGGR0 -d  3c.03.16 3c.03.23

Then verify the Aggregate space using 
Filer> df -Ah

Now you can able to see the Aggregate space is increased.

After completion of adding the disks to the aggregate you have to do re-allocation process for all the volumes which will spread the spindles across the aggregate, so you will get good performance.

Filer>reallocate start -o -p -f /vol/vol_name


Thursday, March 5, 2015

Updating DATA ONTAP Version

http://netappnotesark.blogspot.in/2015/08/index_12.html


You need to have a Administrator access to the filer,

Before upgrading Data ONTAP, monitor CPU and disk utilization for 30 seconds by entering
the following command at the console of each storage controller:
sysstat -c 10 -x 3

The values in the CPU and Disk Utilization columns are strongly recommended not to exceed 50%
for all ten measurements reported. Ensure that no additional load is added to the storage
system until the upgrade completes.

Ensure all SnapDrive for Windows clients are running one of the supported versions.

Download the DATA ONTAP version from http://mysupport.netapp.com/NOW/cgi-bin/software/ and select your Netapp filer Model click on Go!

 NOTE : If you are performing a Data ONTAP NDU (or backout), you must perform this
step on both nodes before performing the takeover and giveback steps.

Filer1> options autosupport.doit "Starting_Update ONTAP Version"

 Backup /etc/hosts and /etc/rc files from Netapp filer before upgrading.

copy the system image file to the /etc/software directory on the node, from windows/Linux box as administrator.

Filer1> software update 814P1_q_image.zip -r

  OR

Filer1> software update 814P7_q_image.exe -r

Filer1> cifs terminate

CIFS local server is shutting down...

CIFS local server has shut down...

Filer1>  cf disable
Filer1>  cf status
Cluster disabled.

Filer1> snapmirror off
Filer1> reboot

Now Login using your RLM (Remote LAN Management).

login as: naroot
naroot@192.168.1.2's password:
RLM Filer1> system console

It will show you the status. If it structured yet  LOAD_ONTAP> 

LOAD_ONTAP> boot_ontap

it will ask you for the boot menu. 

enter 1 for normal boot

LOAD_ONTAP>1

Data ONTAP (Filer1)
login:
Data ONTAP (Filer1)
login: root
Password:
Filer1> version (it should show new version)
Filer1> cf enable
Filer1> cifs stat
Filer1> cifs restart
Filer1> snapmirror resume <your destination here>
Filer1> options autosupport.doit "Finised_Upgradation <Version>"

YOUR DATA ONTAP Version is successfully upgraded to New version. 

THANKS.......