Вы находитесь на странице: 1из 21

NetApp Commandline Cheatsheet

This is a quick and dirty NetApp commandline cheatsheet on most of the common commands used, this is not extensive so check out the man pages and NetApp documentation. I will be updating this document as I become more familar with the NetApp application. Server
Startup and Shutdown
1 )N o r m a lB o o t . 2 )B o o tw i t h o u t/ e t c / r c . 3 )C h a n g ep a s s w o r d . 4 )C l e a nc o n f i g u r a t i o na n di n i t i a l i z ea l ld i s k s . 5 )M a i n t e n a n c em o d eb o o t . 6 )U p d a t ef l a s hf r o mb a c k u pc o n f i g . 7 )I n s t a l ln e ws o f t w a r ef i r s t . 8 )R e b o o tn o d e . S e l e c t i o n( 1 8 ) ?

Boot M enu

N o r m a lB o o t-c o n t i n u ew i t ht h en o r m a lb o o to p e r a t i o n B o o tw i t h o u t/ e t c / r c-b o o tw i t ho n l yd e f a u l to p t i o n sa n dd i s a b l es o m es e r v i c e s C h a n g eP a s s w o r d-c h a n g et h es t o r a g es y s t e m sp a s s w o r d C l e a nc o n f i g u r a t i o na n di n i t i a l i z ea l ld i s k s-c l e a n sa l ld i s k sa n dr e s e tt h ef i l e rt of a c t o r y d e f a u l ts e t t i n g s M a i n t e n a n c em o d eb o o t-f i l es y s t e mo p e r a t i o n sa r ed i s a b l e d ,l i m i t e ds e to fc o m m a n d s U p d a t ef l a s hf r o mb a c k u pc o n f i g-r e s t o r et h ec o n f i g u r a t i o ni n f o r m a t i o ni fc o r r u p t e do nt h eb o o t d e v i c e I n s t a l ln e ws o f t w a r ef i r s t-u s et h i si ft h ef i l e rd o e sn o ti n c l u d es u p p o r tf o rt h es t o r a g ea r r a y R e b o o tn o d e-r e s t a r tt h ef i l e r

startup modes

b o o t _ o n t a p-b o o t st h ec u r r e n tD a t aO N T A Ps o f t w a r er e l e a s es t o r e do nt h eb o o td e v i c e b o o tp r i m a r y-b o o t st h eD a t aO N T A Pr e l e a s es t o r e do nt h eb o o td e v i c ea st h ep r i m a r yk e r n e l b o o t _ b a c k u p-b o o t st h eb a c k u pD a t aO N T A Pr e l e a s ef r o mt h eb o o td e v i c e b o o t _ d i a g s-b o o t saD a t aO N T A Pd i a g n o s t i ck e r n e l N o t e :t h e r ea r eo t h e ro p t i o n sb u tN e t A p pw i l lp r o v i d et h e s ea sw h e nn e c e s s a r y

h a l t[ t< m i n s > ][ f ]

shutdown

t=s h u t d o w na f t e rm i n u t e ss p e c i f i e d f=u s e dw i t hH Ac l u s t e r i n g ,m e a n st h a tt h ep a r t n e rf i l e rd o e sn o tt a k eo v e r r e b o o t[ t< m i n s > ][ s ][ r ][ f ]

restart

t=r e b o o ti ns p e c i f i e dm i n u t e s s=c l e a nr e b o o tb u ta l s op o w e rc y c l et h ef i l e r( l i k ep u s h i n gt h eo f fb u t t o n ) r=b y p a s s e st h es h u t d o w n( n o tc l e a n )a n dp o w e rc y c l e st h ef i l e r f=u s e dw i t hH Ac l u s t e r i n g ,m e a n st h a tt h ep a r t n e rf i l e rd o e sn o tt a k eo v e r

System Privilege and System shell


p r i vs e t[ q ][ a d m i n|a d v a n c e d ]

Privilege

N o t e :b yd e f a u l ty o ua r ei na d m i n i s t r a t i v em o d e q=q u i e ts u p p r e s s e sw a r n i n gm e s s a g e s # #F i r s to b t a i nt h ea d v a n c e dp r i v i l e g e s p r i vs e ta d v a n c e d # #T h e nu n l o c ka n dr e s e tt h ed i a gu s e r sp a s s w o r d u s e r a d m i nd i a g u s e ru n l o c k u s e r a d m i nd i a g u s e rp a s s w o r d # #N o wy o us h o u l db ea b l et oa c c e s st h es y s t e m s h e l la n du s ea l lt h es t a n d a r dU n i x # #c o m m a n d s s y s t e m s h e l l l o g i n :d i a g p a s s w o r d :* * * * * * * *

Access the systemshell

Licensing and Version


# #d i s p l a yl i c e n s e s l i c e n s e

licenses (commandline)

# #A d d i n gal i c e n s e l i c e n s ea d d< c o d e 1 >< c o d e 2 > # #D i s a b l i n gal i c e n s e l i c e n s ed e l e t e< s e r v i c e > v e r s i o n[ b ]

Data ONTAP version

b=i n c l u d en a m ea n dv e r s i o ni n f o r m a t i o nf o rt h ep r i m a r y ,s e c o n d a r ya n dd i a g n o s t i ck e r n e l sa n dt h e f i r m w a r e

Useful Commands

read the messages file

r d f i l e/ e t c / m e s s a g e s w r f i l ea< f i l e >< t e x t >

write to a file

#E x a m p l e s w r f i l ea/ e t c / t e s t 1T h i si sl i n e6#c o m m e n th e r e w r f i l ea/ e t c / t e s t 1" T h i si sl i n e\ " 1 5 \ " . "

System Configuration General information Configuration errors Display disk devices Display Raid group information Display arregates and plexes Display tape devices Display tape libraries
s y s c o n f i g s y s c o n f i gv s y s c o n f i ga( d e t a i l e d ) s y s c o n f i gc s y s c o n f i gd s y s c o n f i gA s y s c o n f i gV

s y s c o n f i gr s y s c o n f i gt s y s c o n f i gm

Environment Information General information Disk enclosures (shelves)


e n v i r o n m e n ts t a t u s e n v i r o n m e n ts h e l f[ a d a p t e r ] e n v i r o n m e n ts h e l f _ p o w e r _ s t a t u s e n v i r o n m e n tc h a s s i sa l l e n v i r o n m e n tc h a s s i sl i s t s e n s o r s e n v i r o n m e n tc h a s s i sF a n s e n v i r o n m e n tc h a s s i sC P U _ F a n s e n v i r o n m e n tc h a s s i sP o w e r e n v i r o n m e n tc h a s s i sT e m p e r a t u r e e n v i r o n m e n tc h a s s i s[ P S 1 | P S 2 ]

Chassis

Fibre Channel Information Fibre Channel stats


f c s t a tl i n k _ s t a t u s f c s t a tf c a l _ s t a t f c s t a td e v i c e _ m a p

SAS Adapter and Expander Information Shelf information Expander information Disk information Adapter information
s a s s t a ts h e l f s a s s t a ts h e l f _ s h o r t s a s s t a te x p a n d e r s a s s t a te x p a n d e r _ m a p s a s s t a te x p a n d e r _ p h y _ s t a t e s a s s t a td e v _ s t a t s s a s s t a ta d a p t e r _ s t a t e

Statistical Information System Processor Disk Volume LUN Aggregate FC iSCSI CIFS Network
s t a t ss h o ws y s t e m s t a t ss h o wp r o c e s s o r s t a t ss h o wd i s k s t a t ss h o wv o l u m e s t a t ss h o wl u n s t a t ss h o wa g g r e g a t e s t a t ss h o wf c p s t a t ss h o wi s c s i s t a t ss h o wc i f s s t a t ss h o wi f n e t

Storage
Storage Commands
s t o r a g es h o wa d a p t e r s t o r a g es h o wd i s k[ a | x | p | T ] s t o r a g es h o we x p a n d e r s t o r a g es h o wf a b r i c s t o r a g es h o wf a u l t s t o r a g es h o wh u b s t o r a g es h o wi n i t i a t o r s s t o r a g es h o wm c s t o r a g es h o wp o r t s t o r a g es h o ws h e l f s t o r a g es h o ws w i t c h s t o r a g es h o wt a p e[ s u p p o r t e d ] s t o r a g es h o wa c p s t o r a g ea r r a ys h o w

Display

s t o r a g ea r r a ys h o w p o r t s s t o r a g ea r r a ys h o w l u n s s t o r a g ea r r a ys h o w c o n f i g

Enable Disable Rename switch Remove port Load Balance Power Cycle

s t o r a g ee n a b l ea d a p t e r s t o r a g ed i s a b l ea d a p t e r s t o r a g er e n a m e< o l d n a m e >< n e w n a m e > s t o r a g ea r r a yr e m o v e p o r t< a r r a y _ n a m e >p< W W P N > s t o r a g el o a db a l a n c e s t o r a g ep o w e r _ c y c l es h e l fh s t o r a g ep o w e r _ c y c l es h e l fs t a r tc< c h a n n e ln a m e > s t o r a g ep o w e r _ c y c l es h e l fc o m p l e t e d

Disks
Disk Information This is the physical disk itself, normally the disk will reside in a disk enclosure, the disk will have a pathname like 2a.17 depending on the type of disk enclosure Disk name 2a = SCSI adapter 17 = disk SCSI ID Any disks that are classed as spare will be used in any group to replace failed disks. They can also be assigned to any aggregate. Disks are assigned to a specific pool. Disk Types Data Spare Parity dParity holds data stored within the RAID group Does not hold usable data but is available to be added to a RAID group in an aggregate, also known as a hot spare Store data reconstruction information within the RAID group Stores double-parity information within the RAID group, if RAID-DP is enabled Disk Commands
d i s ks h o w d i s ks h o w< d i s k _ n a m e > d i s k _ l i s t

Display

s y s c o n f i gr s y s c o n f i gd # #l i s ta l lu n n a s s i g n e d / a s s i g n e dd i s k s d i s ks h o wn d i s ks h o wa

# #A d das p e c i f i cd i s kt op o o l 1t h em i r r o rp o o l d i s ka s s i g n< d i s k _ n a m e >p1

Adding (assigning)

# #A s s i g na l ld i s kt op o o l0 ,b yd e f a u l tt h e ya r ea s s i g n e dt op o o l0i ft h e" p " # #o p t i o ni sn o ts p e c i f i f e d d i s ka s s i g na l lp0 d i s kr e m o v e< d i s k _ n a m e > d i s kr e a s s i g nd< n e w _ s y s i d > d i s kr e p l a c es t a r t< d i s k _ n a m e >< s p a r e _ d i s k _ n a m e > d i s kr e p l a c es t o p< d i s k _ n a m e > N o t e :u s e sR a p i dR A I DR e c o v e r yt oc o p yd a t af r o mt h es p e c i f i e df i l es y s t e mt ot h es p e c i f i e ds p a r ed i s k , y o uc a ns t o pt h i sp r o c e s su s i n gt h es t o pc o m m a n d

Remove (spin down disk) Reassign

Replace

Zero spare disks fail a disk Scrub a disk

d i s kz e r os p a r e s d i s kf a i l< d i s k _ n a m e > d i s ks c r u bs t a r t d i s ks c r u bs t o p d i s ks a n i t i z es t a r t< d i s kl i s t > d i s ks a n i t i z ea b o r t< d i s k _ l i s t > d i s ks a n i t i z es t a t u s d i s ks a n i t i z er e l e a s e< d i s k _ l i s t > N o t e :t h er e l e a s em o d i f i e st h es t a t eo ft h ed i s kf r o ms a n i t i z et os p a r e .S a n i t i z er e q u i r e sal i c e n s e . d i s km a i n ts t a r td< d i s k _ l i s t > d i s km a i n ta b o r t< d i s k _ l i s t > d i s km a i n tl i s t d i s km a i n ts t a t u s N o t e :y o uc a nt e s tt h ed i s ku s i n gm a i n t a i nm o d e

Sanitize

M aintanence

swap a disk

d i s ks w a p d i s ku n s w a p N o t e :i ts t a l l sa l lS C S II / Ou n t i ly o up h y s i c a l l yr e p l a c eo ra d dad i s k ,c a nu s e do nS C S Id i s ko n l y .

Statisics Simulate a pulled disk

d i s k _ s t a t< d i s k _ n a m e > d i s ks i m p u l l< d i s k _ n a m e > d i s ks i m p u s hl d i s ks i m p u s h< c o m p l e t ep a t ho fd i s ko b t a i n e df r o ma b o v ec o m m a n d >

Simulate a pushed disk

