Sunday, 1 January 2012

NetApp NCDA NS0-154 Exam Cram Notes: Part 3 of 3

17: Troubleshooting Resources and Commands

Bugs Online ( http://now.netapp.com/NOW/cgi-bin/bol ) provides a suite of tools to help manage and resolve bug issues:
i) Bug Search Tools.
ii) Software & Bug Tools: Release Bug Comparision Tool, Release Bug Advisor, Panic Message Analyzer, Syslog Translator
iii) Notification Tools: Bug Watcher Summary, New Bug Alerts Profiler

Counter Manager is a thin layer built into the DOT architecture that provides a single view of DOT performance counters, and a standard performance API set for all clients (includes: ZAPI, AutoSupport, Operations Manager, Windows perfmon, SNMP, and CLI – stats.)

ifconfig assigns an address to a network interface and configures network interface parameters.
ifstat displays statistics about packets received and sent on a specified network interface or on all network interfaces.
netdiag command analyzes the statistics continuously gathered by the network protocol code and (if required) performs various tests to ensure the sanity of operation of the protocol code.
netstat command symbolically displays the contents of various network-related data structures.
nfsstat displays statistical information about the NFS and remote procedure call interfaces to the kernel.
Turn on the option "nfs.per_client_stats.enable" to provide NFS operations stats per client. Use "nfsstat -l" to display client statistics. Example:
FILER> options nfs.per_client_stats.enable on
FILER> nfsstat -l
perfstat script is available for download from the NOW site. The script runs several system commands and client commands to collect data.
pktt – Data ONTAP utility for packet capture. pktt trace saved in tcpdump format. A tcpdump-compliant program such as Wireshark ( www.wireshark.org ) can be used to read and analyze a pktt trace file. Alternatively, convert pktt trace to a Netmon-compliant format using "capconv" utility from NetApp.
stats family of commands reports various statistics collected by the system. The stats utility supports preset queries using the -p argument (preset files are stored in /etc/stats/preset with name pre_setname.xml.)
sysconfig displays the configuration information about the filer.
sysstat reports aggregated filer performance statistics such as the current CPU utilization, the amount of network I/O, the amount of disk I/O, and the amount of tape I/O.
sysstat [ -c count ] [ -s ] [ -u | -x | -m | -f | -i | -b ] [ interval ]
-f : For the default format display FCP statistics (CPU, NFS, CIFS, FCP, Net in, kB/s out, Disk read, kB/s write, FCP in, kB/s out, Cache age)
-s : Display a summary of the output columns upon termination

NFS Error 70: Stale File Handle
Probable cause is that a file or directory that was opened by an NFS client was either removed or replaced on the NFS file server -> try reopenning the file or if affecting a directory then remount the file system.

A qtree having NTFS security style setting, is a likely cause of an "Access Denied" message when UNIX super user attempts access.

The aggr command

The aggr command family manages aggregates.
Syntax examples:
aggr split aggrname/plexname new_aggrname
Removes plexname from a mirrored aggregate and creates a new unmirrored aggregate named new_aggrname that contains the plex.

Creating an Aggregate Using the CLI:
Create 64 bit aggregate with 24 disks (uses RAID-DP by default)
> aggr create aggrname -B 64 24
Create 32 bit aggregate with 24 disks
> aggr create aggrname -B 32 24
> aggr create aggrname 24

The disk command

The disk family of commands provides a means to manage and control RAID disk configuration.
Syntax Example:
disk show [ -o | -s | -n | -v | -a ]
Used to display information about the ownership of the disks. Available only on systems with software-based disk ownership.
-o lists all disks owned by the filer with the name
-s lists all disks owned by the filer with the serial number
-n lists all unassigned disks
-v lists all disks
-a lists all assigned disks
Note: OWNER = "Not Owned" signifies the disk is not used

The igroup command

The igroup family of commands manages the initiator groups. These commands can be used to create new initiator groups and to show, modify or destroy existing ones.

Syntax examples:
igroup show [ -v ] [ initiator_group ]
Displays the nodes in an initiator group and their aliases, set with the fcp wwpnalias command. If no initiator_group is specified, the members of all initiator groups are displayed. You can use the -v flag to get a verbose listing.

The lun command

The lun command is used to create and manage luns, and their mappings using SAN protocols.
The following commands are available in the lun suite: clone / comment / config_check / create / destroy / help / map / maxsize / move / offline / online / resize / serial / set / setup / share / show / snap / stats / unmap

lun setup is an easy to use interactive mechanism for setting up initiator groups (igroup(s),) LUNs and mapping configuration.

To enable LUN reservations:
lun create : create (writable) LUN storage at the LUN path specified (exactly one of -s, -f and -b should be supplied)
usage:
lun create -s <size> -t <ostype> [ -o noreserve ] [ -e space_alloc ] <lun_path>
lun create -f -t [ -o noreserve ] [ -e space_alloc ]
lun create -b [ -o noreserve ]
lun set reservation : Display/Set space reservation state for LUN

Syntax examples:
lun show [ -v | -m | -c ] [ all | mapped | offline | online | unmapped | staging | -g initiator_group | -n node | lun_path ]
Displays the status (lun_path, size, online/offline state, shared state) of the given lun or class of luns.
-v displays additional information (comment string, serial number, LUN mapping and to what type of device)
-m displays information about lun_path to initiator_group mappings
-c displays information about lun cloning status

The quota command

The quota command controls quotas, and the /etc/quotas file describes the quotas to impose (in DOT, the UNIX root user and Windows Administrator, are exempt from user and group quotas.)
Syntax examples:
quota resize volume
Adjusts currently active quotas in the specified volume to reflect changes in the /etc/quotas file.

The reallocate command

reallocate start [-t threshold] [-i interval] [-n] [-o] [-p] pathname | /vol/volname
The reallocate family of commands manages the allocation, or layout optimization, of large files and LUNs on a filer.
-p : The -p option may reduce the extra storage requirements in a flexible volume when reallocation is run on a volume with snapshots
Note i: Do not run on files, volumes, and LUNs, that are in an aggregrate created pre DOT 7.2.
Note ii: Volume snapshots do not need to be deleted for the reallocate to run effectively.
Note iii: SnapMirror relationships do not need to be re-initialized for the new physical geometry.
Note iv: Reallocating a file or volume can increase space consumed when it has data blocks in common with a Snapshot copy, and requires at least 25% free space when processing a volume.

The vol command

vol command argument ...
The vol family of commands manages volumes. The following commands are available:
add / autosize / clone / container / copy / create / destroy / lang / media_scrub /
mirror / move / offline / online / options / rename / restrict / scrub / size / split / status / verify

Syntax examples:
Vol options volname fs_size_fixed on | off : This option causes the file system to remain the same size and not grow or shrink when a SnapMirrored volume relationship is broken, or when a vol add is performed on it. This option is automatically set to be on when a volume becomes a SnapMirrored volume.

Usage Examples:
vol options vol1 : to verify the fractional reserve options of the volume vol1
vol options vol1 nosnapdir on : disables client access to Snapshot copies on volume vol1
vol status vol1 -r : displays a list of the RAID information for vol1


No comments:

Post a Comment