Friday, 22 March 2013

Clustered ONTAP Administration Notes CLI Crib Sheet: Part v/v

This 5 part posting is a very rough and ready CLI crib sheet for Clustered ONTAP.


The version of CDOT here is 8.1.1 / 8.1.2.

12: BASIC TROUBLESHOOTING AND PERFORMANCE

After vol0 is available, logging goes to /mroot/etc/log/mlog
EMS logs are at /mroot/etc/log/ems*

> debug log

From the systemshell %, to display the log files in /mroot/etc/log/mlog
% pwd
% ls -l

Checking Cluster Health:
> cluster show
*> cluster ring show

For two-node clusters only:
> cluster ha show

Is the cluster network OK?
*> cluster ping-cluster -node clusa-02

Are the aggregates online?
> storage aggregate show
> storage aggregate show -state !online

Are any disks broken or reconstructing?
> storage disk show -state broken
> storage disk show -state reconstructing

Are the volumes online?
> volume show -state !online

Is storage failover (SFO) happy?
> storage failover show
> storage failover show -instance

Are all the ports OK?
> network port show

Are all the logical interfaces (LIFs) OK and home?
> net int show
> net int show -is-home false

The Service Process Manager (spmd):
*> system node systemshell local
% spmctl
*> set -privilege diagnostic
*> spm show

VLDB and D-Blade Inconsistencies:
> debug vreport show
> debug vreport fix

Statistics:
> statistics show -object?
> statistics show -object nfs* -instance failure* -counter write* -node clusa-01

USER-GENERATED CORE FILES

If the clustershell is responsive:
> system reboot -node clusa-01 -dump true

If the node is in bad shape, from the RLM/SP:
> system core

If the RLM/SP is not configured:
% sysctl debug.debugger_on_panic=0
% sysctl debug.panic=1

MANAGING CORE FILES

> system coredump show
> system coredump save
> system coredump upload

PERFORMANCE

> dashboard alarm show
> dashboard alarm thresholds show
> dashboard health vserver show
> dashboard health vserver show-aggregate
> dashboard health vserver show-all
> dashboard health vserver show-port
> dashboard health vserver show-protocol
> dashboard health vserver show-lif
> dashboard health vserver show-volume
> dashboard storage show
> dashboard storage show -week
> dashboard performance show

> statistics show -object processor
> statistics show -node clusa-02 -object processor -instance processor1
> statistics periodic

13: CLUSTER MANAGEMENT

> volume move start ?
> volume move trigger-cutover ?
> … -validation-only

> system node image show
> system node image update -node * -package http://FTP_SERVER/IMAGE.tgz -setdefault true

> event config modify -mailfrom admin@lab.priv -mailserver mail.lab.priv
> event destination create -name crits -mail sysadmin@lab.priv
> event route modify -messagename coredump* -destination crits

> system node autosupport invoke -node clusa-02 -type test

To enable security audit logging, use:
> security audit modify -cliset on -httpset on -cliget on -httpget on

Audited commands go to mgwd.log files:
% egrep “console|ssh” /mroot/etc/mlog/mgwd.log*

> security login role show

Note: Onboard Antivirus is disabled in 8.1.2

> antivirus on-demand command show
> antivirus on-access policy show
> antivirus remedy show

EXAMPLE 13.1: MOVE A VOLUME

> volume show
> volume snapshot show -volume vs2_vol01
> vol move start -vserver vs2 -volume vs2_vol01 -destination-aggregate aggr1_node3 -foreground true
> vol show -vserver vs2 -volume vs2_vol01
> vol snap show -volume vs2_vol01
> vol move start -vserver vs2 -destination-aggregate aggr1_node1 -volume vs2_vol01
> vol show
> job show
> job show -id {jobid}

EXAMPLE 13.2: REPLACE AN AGGREGATE

> stor aggr show
> volume show -aggr n01_aggr1
> stor aggr create -aggr n01_aggr1_new -diskcount 6
> volume move -vserver vs2 -volume vs2* -destination-aggr n01_aggr1_new
> stor aggr show n01_aggr1
> stor aggr delete n01_aggr1
> stor aggr rename -aggr n01_aggr1_new -newname n01_aggr1

EXAMPLE 13.3: USE ROLES TO DELEGATE ADMINISTRATIVE TASKS

> net int modify -vserver vs2 -lif vs2_lif -frewall-policy mgmt.
> cluster show
> volume show
> volume modify -volume vs2_vol01 -comment “modified by vs2admin”
> volume show -volume vs2_vol01 -instance
> network port show
> network interface show

etcetera

No comments:

Post a Comment