# #E x a m p l e o n t a p 1 >d i s ks i m p u s hl T h ef o l l o w i n gp u l l e dd i s k sa r ea v a i l a b l ef o rp u s h i n g : v 0 . 1 6 : N E T A P P _ _ : V D 1 0 0 0 M B F Z 5 2 0 : 1 4 1 6 1 4 0 0 : 2 1 0 4 4 4 8 o n t a p 1 >d i s ks i m p u s hv 0 . 1 6 : N E T A P P _ _ : V D 1 0 0 0 M B F Z 5 2 0 : 1 4 1 6 1 4 0 0 : 2 1 0 4 4 4 8

Aggregates
Aggregate States Online Restricted Offline Read and write access to volumes is allowed Some operations, such as parity reconstruction are allowed, but data access is not allowed No access to the aggregate is allowed Aggregate Status Values 32-bit 64-bit aggr copying degraded double degraded foreign growing initializing invalid ironing mirror degraded mirrored needs check normal out-of-date partial raid0 raid4 raid_dp reconstruct redirect resyncing snapmirror trad verifying wafl inconsistent This aggregate is a 32-bit aggregate This aggregate is a 64-bit aggregate This aggregate is capable of contain FlexVol volumes This aggregate is currently the target aggregate of an active copy operation This aggregate is contains at least one RAID group with single disk failure that is not being reconstructed This aggregate is contains at least one RAID group with double disk failure that is not being reconstructed (RAID-DP aggregate only) Disks that the aggregate contains were moved to the current storage system from another storage system Disks are in the process of being added to the aggregate The aggregate is in the process of being initialized The aggregate contains no volumes and none can be added. Typically this happend only after an aborted "aggr copy" operation A WAFL consistency check is being performewd on the aggregate The aggregate is mirrored and one of its plexes is offline or resynchronizing The aggregate is mirrored WAFL consistency check needs to be performed on the aggregate The aggregate is unmirrored and all of its RAID groups are functional The aggregate is mirrored and needs to be resynchronized At least one disk was found for the aggregate, but two or more disks are missing The aggrgate consists of RAID 0 (no parity) RAID groups The agrregate consists of RAID 4 RAID groups The agrregate consists of RAID-DP RAID groups At least one RAID group in the aggregate is being reconstructed Aggregate reallocation or file reallocation with the "-p" option has been started on the aggregate, read performance will be degraded One of the mirror aggregates plexes is being resynchronized The aggregate is a SnapM irror replica of another aggregate (traditional volumes only) The aggregate is a traditional volume and cannot contain FlexVol volumes. A mirror operation is currently running on the aggregate The aggregate has been marked corrupted; contact techincal support Aggregate Commands Displaying Check you have spare disks
a g g rs t a t u s a g g rs t a t u sr a g g rs t a t u s< a g g r e g a t e >[ v ] a g g rs t a t u ss

# #S y n t a x-i fn oo p t i o ni ss p e c i f i e dt h e nt h ed e f u l ti su s e d a g g rc r e a t e< a g g r _ n a m e >[ f ][ m ][ n ][ t{ r a i d 0| r a i d 4| r a i d _ d p } ][ rr a i d _ s i z e ][ Td i s k _ t y p e ][ R r p m > ][ L ][ B{ 3 2 | 6 4 } ]< d i s k _ l i s t > # #c r e a t ea g g r e g a t ec a l l e dn e w a g g rt h a tc a nh a v eam a x i m u mo f8R A I Dg r o u p s a g g rc r e a t en e w a g g rr8d8 a . 1 68 a . 1 78 a . 1 88 a . 1 9 # #c r e a t ea g g r e g a t e dc a l l e dn e w f a s t a g g ru s i n g2 0x1 5 0 0 0 r p md i s k s a g g rc r e a t en e w f a s t a g g rR1 5 0 0 02 0

Adding (creating)

# #c r e a t ea g g r g a t ec a l l e dn e w F C A L a g g r( n o t eS A Sa n dF Cd i s k sm a yb g eu s e d ) a g g rc r e a t en e w F C A L a g g rTF C A L1 5

N o t e : f=o v e r r i d e st h ed e f a u l tb e h a v i o rt h a td o e sn o tp e r m i td i s k si nap l e xt ob e l o n gt od i f f e r e n td i s k p o o l s m=s p e c i f i e st h eo p t i o n a lc r e a t i o no faS y n c M i r r o r n=d i s p l a y st h er e s u l t so ft h ec o m m a n db u td o e sn o te x e c u t ei t r=m a x i m u ms i z e( n u m b e ro fd i s k s )o ft h eR A I Dg r o u p sf o rt h i sa g g r e g a t e T=d i s kt y p eA T A ,S A T A ,S A S ,B S A S ,F C A Lo rL U N R=r p mw h i c hi n c l u d e5 4 0 0 ,7 2 0 0 ,1 0 0 0 0a n d1 5 0 0 0 a g g ro f f l i n e< a g g r e g a t e >

Remove(destroying)

a g g rd e s t r o y< a g g r e g a t e >

Unremoving(undestroying) a g g ru n d e s t r o y< a g g r e g a t e > Rename


a g g rr e n a m e< o l dn a m e >< n e wn a m e > # #S y n t a x a g g ra d d< a g g r _ n a m e >[ f ][ n ][ g{ r a i d _ g r o u p _ n a m e|n e w| a l l } ]< d i s k _ l i s t >

Increase size

# #a d da na d d i t o n a ld i s kt oa g g r e g a t ep f v A g g r ,u s e" a g g rs t a t u s "t og e tg r o u pn a m e a g g rs t a t u sp f v A g g rr a g g ra d dp f v A g g rgr g 0dv 5 . 2 5 # #A d d43 0 0 G Bd i s kt oa g g r e g a t ea g g r 1 a g g ra d da g g r 14 @ 3 0 0

offline online restricted state

a g g ro f f l i n e< a g g r e g a t e > a g g ro n l i n e< a g g r e g a t e > a g g rr e s t r i c t< a g g r e g a t e > # #t od i s p l a yt h ea g g r e g a t e so p t i o n s a g g ro p t i o n s< a g g r e g a t e >

Change an aggregate options

# #c h a n g eaa g g r e g a t e sr a i dg r o u p a g g ro p t i o n s< a g g r e g a t e >r a i d t y p er a i d _ d p # #c h a n g eaa g g r e g a t e sr a i ds i z e a g g ro p t i o n s< a g g r e g a t e >r a i d s i z e4

show space usage M irror Split mirror

a g g rs h o w _ s p a c e< a g g r e g a t e > a g g rm i r r o r< a g g r e g a t e > a g g rs p l i t< a g g r e g a t e / p l e x >< n e w _ a g g r e g a t e > # #O b t a i nt h es t a t u s a g g rc o p ys t a t u s # #S t a r tac o p y a g g rc o p ys t a r t< a g g r e g a t es o u r c e >< a g g r e g a t ed e s t i n a t i o n > # #A b o r tac o p y-o b t a i nt h eo p e r a t i o nn u m b e rb yu s i n g" a g g rc o p ys t a t u s " a g g rc o p ya b o r t< o p e r a t i o nn u m b e r > # #T h r o t t l et h ec o p y1 0 = f u l ls p e e d ,1 = o n e t e n t hf u l ls p e e d a g g rc o p yt h r o t t l e< o p e r a t i o nn u m b e r >< t h r o t t l es p e e d > # #M e d i as c r u bs t a t u s a g g rm e d i a _ s c r u bs t a t u s a g g rs c r u bs t a t u s # #s t a r tas c r u bo p e r a t i o n a g g rs c r u bs t a r t[a g g r n a m e|p l e x n a m e|g r o u p n a m e] # #s t o pas c r u bo p e r a t i o n a g g rs c r u bs t o p[a g g r n a m e|p l e x n a m e|g r o u p n a m e] # #s u s p e n das c r u bo p e r a t i o n a g g rs c r u bs u s p e n d[a g g r n a m e|p l e x n a m e|g r o u p n a m e] # #r e s u m eas c r u bo p e r a t i o n a g g rs c r u br e s u m e[a g g r n a m e|p l e x n a m e|g r o u p n a m e] N o t e :S t a r t sp a r i t ys c r u b b i n go nt h en a m e do n l i n ea g g r e g a t e .P a r i t ys c r u b b i n gc o m p a r e st h ed a t ad i s k st o t h e p a r i t yd i s k ( s )i nt h e i rR A I Dg r o u p ,c o r r e c t i n gt h ep a r i t yd i s k sc o n t e n t sa sn e c e s s a r y .I fn on a m ei s g i v e n ,p a r i t ys c r u b b i n gi ss t a r t e do na l lo n l i n ea g g r e g a t e s .I fa na g g r e g a t en a m ei sg i v e n ,s c r u b b i n gi s s t a r t e do na l lR A I Dg r o u p sc o n t a i n e di nt h ea g g r e g a t e .I fap l e xn a m ei sg i v e n ,s c r u b b i n gi ss t a r t e do n a l lR A I Dg r o u p sc o n t a i n e di nt h ep l e x . L o o ka tt h ef o l l o w i n gs y s t e mo p t i o n s : r a i d . s c r u b . d u r a t i o n3 6 0 r a i d . s c r u b . e n a b l eo n r a i d . s c r u b . p e r f _ i m p a c tl o w r a i d . s c r u b . s c h e d u l e

Copy from one agrregate to another

Scrubbing (parity)

# #v e r i f ys t a t u s a g g rv e r i f ys t a t u s # #s t a r tav e r i f yo p e r a t i o n a g g rv e r i f ys t a r t[a g g r n a m e]

a g g rv e r i f ys t a r t[a g g r n a m e] # #s t o pav e r i f yo p e r a t i o n a g g rv e r i f ys t o p[a g g r n a m e]

Verify (mirroring)

# #s u s p e n dav e r i f yo p e r a t i o n a g g rv e r i f ys u s p e n d[a g g r n a m e] # #r e s u m eav e r i f yo p e r a t i o n a g g rv e r i f yr e s u m e[a g g r n a m e] N o t e :S t a r t sR A I Dm i r r o rv e r i f i c a t i o no nt h en a m e do n l i n em i r r o r e da g g r e g a t e .I fn on a m ei sg i v e n ,t h e n R A I Dm i r r o rv e r i f i c a t i o ni ss t a r t e do na l lo n l i n em i r r o r e da g g r e g a t e s .V e r i f i c a t i o nc o m p a r e st h ed a t ai n b o t hp l e x e so fam i r r o r e da g g r e g a t e .I nt h ed e f a u l tc a s e ,a l lb l o c k st h a td i f f e ra r el o g g e d ,b u tn o c h a n g e s a r em a d e .

a g g rm e d i a _ s c r u bs t a t u s N o t e :P r i n t st h em e d i as c r u b b i n gs t a t u so ft h en a m e da g g r e g a t e ,p l e x ,o rg r o u p .I fn on a m ei sg i v e n , t h e n s t a t u si sp r i n t e df o ra l lR A I Dg r o u p sc u r r e n t l yr u n n i n gam e d i as c r u b .T h es t a t u si n c l u d e sa p e r c e n t c o m p l e t ea n dw h e t h e ri ti ss u s p e n d e d . L o o ka tt h ef o l l o w i n gs y s t e mo p t i o n s : r a i d . m e d i a _ s c r u b . e n a b l eo n r a i d . m e d i a _ s c r u b . r a t e6 0 0 r a i d . m e d i a _ s c r u b . s p a r e s . e n a b l eo n

M edia Scrub

