Clustered ONTAP Administration Notes CLI Crib Sheet: Part i/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.

1: INSTALLATION AND CONFIGURATION

Basic Steps for Setting Up a Cluster:
1. Connect controllers, disks, and cables
2. Set up and configure nodes
3. Install software onto nodes
4. Initialize disks
5. Create a cluster
6. Join additional nodes to the cluster
7. Create aggregates and volumes
8. Configure virtual servers (Vservers)

LOADER> PROMPT

printenv
setenv AUTOBOOT true
boot_primary
version

To copy flash0a to flash0b:
flash flash0a flash0b
ifconfig auto
ifconfig INTERFACE addr=IP mask=MASK gw=GATEWAY
flash tftp://TFTP_SERVER_IP/PATH_TO_IMAGE flash0a

The environment variables for Cluster-Mode can be set as follows:
set-defaults
setenv ONTAP_NG true
setenv bootarg.init.usebootp false
setenv bootarg.init.boot_clustered true

CREATING A CLUSTER

> cluster setup
> cluster show

Note:The following two commands were presented as below in 8.1.1 but have reduced functionality in 8.1.2:

> cluster create -license XXX -clustername XXX -mgmt-port XXX -mgmt-ip XXX -mgmt-netmask XXX -mgmt-gateway XXX -ipaddr1 CLUSTERIP1 -ipaddr2 CLUSTERIP2 -netmask CLUSTERMASK -mtu 9000

> cluster join -clusteripaddr REMOTECLUSTERIP -ipaddr1 CLUSTERIP1 -ipaddr2 CLUSTERIP2 -netmask CLUSTERNETMASK -mtu 9000

> system license add ?
> system date modify ?
> system services ntp config show
> system services ntp server show

2: ARCHITECTURE

All nodes in a cluster have these kernel modules:
common_kmod.ko, nvram5.ko, nvram_mgr.ko, nvr.ko, maytag.ko, nbladekmod.ko, scsi_blade, spinvfs.ko

User-Space Processes:
mgwd, vldb, vifmgr, bcomd, ngsh, ndmpd, secd, spmd

> system node modify -node XXX -eligibility false
> cluster ha -enable true

Note: cluster ha is enabled for two-node clusters only!

3: USER INTERFACE

> storage aggregate create
> net int show
> system node run -node clusa-02 hostname
> system node run -node clusa-02
Note: Type ‘exit’ or ‘Ctrl-D’ to return to the CLI.

How to get into the systemshell:
> security login unlock -username diag
> security login password -username diag
> set -privilege advanced
*> system node systemshell local
% exit
*> set -privilege admin

> volume show -vserver * -volume acct_* -used >500gb

4: PHYSICAL DATA STORAGE

> storage failover show
> storage aggregate 64bit-upgrade start
> storage aggregate add-disks
> storage aggregate show

How to Enable Flash Pools:
> storage aggregate modify -aggr aggr3 -hybrid-enabled true
> storage aggregate -add-disks -aggr aggr3 -disktype SSD -diskcount 12

EXAMPLE 4.1: CREATING A NEW AGGREGATE

> storage disk show
> disk assign -disk clusa-01:v4* -owner clusa-01
> disk assign -disk clusa-02:v4* -owner clusa-02
> storage aggregate show
> volume show
> storage aggregate create  -aggr n01_aggr1 -node clusa-01 -diskcount 3
> storage aggregate show -aggr n01_aggr1

EXAMPLE 4.2: ADD DISKS TO THE AGGREGATE

> aggr add-disks -aggr n01_aggr1 -diskcount 2
> aggr show -aggr n01_aggr1 -instance

EXAMPLE 4.3: CREATE VIRTUAL SOLID STATE DISKS (SIM)

> security login unlock -username diag -vserver clusa
> security login password -username diag -vserver
> set diag
*> systemshell -node clusa-02
% setenv PATH /sim/bin:$PATH
% cd /sim/dev
% sudo vsim_makedisks -t 35 -a 2 -n 14
% exit
*> reboot -node clusa-02

EXAMPLE 4.4: CREATE A FLASH POOL

> stor aggr create -aggr n02_fp1 -node clusa-02 -diskcount 10
> stor aggr show -aggr n02_fp1
> stor disk assign -disk clusa-02:v6* -owner clusa-02
> stor disk show -type SSD
> stor aggr modify -aggr n02_fp1 -hybrid-enabled true
> stor aggr add-disk -aggr n02_fp1 -diskcount 6 -disktype SSD
> stor aggr show -aggr n02_fp1

5: VIRTUAL DATA STORAGE

> vserver show
> volume show
> volume create
> volume mount

NFS mount command (Linux):
mount DATA_IP:/ /mnt/vserver1

Infinite Volumes:
> aggr create -aggregate aggr1 -diskcount 70
> aggr create -aggregate aggr2 -diskcount 70
> vserver create -vserver vs0 -rootvolume vs0_root -is-repository true
> volume create -vserver vs0 -volume repo_vol -junction-path /NS -size 768GB
> volume show -volume repo_vol
> volume show -is-constituent true

EXAMPLE 5.1 CREATE A CLUSTER VSERVER

> vserver show
> volume show
> vserver create -vserver vs1 -rootvolume vs1root -aggr n01_aggr1 -ns-switch file -rootvolume-security-style unix
> vserver show
> vserver show -vserver vs1
> volume show
> volume show -vserver vs1 -volume vs1root
> stor aggr show

EXAMPLE 5.2: CREATE A FLEXIBLE VOLUME

> volume create -vserver vs1 -volume volume1 -aggr n01_aggr1 -junction-path /vol1
> vol show
> vol show -vserver vs1 -volume volume1

Comments