0% found this document useful (0 votes)
42 views12 pages

NetApp Training New

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 12

TOPICS

Aggregate
Volume – Thin/Thick
Snapshot
Qtree
LUN creation
Share creation
Creating a new NFS export
Adding a server to existing export
Health check commands
Important files

DEFINITIONS
VOLUME

• Files and directories


• qtree
◦ a special subdirectory of the root directory of a volume. qtrees can be
used to subdivide a volume in order to group LUN's

LUN

◦ A LUN is logical representation of a physical unit of storage. It is a


collection of, or part of, physical or virtual disks configured
as a single disk.

iGROUP

– A group of one or more initiators


• Storage Administrators often need to perform the following tasks while managing
igroups on a storage system:
– Map and unmap LUNs and igroups
– Define port sets for an igroup

SNAPSHOT

Snapshot is a wonderful feature of NetApp which is used for data protection.


Snapshot is a read-only, frozen copy of an active file system(AFS).
An instant zero space copy of current state of files.
Snapshot is the first source of backup on local disk.
A max of 255 snapshots can be taken for a volume.
Snapshot size increases as you make changes to the AFS

AGGREGATE

Aggregate = collection of disks,


protected by RAID-4 or RAID-DP, can
grow but cannot shrink.
Make aggregates as big as possible,
with these limits:
- max 16 Tb
- don't mix disks of different types
- don't mix disks of different sizes
Create multiple aggregates if needed

VOLUME
To set up a SAN:

1. License the appropriate SAN protocol on the storage system.


2. Create a volume or qtree where the LUN will reside.
3. Verify that the SAN protocol service is on.
4. Configure the host initiator.
5. Create the LUN and igroup, and then associate the igroup to the LUN.

IGROUP CREATION

1. Optionally, verify initiators connectivity:


– fcp show initiators
– iscsi initiators show
2. Create the igroup and place the initiators into the igroup:
– igroup create {-i|-f} -t ostype
igroup_name[node, node…]
i = iSCSI igroup

f = FC igroup

ostype= solaris, windows, hpux, aix, linux, netware, vmware, hyper_v, xen

node

– iSCSI type has worldwide node (WWNN - IQN or eui)
– FC type has worldwide port name (WWPN - may be aliased)
3. Verify the igroup:
– igroup show

Creation of LUN using lun create command

1. Create a LUN
lun create -s size -t ostype lun_path
size = in bytes by default
use m for megabytes
use g for gigabytes
NOTE: LUN sizing is discussed in detail in Module 5

ostype = solaris, windows, hpux, aix, linux, netware, and vmware, windows_gpt, windows_2008
lun_path
LUN path begins with /vol/{VolumeName}/[qtreeName]
Last portion of path is the LUN Name
Example: /vol/vol1/qtree1/lun1

Verify the LUN


lun show

Map a LUN to an igroup

1. Map a LUN to an igroup


– lun map lun_path igroup_name [lun_id]
• lun_path = path name of a LUN
• igroup_name = name of an initiator group
• lun_id = unique identification number that the initiator uses when the LUN is
mapped to it
– if not entered, automatically assigned
• Example:
lun map /vol/vol1/qtree1/luna My_IP_igroup 1

Verify the LUN mapping


– lun show –m

Verify the new LUN:


system> lun show –m
LUN path Mapped to LUN ID
------------------------------------------------
/vol/winvol/tree1/lun0 salesigroup 0
Decommission of Servers and storage

LUN Unmap & Destroy


Volume offline & Destroy

CIFS Administration

 CIFS is a Microsoft® network file-sharing protocol that is


used to access and manipulate files and folders (directories)
on remote servers.
 In a CIFS environment, the storage system authenticates
users in one of the ways:
◦ Active Directory® authentication
◦ Microsoft Windows NT® 4.0 domain authentication
◦ Windows workgroup authentication

CIFS COMMANDS

 Display shares:
system> cifs shares [share_name]
 Add shares:
system> cifs shares -add <share_name> <path>
[-comment description]
 Change shares:
system> cifs shares -change <share_name> <path>
[-comment description]
Delete shares:
system> cifs shares -delete <share_name>

 Set share permission:


system> cifs access <sharename> [-g]
[user|group] <rights>
 Remove share permission:
system> cifs access -delete <sharename>
[user|group]
 Check the Cifs sessions:
system> cifs sessions <sharename>

NFS Administration

Export resources with NFS on the CLI

exportfs -a
exportfs -o rw=host1:host2 /vol/volX

# Displays all current export in memory


Exportfs

# To export all file system paths specified in the /etc/exports file.


exportfs –a

# Add exports to the /etc/exports file and in memory.


# default export options are "rw" (all hosts) and "sec=sys".
exportfs -p [options] path
exports -p rw=hostA /vol/vol2/ora

# To export a file system path temporarly without adding a corresponding


# entry to the /etc/exports file.
exportfs -i -o ro=hostB /vol/vol0/lun2

# Reloads only exports from /etc/exports files


exportfs –r

# Unexports all exports


exportfs –uav

# Unexports a specific export


exportfs -u /vol/vol0/home

# Unexports an export and removes it from /etc/exports


exportfs -z /vol/vol0/home

# To verify the actual path to which a volume is exported


exportfs -s /vol/vol9/vf19
IMPORTANT FILES & HEALTH CHECK COMMANDS

rdfile /etc/exports

rdfile /etc/hosts

rdfile /etc/rc

rdfile /etc/messages

uptime

ifconfig –a
SNAPSHOT COMMANDS

snap autodelete vol_name [ on | off | show | reset | help ]


snap autodelete vol_name option value
snap create [ -A | -V ] vol_name name
snap delete [ -A | -V ] vol_name name snap delete [ -A | -V ] -a [ -f ] [ -q ] vol_name
snap delta [ -A | -V ] [ vol_name [ snap ] [ snap ] ]
snap list [ -A | -V ] [ -n ] [ -l ] [ [ -q ] [ vol_name ] | -o [ qtree_path ] ]
snap reclaimable vol_name snap ...
snap rename [ -A | -V ] vol_name old-snapshot-name new-snapshot-name
snap reserve [ -A | -V ] [ vol_name [ percent ] ]
snap restore [ -A | -V ] [ -f ] [ -t vol | file ] [ -s snapshot_name ]
[ -r restore_as_path ] vol_name | restore_from_path
snap sched [ -A | -V ] [ vol_name [ weeks [ days [ hours[@list] ] ] ] ]

You might also like