Volumes
Volume States Online Restricted Offline Read and write access to this volume is allowed. Some operations, such as parity reconstruction, are allowed, but data access is not allowed. No access to the volume is allowed. Volume Status Values access denied active redirect connecting copying degraded double degraded flex flexcache foreign growing initializing invalid ironing lang mismatch mirror degraded mirrored needs check out-of-date partial raid0 raid4 raid_dp reconstruct redirect rem vol changed rem vol unavail The origin system is not allowing access. (FlexCache volumes only.) The volume's containing aggregate is undergoing reallocation (with the -p option specified). Read performance may be reduced while the volume is in this state. The caching system is trying to connect to the origin system. (FlexCache volumes only.) The volume is currently the target of an active vol copy or snapmirror operation. The volume's containing aggregate contains at least one degraded RAID group that is not being reconstructed after single disk failure. The volume's containing aggregate contains at least one degraded RAID-DP group that is not being reconstructed after double disk failure. The volume is a FlexVol volume. The volume is a FlexCache volume. Disks used by the volume's containing aggregate were moved to the current storage system from another storage system. Disks are being added to the volume's containing aggregate. The volume's containing aggregate is being initialized. The volume does not contain a valid file system. A WAFL consistency check is being performed on the volume's containing aggregate. The language setting of the origin volume was changed since the caching volume was created. (FlexCache volumes only.) The volume's containing aggregate is mirrored and one of its plexes is offline or resynchronizing. The volume's containing aggregate is mirrored. A WAFL consistency check needs to be performed on the volume's containing aggregate. The volume's containing aggregate is mirrored and needs to be resynchronized. At least one disk was found for the volume's containing aggregate, but two or more disks are missing. The volume's containing aggregate consists of RAID0 (no parity) groups (array LUNs only). The volume's containing aggregate consists of RAID4 groups. The volume's containing aggregate consists of RAID-DP groups. At least one RAID group in the volume's containing aggregate is being reconstructed. The volume's containing aggregate is undergoing aggregate reallocation or file reallocation with the -p option. Read performance to volumes in the aggregate might be degraded. The origin volume was deleted and re-created with the same name. Re-create the FlexCache volume to reenable the FlexCache relationship. (FlexCache volumes only.) The origin volume is offline or has been deleted. (FlexCache volumes only.)

remote nvram err resyncing snapmirrored trad unrecoverable unsup remote vol verifying wafl inconsistent

The origin system is experiencing problems with its NVRAM . (FlexCache volumes only.) One of the plexes of the volume's containing mirrored aggregate is being resynchronized. The volume is in a SnapM irror relationship with another volume. The volume is a traditional volume. The volume is a FlexVol volume that has been marked unrecoverable; contact technical support. The origin system is running a version of Data ONTAP the does not support FlexCache volumes or is not compatible with the version running on the caching system. (FlexCache volumes only.) RAID mirror verification is running on the volume's containing aggregate. The volume or its containing aggregate has been marked corrupted; contact technical support . General Volume Operations (Traditional and FlexVol)
v o ls t a t u s v o ls t a t u sv( v e r b o s e ) v o ls t a t u sl( d i s p l a yl a n g u a g e )

Displaying

Remove (destroying) Rename online offline restrict decompress

v o lo f f l i n e< v o l _ n a m e > v o ld e s t r o y< v o l _ n a m e > v o lr e n a m e< o l d _ n a m e >< n e w _ n a m e > v o lo n l i n e< v o l _ n a m e > v o lo f f l i n e< v o l _ n a m e > v o lr e s t r i c t< v o l _ n a m e > v o ld e c o m p r e s ss t a t u s v o ld e c o m p r e s ss t a r t< v o l _ n a m e > v o ld e c o m p r e s ss t o p< v o l _ n a m e > v o lm i r r o rv o l n a m e[ n ] [ vv i c t i m _ v o l n a m e ] [ f ] [ d< d i s k _ l i s t > ] N o t e : M i r r o r st h ec u r r e n t l y u n m i r r o r e dt r a d i t i o n a lv o l u m ev o l n a m e ,e i t h e rw i t ht h es p e c i f i e ds e to fd i s k so r w i t ht h ec o n t e n t so fa n o t h e ru n m i r r o r e dt r a d i t i o n a lv o l u m ev i c t i m _ v o l n a m e ,w h i c hw i l lb ed e s t r o y e di n t h ep r o c e s s . T h ev o lm i r r o rc o m m a n df a i l si fe i t h e rt h ec h o s e nv o l n a m eo rv i c t i m _ v o l n a m ea r ef l e x i b l ev o l u m e s . F l e x i b l ev o l u m e sr e q u i r et h a ta n yo p e r a t i o n sh a v i n gd i r e c t l yt od ow i t ht h e i rc o n t a i n i n ga g g r e g a t e sb e h a n d l e dv i at h en e wa g g rc o m m a n ds u i t e .

M irroring

Change language Change maximum number of files Change root volume

v o ll a n g< v o l _ n a m e >< l a n g u a g e > # #D i s p l a ym a x i m u mn u m b e ro ff i l e s m a x f i l e s< v o l _ n a m e > # #C h a n g em a x i m u mn u m b e ro ff i l e s m a x f i l e s< v o l _ n a m e >< m a x _ n u m _ f i l e s > v o lo p t i o n s< v o l _ n a m e >r o o t v o lm e d i a _ s c r u bs t a t u s[ v o l n a m e | p l e x n a m e | g r o u p n a m esd i s k n a m e ] [ v ] N o t e :P r i n t st h em e d i as c r u b b i n gs t a t u so ft h en a m e da g g r e g a t e ,v o l u m e ,p l e x ,o rg r o u p .I fn on a m ei s g i v e n ,t h e n s t a t u si sp r i n t e df o ra l lR A I Dg r o u p sc u r r e n t l yr u n n i n gam e d i as c r u b .T h es t a t u si n c l u d e sa p e r c e n t c o m p l e t ea n dw h e t h e ri ti ss u s p e n d e d . L o o ka tt h ef o l l o w i n gs y s t e mo p t i o n s : r a i d . m e d i a _ s c r u b . e n a b l eo n r a i d . m e d i a _ s c r u b . r a t e6 0 0 r a i d . m e d i a _ s c r u b . s p a r e s . e n a b l eo n

M edia Scrub

FlexVol Volume Operations (only)


# #S y n t a x v o lc r e a t ev o l _ n a m e[ ll a n g u a g e _ c o d e ][ s{ v o l u m e | f i l e | n o n e } ]< a g g r _ n a m e >s i z e { k | m | g | t }

Adding (creating)

# #C r e a t ea2 0 0 M Bv o l u m eu s i n gt h ee n g l i s hc h a r a c t e rs e t v o lc r e a t en e w v o lle na g g r 12 0 0 M # #C r e a t e5 0 G Bf l e x v o lv o l u m e v o lc r e a t ev o l 1a g g r 05 0 g # #a d da na d d i t i o n a ld i s kt oa g g r e g a t ef l e x v o l 1 ,u s e" a g g rs t a t u s "t og e tg r o u pn a m e

additional disks

a g g rs t a t u sf l e x v o l 1r a g g ra d df l e x v o l 1gr g 0dv 5 . 2 5 v o ls i z e< v o l _ n a m e >[ + | ]n { k | m | g | t }

Resizing

# #I n c r e a s ef l e x v o l 1v o l u m eb y1 0 0 M B v o ls i z ef l e x v o l 1+1 0 0 m v o la u t o s i z ev o l _ n a m e[ ms i z e{ k | m | g | t } ][ Is i z e{ k | m | g | t } ]o n

Automatically resizing Determine free space and

# #a u t o m a t i c a l l yg r o wb y1 0 M Bi n c r e a m e n t st om a xo f5 0 0 M B v o la u t o s i z ef l e x v o l 1m5 0 0 mI1 0 mo n d fA h

Determine free space and Inodes Determine size

d fA h d fI v o ls i z e< v o l _ n a m e > v o lo p t i o n s< v o l _ n a m e >t r y _ f i r s t[ v o l u m e _ g r o w | s n a p _ d e l e t e ] N o t e : I fy o us p e c i f yv o l u m e _ g r o w ,D a t aO N T A Pa t t e m p t st oi n c r e a s et h ev o l u m e ' ss i z eb e f o r ed e l e t i n ga n y S n a p s h o tc o p i e s .D a t aO N T A Pi n c r e a s e st h ev o l u m es i z eb a s e do ns p e c i f i c a t i o n sy o up r o v i d e du s i n gt h ev o l a u t o s i z ec o m m a n d . I fy o us p e c i f ys n a p _ d e l e t e ,D a t aO N T A Pa t t e m p t st oc r e a t em o r ef r e es p a c eb yd e l e t i n gS n a p s h o tc o p i e s , b e f o r ei n c r e a s i n gt h es i z eo ft h ev o l u m e .D a t aO N T A Pd e l e t e sS n a p s h o tc o p i e sb a s e do nt h es p e c i f i c a t i o n s y o up r o v i d e du s i n gt h es n a pa u t o d e l e t ec o m m a n d .

automatic free space preservation

display a FlexVol volume's containing aggregate

v o lc o n t a i n e r< v o l _ n a m e >

v o lc l o n ec r e a t ec l o n e _ v o l[ sn o n e | f i l e | v o l u m e ]bp a r e n t _ v o l[ p a r e n t _ s n a p ] v o lc l o n es p l i ts t a r t v o lc l o n es p l i ts t o p v o lc l o n es p l i te s t i m a t e v o lc l o n es p l i ts t a t u s N o t e :T h ev o lc l o n ec r e a t ec o m m a n dc r e a t e saf l e x i b l ev o l u m en a m e dc l o n e _ v o lo nt h el o c a lf i l e rt h a ti s ac l o n eo fa" b a c k i n g "f l e x i b l ev o l u m en a m e dp a r _ e n t _ v o l .Ac l o n ei sav o l u m et h a ti saw r i t a b l e s n a p s h o to fa n o t h e rv o l u m e .I n i t i a l l y ,t h ec l o n ea n di t sp a r e n ts h a r et h es a m es t o r a g e ;m o r es t o r a g e s p a c ei sc o n s u m e do n l ya so n ev o l u m eo rt h eo t h e rc h a n g e s .

Cloning

v o lc o p ys t a r t[ S | ss n a p s h o t ]< v o l _ s o u r c e >< v o l _ d e s t i n a t i o n > v o lc o p ys t a t u s v o lc o p ya b o r t< o p e r a t i o nn u m b e r > v o lc o p yt h r o t t l e< o p e r a t i o n _ n u m b e r >< t h r o t t l ev a l u e1 0 1 > # #E x a m p l e-C o p i e st h en i g h t l ys n a p s h o tn a m e dn i g h t l y . 1o nv o l u m ev o l 0o nt h el o c a lf i l e rt ot h ev o l u m e v o l 0o nr e m o t e# #f i l e rn a m e dt o a s t e r 1 . v o lc o p ys t a r tsn i g h t l y . 1v o l 0t o a s t e r 1 : v o l 0

Copying

N o t e :C o p i e sa l ld a t a ,i n c l u d i n gs n a p s h o t s ,f r o mo n ev o l u m et oa n o t h e r .I ft h eSf l a gi su s e d ,t h e c o m m a n dc o p i e sa l ls n a p s h o t si nt h es o u r c ev o l u m et ot h ed e s t i n a t i o nv o l u m e .T os p e c i f yap a r t i c u l a r s n a p s h o tt oc o p y ,u s et h esf l a gf o l l o w e db yt h en a m eo ft h es n a p s h o t .I fn e i t h e rt h eSn o rsf l a gi s u s e di nt h ec o m m a n d ,t h ef i l e ra u t o m a t i c a l l yc r e a t e sad i s t i n c t i v e l y n a m e ds n a p s h o ta tt h et i m et h ev o l c o p ys t a r tc o m m a n di se x e c u t e da n dc o p i e so n l yt h a ts n a p s h o tt ot h ed e s t i n a t i o nv o l u m e . T h es o u r c ea n dd e s t i n a t i o nv o l u m e sm u s te i t h e rb o t hb et r a d i t i o n a lv o l u m e so rb o t hb ef l e x i b l ev o l u m e s . T h ev o lc o p yc o m m a n dw i l la b o r ti fa na t t e m p ti sm a d et oc o p yb e t w e e nd i f f e r e n tv o l u m et y p e s . T h es o u r c ea n dd e s t i n a t i o nv o l u m e sc a nb eo nt h es a m ef i l e ro ro nd i f f e r e n tf i l e r s .I ft h es o u r c eo r d e s t i n a t i o nv o l u m ei so naf i l e ro t h e rt h a nt h eo n eo nw h i c ht h ev o lc o p ys t a r tc o m m a n dw a se n t e r e d , s p e c i f yt h ev o l u m en a m ei nt h ef i l e r _ n a m e : v o l u m e _ n a m ef o r m a t .

Traditional Volume Operations (only)


v o l | a g g rc r e a t ev o l _ n a m ev[ ll a n g u a g e _ c o d e ][ f ][ m ][ n ][ v ][ t{ r a i d 4 | r a i d _ d p } ][ rr a i d s i z e ][ Td i s k t y p e ]Rr p m ][ L ]d i s k l i s t # #c r e a t et r a d i t i o n a lv o l u m eu s i n ga g g rc o m m a n d a g g rc r e a t et r a d v o l 1le ntr a i d 4dv 5 . 2 6v 5 . 2 7 # #c r e a t et r a d i t i o n a lv o l u m eu s i n gv o lc o m m a n d v o lc r e a t et r a d v o l 1le ntr a i d 4dv 5 . 2 6v 5 . 2 7 # #C r e a t et r a d i t i o n a lv o l u m eu s i n g2 0d i s k s ,e a c hR A I Dg r o u pc a nh a v e1 0d i s k s v o lc r e a t ev o l 1r1 02 0 v o la d dv o l n a m e [ f ] [ n ] [ g< r a i d g r o u p > ] {n d i s k s [ @ s i z e ] | d< d i s k _ l i s t >}

adding (creating)

additional disks splitting

# #a d da n o t h e rd i s kt ot h ea l r e a d ye x i s t i n gt r a d i t i o n a lv o l u m e v o la d dt r a d v o l 1dv 5 . 2 8 a g g rs p l i t< v o l n a m e / p l e x n a m e >< n e w _ v o l n a m e > # #T h em o r en e w" a g g rs c r u b"c o m m a n di sp r e f e r r e d v o ls c r u bs t a t u s[ v o l n a m e | p l e x n a m e | g r o u p n a m e ] [ v ] v o ls c r u bs t a r t[ v o l n a m e | p l e x n a m e | g r o u p n a m e ] [ v ] v o ls c r u bs t o p[ v o l n a m e | p l e x n a m e | g r o u p n a m e ] [ v ] v o ls c r u bs u s p e n d[ v o l n a m e | p l e x n a m e | g r o u p n a m e ] [ v ] v o ls c r u br e s u m e[ v o l n a m e | p l e x n a m e | g r o u p n a m e ] [ v ] N o t e :P r i n tt h es t a t u so fp a r i t ys c r u b b i n go nt h en a m e dt r a d i t i o n a lv o l u m e ,p l e xo rR A I Dg r o u p .I fn o n a m ei sp r o v i d e d ,t h es t a t u si sg i v e no na l lR A I Dg r o u p sc u r r e n t l yu n d e r g o i n gp a r i t ys c r u b b i n g .T h e s t a t u si n c l u d e sap e r c e n t c o m p l e t ea sw e l la st h es c r u b ss u s p e n d e ds t a t u s( i fa n y ) .

Scrubing (parity)

# #T h em o r en e w" a g g rv e r i f y "c o m m a n di sp r e f e r r e d # #v e r i f ys t a t u s v o lv e r i f ys t a t u s

# #s t a r tav e r i f yo p e r a t i o n v o lv e r i f ys t a r t[a g g r n a m e] # #s t o pav e r i f yo p e r a t i o n v o lv e r i f ys t o p[a g g r n a m e]

Verify (mirroring)

# #s u s p e n dav e r i f yo p e r a t i o n v o lv e r i f ys u s p e n d[a g g r n a m e] # #r e s u m eav e r i f yo p e r a t i o n v o lv e r i f yr e s u m e[a g g r n a m e] N o t e :S t a r t sR A I Dm i r r o rv e r i f i c a t i o no nt h en a m e do n l i n em i r r o r e da g g r e g a t e .I fn on a m ei sg i v e n ,t h e n R A I Dm i r r o rv e r i f i c a t i o ni ss t a r t e do na l lo n l i n em i r r o r e da g g r e g a t e s .V e r i f i c a t i o nc o m p a r e st h ed a t ai n b o t hp l e x e so fam i r r o r e da g g r e g a t e .I nt h ed e f a u l tc a s e ,a l lb l o c k st h a td i f f e ra r el o g g e d ,b u tn o c h a n g e s a r em a d e .

FlexCache Volumes

FlexCache Consistency You can think of a delegation as a contract between the origin system and the caching volume; as long as the caching volume has the delegation, the file has not changed. Delegations are used only in certain situations. Delegations When data from a file is retrieved from the origin volume, the origin system can give a delegation for that file to the caching volume. Before that file is modified on the origin volume, whether due to a request from another caching volume or due to direct client access, the origin system revokes the delegation for that file from all caching volumes that have that delegation. When data is retrieved from the origin volume, the file that contains that data is considered valid in the FlexCache volume as long as a delegation exists for that file. If no delegation exists, the file is considered valid for a certain length of time, specified by the Attribute cache timeouts attribute cache timeout. If a client requests data from a file for which there are no delegations, and the attribute cache timeout has been exceeded, the FlexCache volume compares the file attributes of the cached file with the attributes of the file on the origin system. If a client modifies a file that is cached, that operation is passed back, or proxied through, to the origin system, and the file is ejected from the cache. write operation proxy When the write is proxied, the attributes of the file on the origin volume are changed. This means that when another client requests data from that file, any other FlexCache volume that has that data cached will re-request the data after the attribute cache timeout is reached. FlexCache Status Values access denied connecting lang mismatch rem vol changed rem vol unavail remote nvram err unsup remote vol The origin system is not allowing FlexCache access. Check the setting of the flexcache.access option on the origin system. The caching system is trying to connect to the origin system. The language setting of the origin volume was changed since the FlexCache volume was created. The origin volume was deleted and re-created with the same name. Re-create the FlexCache volume to reenable the FlexCache relationship. The origin volume is offline or has been deleted. The origin system is experiencing problems with its NVRAM . The origin system is running a version of Data ONTAP that either does not support FlexCache volumes or is not compatible with the version running on the caching system. FlexCache Commands
v o ls t a t u s v o ls t a t u sv< f l e x c a c h e _ n a m e >

Display

# #H o wt od i s p l a yt h eo p t i o n sa v a i l a b l ea n dw h a tt h e ya r es e tt o v o lh e l po p t i o n s v o lo p t i o n s< f l e x c a c h e _ n a m e > d fL # #S y n t a x v o lc r e a t e< f l e x c a c h e _ n a m e >< a g g r >[ s i z e { k | m | g | t } ]So r i g i n : s o u r c e _ v o l

Display free space

Adding (Create)

# #C r e a t eaF l e x C a c h ev o l u m ec a l l e df l e x c a c h e 1w i t ha u t o g r o wi na g g r 1a g g r e g a t ew i t ht h es o u r c ev o l u m e v o l 1 # #o ns t o r a g en e t a p p 1s e r v e r v o lc r e a t ef l e x c a c h e 1a g g r 1Sn e t a p p 1 : v o l 1 v o lo f f l i n e<f l e x c a c h e _ n a m e > v o ld e s t r o y< f l e x c a c h e _ n a m e > v o lo p t i o n s< f l e x c a c h e _ n a m e >f l e x c a c h e _ a u t o g r o w[ o n | o f f ] f l e x c a c h ee j e c t< p a t h >[ f ] # #C l i e n ts t a t s f l e x c a c h es t a t sC< f l e x c a c h e _ n a m e >

Removing (destroy) Automatically resizing Eject file from cache

Statistics

# #S e r v e rs t a t s f l e x c a c h es t a t sS< v o l u m e _ n a m e >c< c l i e n t >

# #F i l es t a t s f l e x c a c h ef s t a t< p a t h >

FlexClone Volumes
FlexClone Commands Display
v o ls t a t u s v o ls t a t u s< f l e x c l o n e _ n a m e >v d fL h # #S y n t a x v o lc l o n ec r e a t ec l o n e _ n a m e[ s{ v o l u m e | f i l e | n o n e } ]bp a r e n t _ n a m e[ p a r e n t _ s n a p ] # #c r e a t eaf l e x c l o n ec a l l e df l e x c l o n e 1f r o mt h ep a r e n tf l e x v o l 1 v o lc l o n ec r e a t ef l e x c l o n e 1bf l e x v o l 1

adding (create)

Removing (destroy)

v o lo f f l i n e< f l e x c l o n e _ n a m e > v o ld e s t r o y< f l e x c l o n e _ n a m e > # #D e t e r m i n et h ef r e es p a c er e q u i r e dt op e r f o r mt h es p l i t v o lc l o n es p l i te s t i m a t e< f l e x c l o n e _ n a m e > # #D o u b l ec h e c ky o uh a v et h es p a c e d fA h

splitting

# #P e r f o r mt h es p l i t v o lc l o n es p l i ts t a r t< f l e x c l o n e _ n a m e > # #C h e c ku po ni t ss t a t u s v o lc o l n es p l i ts t a t u s< f l e x c l o n e _ n a m e > # #S t o pt h es p l i t v o lc l o n es p l i ts t o p< f l e x c l o n e _ n a m e > / e t c / l o g / c l o n e T h ec l o n el o gf i l er e c o r d st h ef o l l o w i n gi n f o r m a t i o n : C l o n i n go p e r a t i o nI D T h en a m eo ft h ev o l u m ei nw h i c ht h ec l o n i n go p e r a t i o nw a sp e r f o r m e d S t a r tt i m eo ft h ec l o n i n go p e r a t i o n E n dt i m eo ft h ec l o n i n go p e r a t i o n P a r e n tf i l e / L U Na n dc l o n ef i l e / L U Nn a m e s P a r e n tf i l e / L U NI D S t a t u so ft h ec l o n eo p e r a t i o n :s u c c e s s f u l ,u n s u c c e s s f u l ,o rs t o p p e da n ds o m eo t h e rd e t a i l s

log file

Deduplication
Deduplication Commands
s i ss t a r ts< p a t h >

start/restart deduplication s i ss t a r ts/ v o l / f l e x v o l 1 operation


# #U s ep r e v i o u sc h e c k p o i n t s i ss t a r ts p< p a t h >

stop deduplication operation


s i ss t o p< p a t h >

s i sc o n f i gs< s c h e d u l e >< p a t h > s i sc o n f i gsm o n f r i @ 2 3/ v o l / f l e x v o l 1 N o t e :s c h e d u l el i s t st h ed a y sa n dh o u r so ft h ed a yw h e nd e d u p l i c a t i o nr u n s .T h es c h e d u l ec a nb eo ft h e f o l l o w i n gf o r m s : d a y _ l i s t [ @ h o u r _ l i s t ] I fh o u r _ l i s ti sn o ts p e c i f i e d ,d e d u p l i c a t i o nr u n sa tm i d n i g h to ne a c hs c h e d u l e dd a y . h o u r _ l i s t [ @ d a y _ l i s t ] I fd a y _ l i s ti sn o ts p e c i f i e d ,d e d u p l i c a t i o nr u n se v e r yd a ya tt h es p e c i f i e dh o u r s . Ah y p h e n( )d i s a b l e sd e d u p l i c a t i o no p e r a t i o n sf o rt h es p e c i f i e dF l e x V o lv o l u m e .

schedule deduplication

enabling disabling status Display saved space

s i so n< p a t h > s i so f f< p a t h > s i ss t a t u sl< p a t h > d fs< p a t h >

QTrees
QTree Commands
q t r e es t a t u s[ i ][ v ]

Display

N o t e : T h eio p t i o ni n c l u d e st h eq t r e eI Dn u m b e ri nt h ed i s p l a y . T h evo p t i o ni n c l u d e st h eo w n i n gv F i l e ru n i t ,i ft h eM u l t i S t o r el i c e n s ei se n a b l e d . # #S y n t a x-b yd e f a u l tw a f l . d e f a u l t _ q t r e e _ m o d eo p t i o ni su s e d

adding (create)

# #S y n t a x-b yd e f a u l tw a f l . d e f a u l t _ q t r e e _ m o d eo p t i o ni su s e d q t r e ec r e a t ep a t h[ mm o d e ] # #c r e a t ean e w sq t r e ei nt h e/ v o l / u s e r sv o l u m eu s i n g7 7 0a sp e r m i s s i o n s q t r e ec r e a t e/ v o l / u s e r s / n e w sm7 7 0

Remove Rename

r mR f< d i r e c t o r y > m v< o l d _ n a m e >< n e w _ n a m e > # #M o v et h ed i r e c t o r yt oad i f f e r e n td i r e c t o r y m v/ n / j o e l / v o l 1 / d i r 1/ n / j o e l / v o l 1 / o l d d i r # #C r e a t et h eq t r e e

t r e ec r e a t e/ n / j o e l / v o l 1 / d i r 1 convert a directory into a q qtree directory # #M o v et h ec o n t e n t so ft h eo l dd i r e c t o r yb a c ki n t ot h en e wQ T r e e m v/ n / j o e l / v o l 1 / o l d d i r / */ n / j o e l / v o l 1 / d i r 1 # #R e m o v et h eo l dd i r e c t o r yn a m e r m d i r/ n / j o e l / v o l 1 / o l d d i r q t r e es t a t s[ z ][ v o l _ n a m e ]

stats

N o t e : z=z e r os t a t s # #S y n t a x q t r e es e c u r i t yp a t h{ u n i x|n t f s|m i x e d }

Change the security style

# #C h a n g et h es e c u r i t ys t y l eo f/ v o l / u s e r s / d o c st om i x e d q t r e es e c u r i t y/ v o l / u s e r s / d o c sm i x e d

Quotas
Quota Commands Quotas configuration file
/ m r o o t / e t c / q u o t a s # # # # Q u o t aT a r g e t # # * / v o l / v o l 2 / q t r e e t i n h d b a h a r dl i m i t|t h r e s| s o f tl i m i t d i s k f i l e s |h o l d | d i s k f i l e - - --#m o n i t o ru s a g eo na l lq t r e e si nv o l 0 1 0 2 4 K 7 5 k #e n f o r c eq t r e eq u o t au s i n gk b 1 0 0 M #e n f o r c eu s e r sq u o t ai ns p e c i f i e dq t r e e 1 0 0 M #e n f o r c eg r o u pq u o t ai ns p e c i f i e dq t r e e

Example quota file

t y p e t r e e @ / v o l / v o l 0 t r e e u s e r @ / v o l / v o l 2 / q t r e e 1 g r o u p @ / v o l / o r a / q t r e e 1

#*=d e f a u l tu s e r / g r o u p / q t r e e #-=p l a c e h o l d e r ,n ol i m i te n f o r c e d ,j u s te n a b l es t a t sc o l l e c t i o n N o t e :y o uh a v el o t so fp e r m u t a t i o n s ,s oc h e c k o u tt h ed o c u m e n t a t i o n

Displaying

q u o t ar e p o r t[ < p a t h > ] q u o t ao n[ w ]< v o l _ n a m e >

Activating

N o t e : w=r e t u r no n l ya f t e rt h ee n t i r eq u o t a sf i l eh a sb e e ns c a n n e d q u o t ao f f[ w ]< v o l _ n a m e > q u o t ao f f[ w ]< v o l _ n a m e > q u o t ao n[ w ]< v o l _ n a m e > q u o t ar e s i z e< v o l _ n a m e > N o t e :t h i sc o m m a n d sr e r e a d st h eq u o t af i l e

Deactivitating Reinitializing Resizing

Deleting log messaging

e d i tt h eq u o t af i l e q u o t ar e s i z e< v o l _ n a m e > q u o t al o g m s g

LUNs, igroups and LUN mapping


LUN configuration Display
l u ns h o w l u ns h o wm l u ns h o wv l u ns e t u p N o t e :f o l l o wt h ep r o m p t st oc r e a t ea n dc o n f i g u r eL U N ' s

Initialize/Configure LUNs, mapping

Create

l u nc r e a t es1 0 0 mtw i n d o w s/ v o l / t r a d v o l 1 / l u n 1 l u nd e s t r o y[ f ]/ v o l / t r a d v o l 1 / l u n 1 N o t e :t h e" f "w i l lf o r c et h ed e s t r o y

Destroy

l u nr e s i z e< l u np a t h >< s i z e >

Resize

l u nr e s i z e< l u np a t h >< s i z e > l u nr e s i z e/ v o l / t r a d v o l 1 / l u n 17 5 m

Restart block protocol access Stop block protocol access

l u no n l i n e/ v o l / t r a d v o l 1 / l u n 1 l u no f f l i n e/ v o l / t r a d v o l 1 / l u n 1 l u nm a p/ v o l / t r a d v o l 1 / l u n 1w i n _ h o s t s _ g r o u p 10 l u nm a pf/ v o l / t r a d v o l 1 / l u n 2l i n u x _ h o s t _ g r o u p 11

M ap a LUN to an initiator group

l u ns h o wm N o t e :u s e" f "t of o r c et h em a p p i n g l u ns h o wm l u no f f l i n e/ v o l / t r a d v o l 1 l u nu n m a p/ v o l / t r a d v o l 1 / l u n 1w i n _ h o s t s _ g r o u p 10 l u ns t a t s/ v o l / t r a d v o l 1 / l u n 1 l u nc o m m e n t/ v o l / t r a d v o l 1 / l u n 1" 1 0 G Bf o rp a y r o l lr e c o r d s " l u nc o n f i g _ c h e c kv

Remove LUN mapping Displays or zeros read/write statistics for LUN Comments Check all lun/igroup/fcp settings for correctness

M anage LUN cloning

#C r e a t eaS n a p s h o tc o p yo ft h ev o l u m ec o n t a i n i n gt h eL U Nt ob ec l o n e db ye n t e r i n gt h ef o l l o w i n gc o m m a n d s n a pc r e a t et r a d v o l 1t r a d v o l 1 _ s n a p s h o t _ 0 8 1 2 2 0 1 0 #C r e a t et h eL U Nc l o n eb ye n t e r i n gt h ef o l l o w i n gc o m m a n d l u nc l o n ec r e a t e/ v o l / t r a d v o l 1 / c l o n e _ l u n 1b/ v o l / t r a d v o l 1 / t r a d v o l 1 _ s n a p s h o t _ 0 8 1 2 2 0 1 0l u n 1

Show the maximum possible size of a LUN on a given volume or qtree M ove (rename) LUN Display/change LUN serial number M anage LUN properties Configure NAS file-sharing properties M anage LUN and snapshot interactions

l u nm a x s i z e/ v o l / t r a d v o l 1 l u nm o v e/ v o l / t r a d v o l 1 / l u n 1/ v o l / t r a d v o l 1 / w i n d o w s _ l u n 1 l u ns e r i a lx/ v o l / t r a d v o l 1 / l u n 1 l u ns e tr e s e r v a t i o n/ v o l / t r a d v o l 1 / h p u x / l u n 0 l u ns h a r e< l u n _ p a t h >{n o n e|r e a d|w r i t e|a l l}

l u ns n a pu s a g es< v o l u m e >< s n a p s h o t >

igroup configuration display create (iSCSI) create (FC) destroy add initiators to an igroup remove initiators to an igroup rename set O/S type
i g r o u ps h o w i g r o u ps h o wv i g r o u ps h o wi q n . 1 9 9 1 0 5 . c o m . m i c r o s o f t : x b l a d e i g r o u pc r e a t eitw i n d o w sw i n _ h o s t s _ g r o u p 1i q n . 1 9 9 1 0 5 . c o m . m i c r o s o f t : x b l a d e i g r o u pc r e a t eifw i n d o w sw i n _ h o s t s _ g r o u p 1i q n . 1 9 9 1 0 5 . c o m . m i c r o s o f t : x b l a d e i g r o u pd e s t r o yw i n _ h o s t s _ g r o u p 1 i g r o u pa d dw i n _ h o s t s _ g r o u p 1i q n . 1 9 9 1 0 5 . c o m . m i c r o s o f t : l a p t o p i g r o u pr e m o v ew i n _ h o s t s _ g r o u p 1i q n . 1 9 9 1 0 5 . c o m . m i c r o s o f t : l a p t o p i g r o u pr e n a m ew i n _ h o s t s _ g r o u p 1w i n _ h o s t s _ g r o u p 2 i g r o u ps e tw i n _ h o s t s _ g r o u p 1o s t y p ew i n d o w s i g r o u ps e tw i n _ h o s t s _ g r o u p 1a l u ay e s N o t e :A L U Ad e f i n e sas t a n d a r ds e to fS C S Ic o m m a n d sf o rd i s c o v e r i n ga n dm a n a g i n gm u l t i p l ep a t h st oL U N so nF i b r e C h a n n e la n di S C S IS A N s .A L U Ae n a b l e st h ei n i t i a t o rt oq u e r yt h et a r g e ta b o u tp a t ha t t r i b u t e s ,s u c ha sp r i m a r y p a t ha n ds e c o n d a r yp a t h .I ta l s oe n a b l e st h et a r g e tt oc o m m u n i c a t ee v e n t sb a c kt ot h ei n i t i a t o r .A sl o n ga st h e h o s ts u p p o r t st h eA L U As t a n d a r d ,m u l t i p a t h i n gs o f t w a r ec a nb ed e v e l o p e dt os u p p o r ta n ya r r a y .P r o p r i e t a r yS C S I c o m m a n d sa r en ol o n g e rr e q u i r e d .

Enabling ALUA

iSCSI commands display status start stop stats nodename


i s c s ii n i t i a t o rs h o w i s c s is e s s i o ns h o w[ t ] i s c s ic o n n e c t i o ns h o wv i s c s is e c u r i t ys h o w i s c s is t a t u s i s c s is t a r t i s c s is t o p i s c s is t a t s i s c s in o d e n a m e #t oc h a n g et h en a m e i s c s in o d e n a m e< n e wn a m e > i s c s ii n t e r f a c es h o w

interfaces

i s c s ii n t e r f a c ee n a b l ee 0 b i s c s ii n t e r f a c ed i s a b l ee 0 b i s c s ip o r t a ls h o w

portals

portals

N o t e :U s et h ei s c s ip o r t a ls h o wc o m m a n dt od i s p l a yt h et a r g e tI Pa d d r e s s e so ft h es t o r a g es y s t e m .T h es t o r a g e s y s t e m ' st a r g e tI Pa d d r e s s e sa r et h ea d d r e s s e so ft h ei n t e r f a c e su s e df o rt h ei S C S Ip r o t o c o l i s c s ii n t e r f a c ea c c e s s l i s ts h o w N o t e :y o uc a na d do rr e m o v ei n t e r f a c e sf r o mt h el i s t

accesslists

Port Sets
p o r t s e ts h o w p o r t s e ts h o wp o r t s e t 1 i g r o u ps h o wl i n u x i g r o u p 1

display

create destroy add remove binding

p o r t s e tc r e a t efp o r t s e t 1S y s t e m A : 4 b i g r o u pu n b i n dl i n u x i g r o u p 1p o r t s e t 1 p o r t s e td e s t r o yp o r t s e t 1 p o r t s e ta d dp o r t s e t 1S y s t e m B : 4 b p o r t s e tr e m o v ep o r t s e t 1S y s t e m B : 4 b i g r o u pb i n dl i n u x i g r o u p 1p o r t s e t 1 i g r o u pu n b i n dl i n u x i g r o u p 1p o r t s e t 1

FCP service display daemon status start stop


f c ps h o wa d a p t e rv f c ps t a t u s f c ps t a r t f c ps t o p f c ps t a t sii n t e r v a l[ cc o u n t ][ a|a d a p t e r ] f c ps t a t si1 f c pc o n f i g< a d a p t e r >[ d o w n | u p ] f c pc o n f i g4 ad o w n f c pc o n f i g< a d a p t e r >s p e e d[ a u t o | 1 | 2 | 4 | 8 ] f c pc o n f i g4 as p e e d8

stats

target expansion adapters

target adapter speed

set WWPN #

f c pp o r t n a m es e t[ f ]a d a p t e rw w p n f c pp o r t n a m es e tf1 b5 0 : 0 a : 0 9 : 8 5 : 8 7 : 0 9 : 6 8 : a d

swap WWPN #

f c pp o r t n a m es w a p[ f ]a d a p t e r 1a d a p t e r 2 f c pp o r t n a m es w a pf1 a1 b

#d i s p l a yn o d e n a m e f c pn o d e n a m e f c pn o d e n a m e[ f ] n o d e n a m e

change WWNN

f c pn o d e n a m e5 0 : 0 a : 0 9 : 8 0 : 8 2 : 0 2 : 8 d : f f N o t e :T h eW W N No fas t o r a g es y s t e mi sg e n e r a t e db yas e r i a ln u m b e ri ni t sN V R A M ,b u ti ti ss t o r e do n d i s k .I fy o u e v e rr e p l a c eas t o r a g es y s t e mc h a s s i sa n dr e u s ei ti nt h es a m eF i b r eC h a n n e lS A N ,i ti sp o s s i b l e ,a l t h o u g h e x t r e m e l yr a r e ,t h a tt h eW W N No ft h er e p l a c e ds t o r a g es y s t e mi sd u p l i c a t e d .I nt h i su n l i k e l ye v e n t ,y o uc a n c h a n g et h eW W N No ft h es t o r a g es y s t e m .

WWPN Aliases - display

f c pw w p n a l i a ss h o w f c pw w p n a l i a ss h o wam y _ a l i a s _ 1 f c pw w p n a l i a ss h o ww1 0 : 0 0 : 0 0 : 0 0 : c 9 : 3 0 : 8 0 : 2 f c pw w p n a l i a ss e t[ f ]a l i a sw w p n f c pw w p n a l i a ss e tm y _ a l i a s _ 11 0 : 0 0 : 0 0 : 0 0 : c 9 : 3 0 : 8 0 : 2 f f c pw w p n a l i a sr e m o v e[ aa l i a s. . .|ww w p n ]

WWPN Aliases - create

WWPN Aliases - remove

f c pw w p n a l i a sr e m o v eam y _ a l i a s _ 1 f c pw w p n a l i a sr e m o v ew1 0 : 0 0 : 0 0 : 0 0 : c 9 : 3 0 : 8 0 : 2

Snapshotting and Cloning


Snapshot and Cloning commands Display clones
s n a pl i s t #C r e a t eaL U Nb ye n t e r i n gt h ef o l l o w i n gc o m m a n d l u nc r e a t es1 0 gts o l a r i s/ v o l / t r a d v o l 1 / l u n 1 #C r e a t eaS n a p s h o tc o p yo ft h ev o l u m ec o n t a i n i n gt h eL U Nt ob ec l o n e db ye n t e r i n gt h ef o l l o w i n gc o m m a n d

create clone

#C r e a t eaS n a p s h o tc o p yo ft h ev o l u m ec o n t a i n i n gt h eL U Nt ob ec l o n e db ye n t e r i n gt h ef o l l o w i n gc o m m a n d s n a pc r e a t et r a d v o l 1t r a d v o l 1 _ s n a p s h o t _ 0 8 1 2 2 0 1 0 #C r e a t et h eL U Nc l o n eb ye n t e r i n gt h ef o l l o w i n gc o m m a n d l u nc l o n ec r e a t e/ v o l / t r a d v o l 1 / c l o n e _ l u n 1b/ v o l / t r a d v o l 1 / l u n 1t r a d v o l 1 _ s n a p s h o t _ 0 8 1 2 2 0 1 0

#d i s p l a yt h es n a p s h o tc o p i e s l u ns n a pu s a g et r a d v o l 1t r a d v o l 1 _ s n a p s h o t _ 0 8 1 2 2 0 1 0

destroy clone

#D e l e t ea l lt h eL U N si nt h ea c t i v ef i l es y s t e mt h a ta r ed i s p l a y e db yt h el u ns n a pu s a g ec o m m a n db ye n t e r i n gt h e f o l l o w i n gc o m m a n d l u nd e s t r o y/ v o l / t r a d v o l 1 / c l o n e _ l u n 1 #D e l e t ea l lt h eS n a p s h o tc o p i e st h a ta r ed i s p l a y e db yt h el u ns n a pu s a g ec o m m a n di nt h eo r d e rt h e ya p p e a r s n a pd e l e t et r a d v o l 1t r a d v o l 1 _ s n a p s h o t _ 0 8 1 2 2 0 1 0

v o lo p t i o n s< v o l _ n a m e >< s n a p s h o t _ c l o n e _ d e p e n d e n c y >o n v o lo p t i o n s< v o l _ n a m e >< s n a p s h o t _ c l o n e _ d e p e n d e n c y >o f f N o t e :P r i o rt oD a t aO N T A P7 . 3 ,t h es y s t e ma u t o m a t i c a l l yl o c k e da l lb a c k i n gS n a p s h o tc o p i e sw h e nS n a p s h o tc o p i e s o fL U Nc l o n e sw e r et a k e n .S t a r t i n gw i t hD a t aO N T A P7 . 3 ,y o uc a ne n a b l et h es y s t e mt oo n l yl o c kb a c k i n gS n a p s h o t c o p i e sf o rt h ea c t i v eL U Nc l o n e .I fy o ud ot h i s ,w h e ny o ud e l e t et h ea c t i v eL U Nc l o n e ,y o uc a nd e l e t et h eb a s e S n a p s h o tc o p yw i t h o u th a v i n gt of i r s td e l e t ea l lo ft h em o r er e c e n tb a c k i n gS n a p s h o tc o p i e s . T h i sb e h a v i o ri nn o te n a b l e db yd e f a u l t ;u s et h es n a p s h o t _ c l o n e _ d e p e n d e n c yv o l u m eo p t i o nt oe n a b l ei t .I ft h i s o p t i o ni ss e tt oo f f ,y o uw i l ls t i l lb er e q u i r e dt od e l e t ea l ls u b s e q u e n tS n a p s h o tc o p i e sb e f o r ed e l e t i n gt h e b a s eS n a p s h o tc o p y .I fy o ue n a b l et h i so p t i o n ,y o ua r en o tr e q u i r e dt or e d i s c o v e rt h eL U N s .I fy o up e r f o r ma s u b s e q u e n tv o l u m es n a pr e s t o r eo p e r a t i o n ,t h es y s t e mr e s t o r e sw h i c h e v e rv a l u ew a sp r e s e n ta tt h et i m et h e S n a p s h o tc o p yw a st a k e n .

clone dependency

Restoring snapshot

s n a pr e s t o r esp a y r o l l _ l u n _ b a c k u p . 2tv o l/ v o l / p a y r o l l _ l u n l u nc l o n es p l i ts t a r tl u n _ p a t h l u nc l o n es p l i ts t a t u sl u n _ p a t h

splitting the clone stop clone splitting delete snapshot copy disk space usage Use Volume copy to copy LUN's

l u nc l o n es p l i ts t o pl u n _ p a t h s n a pd e l e t ev o l n a m es n a p s h o t n a m e s n a pd e l e t eaf< v o l n a m e > l u ns n a pu s a g et r a d v o l 1m y s n a p v o lc o p ys t a r tSs o u r c e : s o u r c e _ v o l u m ed e s t : d e s t _ v o l u m e v o lc o p ys t a r tS/ v o l / v o l 0f i l e r B : / v o l / v o l 1

The estimated rate of change of data between Snapshot copies in a s n a pd e l t a/ v o l / t r a d v o l 1t r a d v o l 1 _ s n a p s h o t _ 0 8 1 2 2 0 1 0 volume The estimated amount of space freed if you delete the specified Snapshot copies

s n a pr e c l a i m a b l e/ v o l / t r a d v o l 1t r a d v o l 1 _ s n a p s h o t _ 0 8 1 2 2 0 1 0

File Access using NFS


Export Options actual=<path> anon=<uid>|<name> nosuid ro | ro=clientid rw | rw=clientid root=clientid Specifies the actual file system path corresponding to the exported file system path. Specifies the effective user ID (or name) of all anonymous or root NFS client users that access the file system path. Disables setuid and setgid executables and mknod commands on the file system path. Specifies which NFS clients have read-only access to the file system path. Specifies which NFS clients have read-write access to the file system path. Specifies which NFS clients have root access to the file system path. If you specify the root= option, you must specify at least one NFS client identifier. To exclude NFS clients from the list, prepend the NFS client identifiers with a minus sign (-). Specifies the security types that an NFS client must support to access the file system path. To apply the security types to all types of access, specify the sec= option once. To apply the security types to specific types of access (anonymous, non-super user, read-only, read-write, or root), specify the sec= option at least twice, once before each access type to which it applies (anon, nosuid, ro, rw, or root, respectively). security types could be one of the following:

none

No security. Data ONTAP treats all of the NFS client's users as anonymous users. Standard UNIX (AUTH_SYS) authentication. Data ONTAP checks the NFS credentials of all of the NFS client's users, applying the file access permissions specified for those users in the NFS server's /etc/passwd file. This is the default security type. Kerberos(tm) Version 5 authentication. Data ONTAP uses data encryption standard (DES) key encryption to authenticate the NFS client's users. Kerberos(tm) Version 5 integrity. In addition to authenticating the NFS client's users, Data

sec=sectype

sys

krb5

krb5i

Kerberos(tm) Version 5 integrity. In addition to authenticating the NFS client's users, Data ONTAP uses message authentication codes (M ACs) to verify the integrity of the NFS client's remote procedure requests and responses, thus preventing "man-in-the-middle" tampering. Kerberos(tm) Version 5 privacy. In addition to authenticating the NFS client's users and verifying data integrity, Data ONTAP encrypts NFS arguments and results to provide privacy.

krb5p

Examples

rw=10.45.67.0/24 ro,root=@trusted,rw=@friendly rw,root=192.168.0.80,nosuid Export Commands

Displaying

e x p o r t f s e x p o r t f sq< p a t h >

#c r e a t ee x p o r ti nm e m o r ya n dw r i t et o/ e t c / e x p o r t s( u s ed e f a u l to p t i o n s ) e x p o r t f sp/ v o l / n f s 1

create

#c r e a t ee x p o r ti nm e m o r ya n dw r i t et o/ e t c / e x p o r t s( u s es p e c i f i co p t i o n s ) e x p o r t s f si os e c = n o n e , r w , r o o t = 1 9 2 . 1 6 8 . 0 . 8 0 , n o s u i d/ v o l / n f s 1 #c r e a t ee x p o r ti nm e m o r yo n l yu s i n go w ns p e c i f i co p t i o n s e x p o r t s f si os e c = n o n e , r w , r o o t = 1 9 2 . 1 6 8 . 0 . 8 0 , n o s u i d/ v o l / n f s 1 #M e m o r yo n l y e x p o r t f su< p a t h > #M e m o r ya n d/ e t c / e x p o r t f s e x p o r t f sz< p a t h >

remove

export all check access

e x p o r t f sa e x p o r t f sc1 9 2 . 1 6 8 . 0 . 8 0/ v o l / n f s 1 e x p o r t f sf

flush reload storage path Write export to a file

e x p o r t f sf< p a t h > e x p o r t f sr e x p o r t f ss< p a t h > e x p o r t f sw< p a t h / e x p o r t _ f i l e > #S u p p o s e/ v o l / v o l 0i se x p o r t e dw i t ht h ef o l l o w i n ge x p o r to p t i o n s : r w = p i g : h o r s e : c a t : d o g , r o = d u c k , a n o n = 0

fencing

#T h ef o l l o w i n gc o m m a n de n a b l e sf e n c i n go fc a tf r o m/ v o l / v o l 0 e x p o r t f sbe n a b l es a v ec a t/ v o l / v o l 0 #c a tm o v e st ot h ef r o n to ft h er o =l i s tf o r/ v o l / v o l 0 : r w = p i g : h o r s e : d o g , r o = c a t : d u c k , a n o n = 0

stats

n f s s t a t

File Access using CIFS


Useful CIFS options change the security style timeout
o p t i o n sw a f l . d e f a u l t _ s e c u r i t y _ s t y l e{ n t f s|u n i x|m i x e d } o p t i o n sc i f s . i d l e _ t i m e o u tt i m e o p t i o n sc i f s . o p l o c k s . e n a b l eo n

Performance

N o t e :U n d e rs o m ec i r c u m s t a n c e s ,i fap r o c e s sh a sa ne x c l u s i v eo p l o c ko naf i l ea n das e c o n dp r o c e s s a t t e m p t st oo p e nt h ef i l e ,t h ef i r s tp r o c e s sm u s ti n v a l i d a t ec a c h e dd a t aa n df l u s hw r i t e sa n dl o c k s .T h e c l i e n tm u s tt h e nr e l i n q u i s ht h eo p l o c ka n da c c e s st ot h ef i l e .I ft h e r ei san e t w o r kf a i l u r ed u r i n gt h i s f l u s h ,c a c h e dw r i t ed a t am i g h tb el o s t .

CIFS Commands
/ e t c / c i f s c o n f i g _ s e t u p . c f g / e t c / u s e r m a p . c f s / e t c / p a s s w d / e t c / c i f s c o n f i g _ s h a r e . c f g

useful files

N o t e :u s e" r d f i l e "t or e a dt h ef i l e

CIFS setup start stop

c i f ss e t u p N o t e :y o uw i l lb ep r o m p t e dt oa n s w e ran u m b e ro fq u e s t i o n sb a s e do nw h a tr e q u i r e m e n t sy o un e e d . c i f sr e s t a r t c i f st e r m i n a t e

stop

#t e r m i n a t eas p e c i f i cc l i e n t c i f st e r m i n a t e< c l i e n t _ n a m e > | < I PA d d r e s s > c i f ss e s s i o n s c i f ss e s s i o n s< u s e r > c i f ss e s s i o n s< I PA d d r e s s > #A u t h e n t i c a t i o n c i f ss e s s i o n st #C h a n g e s c i f ss e s s i o n sc #S e c u r i t yI n f o c i f ss e s s i o ns

sessions

Broadcast message

c i f sb r o a d c a s t*" m e s s a g e " c i f sb r o a d c a s t< c l i e n t _ n a m e >" m e s s a g e " c i f sa c c e s s< s h a r e >< u s e r | g r o u p >< p e r m i s s i o n > #E x a m p l e s c i f sa c c e s ss y s a d m i n sgw h e e lF u l lC o n t r o l c i f sa c c e s sd e l e t er e l e a s e sE N G I N E E R I N G \ m a r y N o t e :r i g h t sc a nb eU n i x s t y l ec o m b i n a t i o n so frwx-o rN T s t y l e" N oA c c e s s " ," R e a d " ," C h a n g e " ,a n d " F u l lC o n t r o l " c i f ss t a t< i n t e r v a l > c i f ss t a t< u s e r > c i f ss t a t< I PA d d r e s s > #c r e a t eav o l u m ei nt h en o r m a lw a y

permissions

stats

create a share

#t h e nu s i n gq t r e e ss e tt h es t y l eo ft h ev o l u m e{ n t f s|u n i x|m i x e d } #N o wy o uc a nc r e a t ey o u rs h a r e c i f ss h a r e sa d dT E S T/ v o l / f l e x v o l 1 / T E S Tc o m m e n t" T e s tS h a r e"f o r c e g r o u pw o r k g r o u pm a x u s e r s1 0 0 c i f ss h a r e sc h a n g es h a r e n a m e{ b r o w s e|n o b r o w s e }{ c o m m e n td e s c|-n o c o m m e n t }{ m a x u s e r su s e r l i m i t| n o m a x u s e r s }{ f o r c e g r o u pg r o u p n a m e|n o f o r c e g r o u p }{ w i d e l i n k|n o w i d e l i n k }{ s y m l i n k _ s t r i c t _ s e c u r i t y |-n o s y m l i n k _ s t r i c t _ s e c u r i t y }{ v s c a n|n o v s c a n }{ v s c a n r e a d|-n o v s c a n r e a d }{ u m a s km a s k|n o u m a s k { n o _ c a c h i n g|m a n u a l _ c a c h i n g|-a u t o _ d o c u m e n t _ c a c h i n g|a u t o _ p r o g r a m _ c a c h i n g } #e x a m p l e c i f ss h a r e sc h a n g e< s h a r e n a m e >n o v s c a n #D i s p l a yh o m ed i r e c t o r i e s c i f sh o m e d i r #A d dah o m ed i r e c t o r y w r f i l ea/ e t c / c i f s _ h o m e d i r . c f g/ v o l / T E S T #c h e c ki t r d f i l e/ e t c / c i f s _ h o m e d i r . c f g #D i s p l a yf o raW i n d o w sS e r v e r n e tv i e w\ \ < F i l e rI PA d d r e s s > #C o n n e c t n e tu s e*\ \ 1 9 2 . 1 6 8 . 0 . 7 5 \ T E S T N o t e :m a k es u r et h ed i r e c t o r ye x i s t s #a d dad o m a i nc o n t r o l l e r c i f sp r e f d ca d dl a b1 0 . 1 0 . 1 0 . 1 01 0 . 1 0 . 1 0 . 1 1 #d e l e t ead o m a i nc o n t r o l l e r c i f sp r e f d cd e l e t el a b

change share characteristics

home directories

domain controller

#L i s td o m a i ni n f o r m a t i o n c i f sd o m a i n i n f o #L i s tt h ep r e f e r r e dc o n t r o l l e r s c i f sp r e f d cp r i n t #R e s t a b l i s h i n g c i f sr e s e t d c

change filers domain password

c i f sc h a n g e f i l e r p w d

s e c t r a c ea d d[ i pi p _ a d d r e s s ][ n t u s e rn t _ u s e r n a m e ][ u n i x u s e ru n i x _ u s e r n a m e ][ p a t hp a t h _ p r e f i x ][ a ] # E x a m p l e s s e c t r a c ea d di p1 9 2 . 1 6 8 . 1 0 . 2 3 s e c t r a c ea d du n i x u s e rf o op a t h/ v o l / v o l 0 / h o m e 4a

Tracing permission problems

#T or e m o v e s e c t r a c ed e l e t ea l l s e c t r a c ed e l e t e< i n d e x > #D i s p l a yt r a c i n g s e c t r a c es h o w

#D i s p l a ye r r o rc o d es t a t u s s e c t r a c ep r i n t s t a t u s< s t a t u s _ c o d e > s e c t r a c ep r i n t s t a t u s1 : 5 1 5 4 4 8 5 0 4 3 2 : 3 2 : 7 8

File Access using FTP


Useful Options Enable Disable
o p t i o n sf t p d . e n a b l eo n o p t i o n sf t p d . e n a b l eo f f o p t i o n sf t p d . l o c k i n gd e l e t e o p t i o n sf t p d . l o c k i n gn o n e N o t e :T op r e v e n tu s e r sf r o mm o d i f y i n gf i l e sw h i l et h eF T Ps e r v e ri st r a n s f e r r i n gt h e m ,y o uc a ne n a b l e F T Pf i l el o c k i n g .O t h e r w i s e ,y o uc a nd i s a b l eF T Pf i l el o c k i n g .B yd e f a u l t ,F T Pf i l el o c k i n gi sd i s a b l e d .

File Locking

Authenication Style

o p t i o n sf t p d . a u t h _ s t y l e{ u n i x|n t l m|m i x e d } o p t i o n sf t p d . b y p a s s _ t r a v e r s e _ c h e c k i n go n o p t i o n sf t p d . b y p a s s _ t r a v e r s e _ c h e c k i n go f f

bypassing of FTP traverse checking

N o t e :I ft h ef t p d . b y p a s s _ t r a v e r s e _ c h e c k i n go p t i o ni ss e tt oo f f ,w h e nau s e ra t t e m p t st oa c c e s saf i l e u s i n gF T P ,D a t aO N T A Pc h e c k st h et r a v e r s e( e x e c u t e )p e r m i s s i o nf o ra l ld i r e c t o r i e si nt h ep a t ht ot h e f i l e .I fa n yo ft h ei n t e r m e d i a t ed i r e c t o r i e sd o e sn o th a v et h e" X "( t r a v e r s ep e r m i s s i o n ) ,D a t aO N T A P d e n i e sa c c e s st ot h ef i l e .I ft h ef t p d . b y p a s s _ t r a v e r s e _ c h e c k i n go p t i o ni ss e tt oo n ,w h e nau s e r a t t e m p t st oa c c e s saf i l e ,D a t aO N T A Pd o e sn o tc h e c kt h et r a v e r s ep e r m i s s i o nf o rt h ei n t e r m e d i a t e d i r e c t o r i e sw h e nd e t e r m i n i n gw h e t h e rt og r a n to rd e n ya c c e s st ot h ef i l e .

Restricting FTP users to a specific directory Restricting FTP users to their home directories or a default directory M aximum number of connections idle timeout value

o p t i o n sf t p d . d i r . r e s t r i c t i o no n o p t i o n sf t p d . d i r . r e s t r i c t i o no f f

o p t i o n sf t p d . d i r . o v e r r i d e" "

o p t i o n sf t p d . m a x _ c o n n e c t i o n sn o p t i o n sf t p d . m a x _ c o n n e c t i o n s _ t h r e s h o l dn o p t i o n sf t p d . i d l e _ t i m e o u tns|m|h o p t i o n sf t p d . a n o n y m o u s . e n a b l eo n o p t i o n sf t p d . a n o n y m o u s . e n a b l eo f f

anonymous logins

#s p e c i f yt h en a m ef o rt h ea n o n y m o u sl o g i n o p t i o n sf t p d . a n o n y m o u s . n a m eu s e r n a m e #c r e a t et h ed i r e c t o r yf o rt h ea n o n y m o u sl o g i n o p t i o n sf t p d . a n o n y m o u s . h o m e _ d i rh o m e d i r

FTP Commands
/ e t c / l o g / f t p . c m d / e t c / l o g / f t p . x f e r

Log files

#s p e c i f yt h em a xn u m b e ro fl o g f i l e s( d e f a u l ti s6 )a n ds i z e o p t i o n sf t p d . l o g . n f i l e s1 0 o p t i o n sf t p d . l o g . f i l e s i z e1 G N o t e :u s er d f i l et ov i e w

Restricting access

/ e t c / f t p u s e r s N o t e :u s i n gr d f i l ea n dw r f i l et oa c c e s s/ e t c / f t p u s e r s f t ps t a t

stats

#t or e s e t f t ps t a tz

File Access using HTTP


HTTP Options enable disable
o p t i o n sh t t p d . e n a b l eo n o p t i o n sh t t p d . e n a b l eo f f

o p t i o n sh t t p d . b y p a s s _ t r a v e r s e _ c h e c k i n go n Enabling or disabling the o p t i o n sh t t p d . b y p a s s _ t r a v e r s e _ c h e c k i n go f f bypassing of HTTP traverse checking N o t e :t h i si ss i m i l a rt ot h eF T Pv e r s i o n

root directory Host access

o p t i o n sh t t p d . r o o t d i r/ v o l 0 / h o m e / u s e r s / p a g e s o p t i o n sh t t p d . a c c e s sh o s t = H o s t 1A N Di f = e 3 o p t i o n sh t t p d . a d m i n . a c c e s sh o s t ! = H o s t 1

HTTP Commands
/ e t c / l o g / h t t p d . l o g

Log files

#u s et h eb e l o wt oc h a n g et h el o g f i l ef o r m a t

Log files

o p t i o n sh t t p d . l o g . f o r m a ta l t 1 N o t e :u s er d f i l et ov i e w

redirects pass rule fail rule mime types interface firewall

r e d i r e c t/ c g i b i n / *h t t p : / / c g i h o s t / * p a s s/ i m a g e b i n / * f a i l/ u s r / f o r b i d d e n / * / e t c / h t t p d . m i m e t y p e s N o t e :u s er d f i l ea n dw r f i l et oe d i t i f c o n f i gf 0u n t r u s t e d h t t p s t a t[ d e r s t a ]

stats

#r e s e tt h es t a t s h t t p s t a tz [ d e r t a ]

Network Interfaces
Display
i f c o n f i ga i f c o n f i g< i n t e r f a c e > i f c o n f i ge 0< I PA d d r e s s > i f c o n f i ge 0 a< I PA d d r e s s > #R e m o v eaI PA d d r e s s i f c o n f i ge 30

IP address

subnet mask broadcast media type

i f c o n f i ge 0 an e t m a s k< s u b n e tm a s ka d d r e s s > i f c o n f i ge 0 ab r o a d c a s t< b r o a d c a s ta d d r e s s > i f c o n f i ge 0 am e d i a t y p e1 0 0 t x f d

maximum transmission unit i f c o n f i ge 8m t u s i z e9 0 0 0 (M TU)


i f c o n f i g< i n t e r f a c e _ n a m e >< f l o w c o n t r o l >< v a l u e > #e x a m p l e i f c o n f i ge 8f l o w c o n t r o ln o n e N o t e :v a l u ei st h ef l o wc o n t r o lt y p e .Y o uc a ns p e c i f yt h ef o l l o w i n gv a l u e sf o rt h ef l o w c o n t r o lo p t i o n :

Flow control
n o n e -N of l o wc o n t r o l r e c e i v e-A b l et or e c e i v ef l o wc o n t r o lf r a m e s s e n d -A b l et os e n df l o wc o n t r o lf r a m e s f u l l -A b l et os e n da n dr e c e i v ef l o wc o n t r o lf r a m e s T h ed e f a u l tf l o w c o n t r o lt y p ei sf u l l . i f c o n f i ge 8u n t r u s t e d

trusted

N o t e :Y o uc a ns p e c i f yw h e t h e ran e t w o r ki n t e r f a c ei st r u s t w o r t h yo ru n t r u s t w o r t h y .W h e ny o us p e c i f ya n i n t e r f a c ea su n t r u s t e d( u n t r u s t w o r t h y ) ,a n yp a c k e t sr e c e i v e do nt h ei n t e r f a c ea r el i k e l yt ob ed r o p p e d . i f c o n f i ge 8p a r t n e r< I PA d d r e s s > # #Y o um u s te n a b l et a k e o v e ro ni n t e r f a c ef a i l u r e sb ye n t e r i n gt h ef o l l o w i n gc o m m a n d s : o p t i o n sc f . t a k e o v e r . o n _ n e t w o r k _ i n t e r f a c e _ f a i l u r ee n a b l e i f c o n f i gi n t e r f a c e _ n a m e{ n f o | n f o } n f o E n a b l e sn e g o t i a t e df a i l o v e r n f o D i s a b l e sn e g o t i a t e df a i l o v e r N o t e :I na nH Ap a i r ,y o uc a na s s i g nap a r t n e rI Pa d d r e s st oan e t w o r ki n t e r f a c e .T h en e t w o r ki n t e r f a c e t a k e so v e rt h i sI Pa d d r e s sw h e naf a i l o v e ro c c u r s #C r e a t ea l i a s i f c o n f i ge 0a l i a s1 9 2 . 0 . 2 . 3 0 #R e m o v ea l i a s i f c o n f i ge 0a l i a s1 9 2 . 0 . 2 . 3 0 #B l o c k o p t i o n si n t e r f a c e . b l o c k e d . c i f se 9 o p t i o n si n t e r f a c e . b l o c k e d . c i f se 0 a , e 0 b #U n b l o c k o p t i o n si n t e r f a c e . b l o c k e d . c i f s" " i f s t a t n e t s t a t N o t e :t h e r ea r em a n yo p t i o n st ob o t ht h e s ec o m m a n d ss oIw i l ll e a v et ot h em a np a g e s

HA Pair

Alias

Block/Unblock protocols

Stats

bring up/down an interface

i f c o n f i g< i n t e r f a c e >u p i f c o n f i g< i n t e r f a c e >d o w n

Routing
#u s i n gw r f i l ea n dr d f i l ee d i tt h e/ e t c / r cf i l ew i t ht h eb e l o w

#u s i n gw r f i l ea n dr d f i l ee d i tt h e/ e t c / r cf i l ew i t ht h eb e l o w r o u t ea d dd e f a u l t1 9 2 . 1 6 8 . 0 . 2 5 41

default route

#t h ef u l l/ e t c / r cf i l ew i l ll o o kl i k es o m e t h i n gb e l o w h o s t n a m en e t a p p 1 i f c o n f i ge 01 9 2 . 1 6 8 . 0 . 1 0n e t m a s k2 5 5 . 2 5 5 . 2 5 5 . 0m e d i a t y p e1 0 0 t x f d r o u t ea d dd e f a u l t1 9 2 . 1 6 8 . 0 . 2 5 41 r o u t e do n o p t i o n si p . f a s t p a t h . e n a b l e{ o n | o f f }

enable/disable fast path

N o t e : o n E n a b l e sf a s tp a t h o f f D i s a b l e sf a s tp a t h r o u t e d{ o n | o f f }

enable/disable routing daemon

N o t e : o n T u r n so nt h er o u t e dd a e m o n o f f T u r n so f ft h er o u t e dd a e m o n n e t s t a tr n r o u t es r o u t e ds t a t u s r o u t ea d d1 9 2 . 1 6 8 . 0 . 1 5g a t e w a y . c o m1

Display routing table

Add to routing table

Hosts and DNS


#u s ew r f i l ea n dr d f i l et or e a da n de d i t/ e t c / h o s t sf i l e,i tb a s i c a l l yu s et h es d a m er u l e sa saU n i x #h o s t sf i l e

Hosts

nsswitch file

#u s ew r f i l ea n dr d f i l et or e a da n de d i t/ e t c / n s s w i t c h . c o n ff i l e,i tb a s i c a l l yu s e st h es a m er u l e sa sa #U n i xn s s w i t c h . c o n ff i l e #u s ew r f i l ea n dr d f i l et or e a da n de d i t/ e t c / r e s o l v . c o n ff i l e,i tb a s i c a l l yu s e st h es a m er u l e sa sa #U n i xr e s o l v . c o n ff i l e

DNS

o p t i o n sd n s . e n a b l e{ o n | o f f } N o t e : o n E n a b l e sD N S o f f D i s a b l e sD N S

Domain Name

o p t i o n sd n s . d o m a i n n a m e< d o m a i n > o p t i o n sd n s . c a c h e . e n a b l e o p t i o n sd n s . c a c h e . d i s a b l e

DNS cache

#T of l u s ht h eD N Sc a c h e d n sf l u s h #T os e ed n sc a c h ei n f o r m a t i o n d n si n f o o p t i o n sd n s . u p d a t e . e n a b l e{ o n | o f f | s e c u r e }

DNS updates

N o t e : o n E n a b l e sd y n a m i cD N Su p d a t e s o f f D i s a b l e sd y n a m i cD N Su p d a t e s s e c u r eE n a b l e ss e c u r ed y n a m i cD N Su p d a t e s

o p t i o n sd n s . u p d a t e . t t l< t i m e >

time-to-live (TTL)

#E x a m p l e o p t i o n sd n s . u p d a t e . t t l2 h N o t e :t i m ec a nb es e ti ns e c o n d s( s ) ,m i n u t e s( m ) ,o rh o u r s( h ) ,w i t ham i n i m u mv a l u eo f6 0 0s e c o n d s a n dam a x i m u mv a l u eo f2 4h o u r

VLAN
v l a nc r e a t e[ g{ o n | o f f } ]i f n a m ev l a n i d #C r e a t eV L A N sw i t hi d e n t i f i e r s1 0 ,2 0 ,a n d3 0o nt h ei n t e r f a c ee 4o fas t o r a g es y s t e mb yu s i n gt h e f o l l o w i n gc o m m a n d : v l a nc r e a t ee 41 02 03 0 #C o n f i g u r et h eV L A Ni n t e r f a c ee 4 1 0b yu s i n gt h ef o l l o w i n gc o m m a n d i f c o n f i ge 4 1 01 9 2 . 1 6 8 . 0 . 1 1n e t m a s k2 5 5 . 2 5 5 . 2 5 5 . 0

Create

Add

v l a na d de 44 05 0 #D e l e t es p e c i f i cV L A N v l a nd e l e t ee 43 0 #D e l e t eA l lV L A N so nai n t e r f a c e v l a nd e l e t ee 4

Delete

Enable/Disable GRVP on

v l a nm o d i f yg{ o n | o f f }i f n a m e

Enable/Disable GRVP on VLAN

v l a nm o d i f yg{ o n | o f f }i f n a m e v l a ns t a t< i n t e r f a c e _ n a m e >< v l a n _ i d >

Stat

#E x a m p l e s v l a ns t a te 4 v l a ns t a te 41 0

Interface Groups
#T oc r e a t eas i n g l e m o d ei n t e r f a c eg r o u p ,e n t e rt h ef o l l o w i n gc o m m a n d : i f g r pc r e a t es i n g l eS i n g l e T r u n k 1e 0e 1e 2e 3

Create (single-mode)

#T oc o n f i g u r ea nI Pa d d r e s so f1 9 2 . 1 6 8 . 0 . 1 0a n dan e t m a s ko f2 5 5 . 2 5 5 . 2 5 5 . 0o nt h es i n g l e m o d ei n t e r f a c e g r o u pS i n g l e T r u n k 1 i f c o n f i gS i n g l e T r u n k 11 9 2 . 1 6 8 . 0 . 1 0n e t m a s k2 5 5 . 2 5 5 . 2 5 5 . 0 #T os p e c i f yt h ei n t e r f a c ee 1a sp r e f e r r e d i f g r pf a v o re 1

Create ( multi-mode)

#T oc r e a t eas t a t i cm u l t i m o d ei n t e r f a c eg r o u p ,c o m p r i s i n gi n t e r f a c e se 0 ,e 1 ,e 2 ,a n de 3a n du s i n gM A C #a d d r e s sl o a db a l a n c i n g i f g r pc r e a t em u l t iM u l t i T r u n k 1bm a ce 0e 1e 2e 3 #T oc r e a t ead y n a m i cm u l t i m o d ei n t e r f a c eg r o u p ,c o m p r i s i n gi n t e r f a c e se 0 ,e 1 ,e 2 ,a n de 3a n du s i n gI P #a d d r e s sb a s e dl o a db a l a n c i n g i f g r pc r e a t el a c pM u l t i T r u n k 1bi pe 0e 1e 2e 3

#T oc r e a t et w oi n t e r f a c eg r o u p sa n das e c o n d l e v e li n t e r f a c eg r o u p .I nt h i se x a m p l e ,I Pa d d r e s sl o a d #b a l a n c i n gi su s e df o rt h em u l t i m o d ei n t e r f a c eg r o u p s . i f g r pc r e a t em u l t iF i r s t l e v 1e 0e 1 i f g r pc r e a t em u l t iF i r s t l e v 2e 2e 3 i f g r pc r e a t es i n g l eS e c o n d l e vF i r s t l e v 1F i r s t l e v 2

Create second level intreface group

#T oe n a b l ef a i l o v e rt oam u l t i m o d ei n t e r f a c eg r o u pw i t hh i g h e ra g g r e g a t eb a n d w i d t hw h e no n eo rm o r eo f #t h el i n k si nt h ea c t i v em u l t i m o d ei n t e r f a c eg r o u pf a i l o p t i o n si f g r p . f a i l o v e r . l i n k _ d e g r a d e do n N o t e :Y o uc a nc r e a t eas e c o n d l e v e li n t e r f a c eg r o u pb yu s i n gt w om u l t i m o d ei n t e r f a c eg r o u p s .S e c o n d l e v e l i n t e r f a c eg r o u p se n a b l ey o ut op r o v i d eas t a n d b ym u l t i m o d ei n t e r f a c eg r o u pi nc a s et h ep r i m a r ym u l t i m o d e i n t e r f a c eg r o u pf a i l s . #U s et h ef o l l o w i n gc o m m a n d st oc r e a t eas e c o n d l e v e li n t e r f a c eg r o u pi na nH Ap a i r .I nt h i se x a m p l e , #I P b a s e dl o a db a l a n c i n gi su s e df o rt h em u l t i m o d ei n t e r f a c eg r o u p s . #O nS t o r a g e S y s t e m 1 : i f g r pc r e a t em u l t iF i r s t l e v 1e 1e 2 i f g r pc r e a t em u l t iF i r s t l e v 2e 3e 4 i f g r pc r e a t es i n g l eS e c o n d l e v 1F i r s t l e v 1F i r s t l e v 2

Create second level intreface group in a HA pair

#O nS t o r a g e S y s t e m 2: i f g r pc r e a t em u l t iF i r s t l e v 3e 5e 6 i f g r pc r e a t em u l t iF i r s t l e v 4e 7e 8 i f g r pc r e a t es i n g l eS e c o n d l e v 2F i r s t l e v 3F i r s t l e v 4 #O nS t o r a g e S y s t e m 1 : i f c o n f i gS e c o n d l e v 1p a r t n e rS e c o n d l e v 2 #O nS t o r a g e S y s t e m 2: i f c o n f i gS e c o n d l e v 2p a r t n e rS e c o n d l e v 1 #s e l e c tf a v o u r e di n t e r f a c e i f g r pn o f a v o re 3 #s e l e c tan o n f a v o u r e di n t e r f a c e i f g r pn o f a v o re 3 i f g r pa d dM u l t i T r u n k 1e 4 i f c o n f i gM u l t i T r u n k 1d o w n i f g r pd e l e t eM u l t i T r u n k 1e 4 N o t e :Y o um u s tc o n f i g u r et h ei n t e r f a c eg r o u pt ot h ed o w ns t a t eb e f o r ey o uc a nd e l e t ean e t w o r ki n t e r f a c e f r o mt h ei n t e r f a c eg r o u p i f c o n f i gi f g r p _ n a m ed o w n i f g r pd e s t r o yi f g r p _ n a m e N o t e :Y o um u s tc o n f i g u r et h ei n t e r f a c eg r o u pt ot h ed o w ns t a t eb e f o r ey o uc a nd e l e t ean e t w o r ki n t e r f a c e f r o mt h ei n t e r f a c eg r o u p

Favoured/non-favoured interface

Add

Delete

Destroy

Enable/disable a interface i f c o n f i gi f g r p _ n a m eu p i f c o n f i gi f g r p _ n a m ed o w n group Status Stat


i f g r ps t a t u s[ i f g r p _ n a m e ] i f g r ps t a t[ i f g r p _ n a m e ][ i n t e r v a l ]

Diagnostic Tools

Useful options
#T h r o t t l ep i n g o p t i o n si p . p i n g _ t h r o t t l e . d r o p _ l e v e l< p a c k e t s _ p e r _ s e c o n d > #D i s a b l ep i n gt h r o t t l i n g o p t i o n si p . p i n g _ t h r o t t l e . d r o p _ l e v e l0 o p t i o n si p . i c m p _ i g n o r e _ r e d i r e c t . e n a b l eo n

Ping thottling

Forged IM CP attacks

N o t e :Y o uc a nd i s a b l eI C M Pr e d i r e c tm e s s a g e st op r o t e c ty o u rs t o r a g es y s t e ma g a i n s tf o r g e dI C M Pr e d i r e c t a t t a c k s .

Useful Commands netdiag ping pktt The netdiag command continuously gathers and analyzes statistics, and performs diagnostic tests. These diagnostic tests identify and report problems with your physical network or transport layers and suggest remedial action. You can use the ping command to test whether your storage system can reach other hosts on your network. You can use the pktt command to trace the packets sent and received in the storage system's network.

Вам также может понравиться