NetApp - Disk Administration
NetApp - Disk Administration
NetApp - Disk Administration
NetAppDiskAdministration
NetAppDiskAdministration
InthissectionIwillcoverthediskadministration,Iwillcreateanothersectionforcommondiskandsystemproblems.InthissectionIwillcoverthebasicsonthe
following:
Storage
Disks
Aggregates(RAIDoptions)
Volumes(FlexVolandTraditional)
FlexCache
FlexClone
Deduplication
QTrees
CIFSOplocks
Securitystyles
Quotas
Ihavetriedtocoverasmuchaspossibleinaslittlespace(Iliketokeepthingsshortandsweet),Ihavebrieflytouchedonsomesubjectssoformoredetailsonthese
subjectsIpointyoutotheNetAppdocumentation.AsigetmoreexperiencedwiththeNetAppproductsIwillcomebackandupdatethissection.
Storage
Thestoragecommandcanconfigureandadministrateadiskenclosure,themainstoragecommandsarebelow
Display
storageshowadapter
storageshowdisk[a|x|p|T]
storageshowexpander
storageshowfabric
storageshowfault
storageshowhub
storageshowinitiators
storageshowmc
storageshowport
storageshowshelf
storageshowswitch
storageshowtape[supported]
storageshowacp
storagearrayshow
storagearrayshowports
storagearrayshowluns
storagearrayshowconfig
Enable
storageenableadapter
Disable
storagedisableadapter
Rename switch
storagerename<oldname><newname>
Remove port
storagearrayremoveport<array_name>p<WWPN>
Load Balance
storageloadbalance
Power Cycle
storagepower_cycleshelfh
storagepower_cycleshelfstartc<channelname>
storagepower_cycleshelfcompleted
Disks
YourNetAppfilerwillhaveanumberofdisksattachedthatcanbeused,whenattachedthediskwillhavethefollowingdevicename
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.
ThereareonlyfourtypesofdisksinDataONTAP,IwilldiscussRAIDintheaggregatesection.
Data
Spare
Does not hold usable data but is available to be added to a RAID group in an aggregate, also known as a hot spare
Parity
dParity
Thereareanumberofdiskcommandsthatyoucanuse
diskshow
diskshow<disk_name>
disk_list
Display
sysconfigr
sysconfigd
##listallunnassigned/assigneddisks
diskshown
diskshowa
http://www.datadisk.co.uk/html_docs/netapp/netapp_disk.htm
1/13
6/21/2016
NetAppDiskAdministration
##Addaspecificdisktopool1themirrorpool
diskassign<disk_name>p1
Adding (assigning)
##Assignalldisktopool0,bydefaulttheyareassignedtopool0ifthe"p"
##optionisnotspecififed
diskassignallp0
diskremove<disk_name>
Reassign
diskreassignd<new_sysid>
Replace
diskreplacestart<disk_name><spare_disk_name>
diskreplacestop<disk_name>
Note:usesRapidRAIDRecoverytocopydatafromthespecifiedfilesystemtothe
specifiedsparedisk,youcanstopthisprocessusingthestopcommand
diskzerospares
fail a disk
diskfail<disk_name>
Scrub a disk
diskscrubstart
diskscrubstop
Sanitize
disksanitizestart<disklist>
disksanitizeabort<disk_list>
disksanitizestatus
disksanitizerelease<disk_list>
Note:thereleasemodifiesthestateofthediskfromsanitizetospare.Sanitizerequires
alicense.
Maintanence
diskmaintstartd<disk_list>
diskmaintabort<disk_list>
diskmaintlist
diskmaintstatus
Note:youcantestthediskusingmaintainmode
swap a disk
diskswap
diskunswap
Note:itstallsallSCSII/Ountilyouphysicallyreplaceoraddadisk,canusedonSCSI
diskonly.
Statisics
disk_stat<disk_name>
disksimpull<disk_name>
disksimpushl
disksimpush<completepathofdiskobtainedfromabovecommand>
##Example
ontap1>disksimpushl
Thefollowingpulleddisksareavailableforpushing:
v0.16:NETAPP__:VD1000MBFZ520:14161400:2104448
ontap1>disksimpushv0.16:NETAPP__:VD1000MBFZ520:14161400:2104448
Aggregates
Disksaregroupedtogetherinaggregates,theseaggregatesprovidestoragetothevolumeorvolumesthattheycontain.EachaggregatehasitownRAIDconfiguration,
plexstructureandsetofassigneddisksorarrayLUNs.YoucancreatetraditionalvolumesorNetApp'sFlexVolvolumes(seebelowsectiononvolumes).Therearetwo
typesofaggregate
32bitMaximum16TB
64bitMaximum100TB
Aaggregatehasonlyoneplex(pool0),ifyouuseSyncMirror(licensedproduct)youcanmirrortheaggregateinwhichcaseitwillhavetwoplexes(pool0andpool1).
Diskscanbeassignedtodifferentpoolswhichwillbeusedforhotsparesorextendingaggregatesforthosepools.Theplexesareupdatedsimultaneouslywhenmirroring
aggregatesandneedtoberesynchronizedifyouhaveproblemswithoneoftheplexes.Youcanseehowmirroringworksinthediagrambelow
WhenusingRAID4orRAIDDPthelargestdiskswillbeusedastheparitydisk/s,ifyouaddanewlargerdisktotheaggregate,thiswillbereassignedasthepartity
disk/s.
Anaggregatecanbeinoneofthreestates
Online
Restricted
Some operations, such as parity reconstruction are allowed, but data access is not allowed
Offline
Theaggregatecanhaveanumberofdiffrentstatusvalues
32bit
64bit
aggr
http://www.datadisk.co.uk/html_docs/netapp/netapp_disk.htm
2/13
6/21/2016
NetAppDiskAdministration
copying
degraded
This aggregate is contains at least one RAID group with single disk failure that is not being reconstructed
double degraded
This aggregate is contains at least one RAID group with double disk failure that is not being reconstructed (RAID
DP aggregate only)
foreign
Disks that the aggregate contains were moved to the current storage system from another storage system
growing
initializing
invalid
The aggregate contains no volumes and none can be added. Typically this happend only after an aborted "aggr
copy" operation
ironing
mirror degraded
mirrored
needs check
normal
The aggregate is unmirrored and all of its RAID groups are functional
outofdate
partial
At least one disk was found for the aggregate, but two or more disks are missing
raid0
raid4
raid_dp
reconstruct
redirect
Aggregate reallocation or file reallocation with the "p" option has been started on the aggregate, read
performance will be degraded
resyncing
snapmirror
trad
verifying
wafl inconsistent
Youcanmixthedisksspeedsanddifferenttypeswithintheaggregatemakesureyouchangethebelowoptions
##toallowmixedspeeds
optionsraid.rpm.fcal.enableon
optionsraid.rpm.ata.enableon
##toallowmixeddisktypes(SAS,SATA,FC,ATA)
optionsraid.disktype.enableoff
NowIamonlygoingtodetailthecommoncommandsthatyouusewithaggregates,IwillupdatethissectionandthecheatsheetasIgetmoreexperiencedwiththe
NetAppproduct.
Displaying
aggrstatus
aggrstatusr
aggrstatus<aggregate>[v]
Adding (creating)
##createaggrgatecallednewFCALaggr(noteSASandFCdisksmaybgeused)
aggrcreatenewFCALaggrTFCAL15
Note:
f=overridesthedefaultbehaviorthatdoesnotpermitdisksinaplextobelongtodifferentdiskpools
m=specifiestheoptionalcreationofaSyncMirror
n=displaystheresultsofthecommandbutdoesnotexecuteit
r=maximumsize(numberofdisks)oftheRAIDgroupsforthisaggregate
T=disktypeATA,SATA,SAS,BSAS,FCALorLUN
R=rpmwhichinclude5400,7200,10000and15000
Remove(destroying)
aggroffline<aggregate>
aggrdestroy<aggregate>
Unremoving(undestroying)
aggrundestroy<aggregate>
Rename
aggrrename<oldname><newname>
##Syntax
aggradd<aggr_name>[f][n][g{raid_group_name|new|all}]<disk_list>
Increase size
##addanadditonaldisktoaggregatepfvAggr,use"aggrstatus"togetgroupname
aggrstatuspfvAggrr
aggraddpfvAggrgrg0dv5.25
##Add4300GBdisktoaggregateaggr1
aggraddaggr14@300
offline
aggroffline<aggregate>
online
aggronline<aggregate>
restricted state
aggrrestrict<aggregate>
##todisplaytheaggregatesoptions
aggroptions<aggregate>
##changeaaggregatesraidgroup
http://www.datadisk.co.uk/html_docs/netapp/netapp_disk.htm
3/13
6/21/2016
Change an aggregate
options
NetAppDiskAdministration
aggroptions<aggregate>raidtyperaid_dp
aggroptions<aggregate>raidtyperaid4
##changeaaggregatesraidsize
aggroptions<aggregate>raidsize4
aggrshow_space<aggregate>
Mirror
aggrmirror<aggregate>
Split mirror
aggrsplit<aggregate/plex><new_aggregate>
##Obtainthestatus
aggrcopystatus
##Startacopy
aggrcopystart<aggregatesource><aggregatedestination>
##Abortacopyobtaintheoperationnumberbyusing"aggrcopystatus"
aggrcopyabort<operationnumber>
##Throttlethecopy10=fullspeed,1=onetenthfullspeed
aggrcopythrottle<operationnumber><throttlespeed>
##Mediascrubstatus
aggrmedia_scrubstatus
aggrscrubstatus
##startascruboperation
aggrscrubstart[aggrname|plexname|groupname]
##stopascruboperation
aggrscrubstop[aggrname|plexname|groupname]
##suspendascruboperation
aggrscrubsuspend[aggrname|plexname|groupname]
Scrubbing (parity)
##resumeascruboperation
aggrscrubresume[aggrname|plexname|groupname]
Note:Startsparityscrubbingonthenamedonlineaggregate.Parityscrubbingcomparesthedatadiskstothe
paritydisk(s)intheirRAIDgroup,correctingtheparitydiskscontentsasnecessary.Ifnonameis
given,parityscrubbingisstartedonallonlineaggregates.Ifanaggregatenameisgiven,scrubbingis
startedonallRAIDgroupscontainedintheaggregate.Ifaplexnameisgiven,scrubbingisstartedon
allRAIDgroupscontainedintheplex.
Lookatthefollowingsystemoptions:
raid.scrub.duration360
raid.scrub.enableon
raid.scrub.perf_impactlow
raid.scrub.schedule
##verifystatus
aggrverifystatus
##startaverifyoperation
aggrverifystart[aggrname]
##stopaverifyoperation
aggrverifystop[aggrname]
Verify (mirroring)
##suspendaverifyoperation
aggrverifysuspend[aggrname]
##resumeaverifyoperation
aggrverifyresume[aggrname]
Note:StartsRAIDmirrorverificationonthenamedonlinemirroredaggregate.Ifnonameisgiven,then
RAIDmirrorverificationisstartedonallonlinemirroredaggregates.Verificationcomparesthedatain
bothplexesofamirroredaggregate.Inthedefaultcase,allblocksthatdifferarelogged,butnochanges
aremade.
aggrmedia_scrubstatus
Media Scrub
Note:Printsthemediascrubbingstatusofthenamedaggregate,plex,orgroup.Ifnonameisgiven,then
statusisprintedforallRAIDgroupscurrentlyrunningamediascrub.Thestatusincludesa
percentcompleteandwhetheritissuspended.
Lookatthefollowingsystemoptions:
raid.media_scrub.enableon
raid.media_scrub.rate600
raid.media_scrub.spares.enableon
Volumes
VolumescontainfilesystemsthatholduserdatathatisaccessibleusingoneormoreoftheaccessprotocolssupportedbyDataONTAP,includingNFS,CIFS,HTTP,
FTP,FC,andiSCSI.
Eachvolumedependsonitscontainingaggregateforallitsphysicalstorage,thatis,forallstorageintheaggregatesdisksandRAIDgroups.
AFlexVolvolumeisavolumethatislooselycoupledtoitscontainingaggregate.AFlexVolvolumecanshareitscontainingaggregatewithotherFlexVolvolumes.Thus,
asingleaggregatecanbethesharedsourceofallthestorageusedbyalltheFlexVolvolumescontainedbythataggregate.
BecauseaFlexVolvolumeismanagedseparatelyfromtheaggregate,youcancreatesmallFlexVolvolumes(20MBorlarger),andyoucanincreaseordecreasethesize
ofFlexVolvolumesinincrementsassmallas4KB.
http://www.datadisk.co.uk/html_docs/netapp/netapp_disk.htm
4/13
6/21/2016
NetAppDiskAdministration
WhenaFlexVolvolumeiscreated,itreservesasmallamountofextraspace(approximately0.5percentofitsnominalsize)fromthefreespaceofitscontaining
aggregate.Thisspaceisusedtostorethevolume'smetadata.Therefore,uponcreation,aFlexVolvolumewithaspaceguaranteeofvolumeusesfreespacefromthe
aggregateequaltoitssize1.005.AnewlycreatedFlexVolvolumewithaspaceguaranteeofnoneorfileusesfreespaceequalto.005itsnominalsize.
TherearetwotypesofFlexVolume
32bit
64bit
IfyouwanttouseDataONTAPtomovedatabetweena32bitvolumeanda64bitvolume,youmustusendmpcopyorqtreeSnapMirror.Youcannotusethevolcopy
commandorvolumeSnapMirrorbetweena32bitvolumeanda64bitvolume.
Atraditionalvolumeisavolumethatiscontainedbyasingle,dedicated,aggregate.Itistightlycoupledwithitscontainingaggregate.Noothervolumescangettheir
storagefromthiscontainingaggregate.
Theonlywaytoincreasethesizeofatraditionalvolumeistoaddentirediskstoitscontainingaggregate.Youcannotdecreasethesizeofatraditionalvolume.The
smallestpossibletraditionalvolumeusesallthespaceontwodisks(forRAID4)orthreedisks(forRAIDDP).
Traditionalvolumesandtheircontainingaggregatesarealwaysoftype32bit.Youcannotgrowatraditionalvolumelargerthan16TB.
Youcanchangemanyattributesonavolume
Thenameofthevolume
Thesizeofthevolume(assignedonlyforFlexVolvolumesthesizeoftraditionalvolumesisdeterminedbythesizeandnumberoftheirdisksorarrayLUNs)
Asecuritystyle,whichdetermineswhetheravolumecancontainfilesthatuseUNIXsecurity,filesthatuseNTfilesystem(NTFS)filesecurity,orbothtypesof
files
WhetherthevolumeusesCIFSoplocks(opportunisticlocks)
Thelanguageofthevolume
Thelevelofspaceguarantees(forFlexVolvolumesonly)
Diskspaceandfilelimits(quotas,optional)
ASnapshotcopyschedule(optional)
Whetherthevolumeisarootvolume
Everyvolumehasalanguage.ThelanguageofthevolumedeterminesthecharactersetDataONTAPusestodisplayfilenamesanddataforthatvolume.Changingthe
languageofanexistingvolumecancausesomefilestobecomeinaccessible.
Thelanguageoftherootvolumehasspecialsignificance,becauseitaffectsordeterminesthefollowingitems:
Defaultlanguageforallvolumes
Systemname
Domainname
Consolecommandsandcommandoutput
NFSuserandgroupnames
CIFSsharenames
CIFSuseraccountnames
AccessfromCIFSclientsthatdon'tsupportUnicode
Howconfigurationfilesin/etcareread
Howthehomedirectorydefinitionfileisread
Qtrees
Snapshotcopies
Volumes
Aggregates
Thefollowingtabledisplaysthepossiblestatesforvolumes.
Online
Restricted
Some operations, such as parity reconstruction, are allowed, but data access is not allowed.
Offline
Therearenumberofpossiblestatusvaluesforvolumes
access denied
active redirect
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.
connecting
The caching system is trying to connect to the origin system. (FlexCache volumes only.)
copying
The volume is currently the target of an active vol copy or snapmirror operation.
degraded
The volume's containing aggregate contains at least one degraded RAID group that is not being reconstructed
after single disk failure.
double degraded
The volume's containing aggregate contains at least one degraded RAIDDP group that is not being reconstructed
after double disk failure.
flex
flexcache
foreign
Disks used by the volume's containing aggregate were moved to the current storage system from another storage
system.
growing
initializing
invalid
ironing
lang mismatch
The language setting of the origin volume was changed since the caching volume was created. (FlexCache
volumes only.)
mirror degraded
The volume's containing aggregate is mirrored and one of its plexes is offline or resynchronizing.
http://www.datadisk.co.uk/html_docs/netapp/netapp_disk.htm
5/13
6/21/2016
NetAppDiskAdministration
mirrored
needs check
outofdate
partial
At least one disk was found for the volume's containing aggregate, but two or more disks are missing.
raid0
The volume's containing aggregate consists of RAID0 (no parity) groups (array LUNs only).
raid4
raid_dp
reconstruct
At least one RAID group in the volume's containing aggregate is being reconstructed.
redirect
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 recreated with the same name. Recreate the FlexCache volume to reenable
the FlexCache relationship. (FlexCache volumes only.)
The origin volume is offline or has been deleted. (FlexCache volumes only.)
The origin system is experiencing problems with its NVRAM. (FlexCache volumes only.)
resyncing
One of the plexes of the volume's containing mirrored aggregate is being resynchronized.
snapmirrored
trad
unrecoverable
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.)
verifying
wafl inconsistent
The volume or its containing aggregate has been marked corrupted; contact technical support .
Usually,youshouldleaveCIFSoplocksonforallvolumesandqtrees.Thisisthedefaultsetting.However,youmightturnCIFSoplocksoffundercertaincircumstances.
CIFSoplocks(opportunisticlocks)enabletheredirectoronaCIFSclientincertainfilesharingscenariostoperformclientsidecachingofreadahead,writebehind,and
lockinformation.Aclientcanthenworkwithafile(readorwriteit)withoutregularlyremindingtheserverthatitneedsaccesstothefile.Thisimprovesperformanceby
reducingnetworktraffic.
YoumightturnCIFSoplocksoffonavolumeoraqtreeundereitherofthefollowingcircumstances:
YouareusingadatabaseapplicationwhosedocumentationrecommendsthatCIFSoplocksbeturnedoff.
Youarehandlingcriticaldataandcannotaffordeventheslightestdataloss.
Otherwise,youcanleaveCIFSoplockson.IwilldiscussindetailCIFSandotherFileaccessprotocolsinanothertopic.
CIFS oplock options
cifs.oplocks.enable on
cifs.oplocks.opendelta 0
EveryqtreeandvolumehasasecuritystylesettingNTFS,UNIX,ormixed.ThesettingdetermineswhetherfilesuseWindowsNTorUNIX(NFS)security.Howyou
setupsecuritystylesdependsonwhatprotocolsarelicensedonyourstoragesystem.
Althoughsecuritystylescanbeappliedtovolumes,theyarenotshownasavolumeattribute,andaremanagedforbothvolumesandqtreesusingtheqtreecommand.The
securitystyleforavolumeappliesonlytofilesanddirectoriesinthatvolumethatarenotcontainedinanyqtree.Thevolumesecuritystyledoesnotaffectthesecurity
styleforanyqtreesinthatvolume.
Thefollowingtabledescribesthethreesecuritystylesandtheeffectsofchangingthem.
Security
Style
Description
NTFS
UNIX
Both NTFS and UNIX security are allowed: A file or directory can have
either Windows NT permissions or UNIX permissions.
The default security style of a file is the style most recently used to
set permissions on that file.
Mixed
Finallywegettothecommandsthatareusedtocreateandcontrolvolumes
General Volume Operations (Traditional and FlexVol)
Displaying
volstatus
volstatusv(verbose)
volstatusl(displaylanguage)
Remove (destroying)
voloffline<vol_name>
voldestroy<vol_name>
Rename
volrename<old_name><new_name>
online
volonline<vol_name>
offline
voloffline<vol_name>
restrict
volrestrict<vol_name>
decompress
voldecompressstatus
voldecompressstart<vol_name>
http://www.datadisk.co.uk/html_docs/netapp/netapp_disk.htm
6/13
6/21/2016
NetAppDiskAdministration
voldecompressstop<vol_name>
volmirrorvolname[n][vvictim_volname][f][d<disk_list>]
Mirroring
Note:
Mirrorsthecurrentlyunmirroredtraditionalvolumevolname,eitherwiththespecifiedsetofdisksorwiththe
contentsofanotherunmirroredtraditionalvolumevictim_volname,whichwillbedestroyedintheprocess.
Thevolmirrorcommandfailsifeitherthechosenvolnameorvictim_volnameareflexiblevolumes.Flexiblevolumes
requirethatanyoperationshavingdirectlytodowiththeircontainingaggregatesbehandledviathenewaggrcommand
suite.
Change language
Change maximum number
of files
Change root volume
vollang<vol_name><language>
##Displaymaximumnumberoffiles
maxfiles<vol_name>
##Changemaximumnumberoffiles
maxfiles<vol_name><max_num_files>
voloptions<vol_name>root
volmedia_scrubstatus[volname|plexname|groupnamesdiskname][v]
Media Scrub
Note:Printsthemediascrubbingstatusofthenamedaggregate,volume,plex,orgroup.Ifnonameisgiven,then
statusisprintedforallRAIDgroupscurrentlyrunningamediascrub.Thestatusincludesa
percentcompleteandwhetheritissuspended.
Lookatthefollowingsystemoptions:
raid.media_scrub.enableon
raid.media_scrub.rate600
raid.media_scrub.spares.enableon
Adding (creating)
##Createa200MBvolumeusingtheenglishcharacterset
volcreatenewvollenaggr1200M
##Create50GBflexvolvolume
volcreatevol1aggr150g
#Firstfindtheaggregatethevolumeuses
volcontainerflexvol1
additional disks
##addanadditionaldisktoaggregateaggr1,use"aggrstatus"togetgroupname
aggrstatusaggr1r
aggraddaggr1grg0dv5.25
volsize<vol_name>[+|]n{k|m|g|t}
Resizing
##Increaseflexvol1volumeby100MB
volsizeflexvol1+100m
volautosizevol_name[msize{k|m|g|t}][Isize{k|m|g|t}]on
Automatically resizing
##automaticallygrowby10MBincreamentstomaxof500MB
volautosizeflexvol1m500mI10mon
dfAh
dfL
dfi
Determine size
volsize<vol_name>
voloptions<vol_name>try_first[volume_grow|snap_delete]
Note:
Ifyouspecifyvolume_grow,DataONTAPattemptstoincreasethevolume'ssizebeforedeletinganySnapshotcopies.Data
ONTAPincreasesthevolumesizebasedonspecificationsyouprovidedusingthevolautosizecommand.
Ifyouspecifysnap_delete,DataONTAPattemptstocreatemorefreespacebydeletingSnapshotcopies,before
increasingthesizeofthevolume.DataONTAPdeletesSnapshotcopiesbasedonthespecificationsyouprovidedusing
thesnapautodeletecommand.
volcontainer<vol_name>
volclonecreateclone_vol[snone|file|volume]bparent_vol[parent_snap]
Cloning
volclonesplitstart
volclonesplitstop
volclonesplitestimate
volclonesplitstatus
Note:Thevolclonecreatecommandcreatesaflexiblevolumenamedclone_volonthelocalfilerthatisacloneofa
"backing"flexiblevolumenamedpar_ent_vol.Acloneisavolumethatisawritablesnapshotofanothervolume.
Initially,thecloneanditsparentsharethesamestoragemorestoragespaceisconsumedonlyasonevolumeorthe
otherchanges.
volcopystart[S|ssnapshot]<vol_source><vol_destination>
volcopystatus
volcopyabort<operationnumber>
volcopythrottle<operation_number><throttlevalue101>
##ExampleCopiesthenightlysnapshotnamednightly.1onvolumevol0onthelocalfilertothevolumevol0onremote
##filernamedtoaster1.
volcopystartsnightly.1vol0toaster1:vol0
Copying
Note:Copiesalldata,includingsnapshots,fromonevolumetoanother.IftheSflagisused,thecommandcopiesall
snapshotsinthesourcevolumetothedestinationvolume.Tospecifyaparticularsnapshottocopy,usethesflag
http://www.datadisk.co.uk/html_docs/netapp/netapp_disk.htm
7/13
6/21/2016
NetAppDiskAdministration
followedbythenameofthesnapshot.IfneithertheSnorsflagisusedinthecommand,thefilerautomatically
createsadistinctivelynamedsnapshotatthetimethevolcopystartcommandisexecutedandcopiesonlythatsnapshot
tothedestinationvolume.
Thesourceanddestinationvolumesmusteitherbothbetraditionalvolumesorbothbeflexiblevolumes.Thevolcopy
commandwillabortifanattemptismadetocopybetweendifferentvolumetypes.
Thesourceanddestinationvolumescanbeonthesamefilerorondifferentfilers.Ifthesourceordestinationvolume
isonafilerotherthantheoneonwhichthevolcopystartcommandwasentered,specifythevolumenameinthe
filer_name:volume_nameformat.
adding (creating)
##createtraditionalvolumeusingvolcommand
volcreatetradvol1lentraid4dv5.26v5.27
##Createtraditionalvolumeusing20disks,eachRAIDgroupcanhave10disks
volcreatevol1r1020
voladdvolname[f][n][g<raidgroup>]{ndisks[@size]|d<disk_list>}
additional disks
splitting
##addanotherdisktothealreadyexistingtraditionalvolume
voladdtradvol1dv5.28
aggrsplit<volname/plexname><new_volname>
##Themorenew"aggrscrub"commandispreferred
volscrubstatus[volname|plexname|groupname][v]
Scrubing (parity)
volscrubstart[volname|plexname|groupname][v]
volscrubstop[volname|plexname|groupname][v]
volscrubsuspend[volname|plexname|groupname][v]
volscrubresume[volname|plexname|groupname][v]
Note:Printthestatusofparityscrubbingonthenamedtraditionalvolume,plexorRAIDgroup.Ifnonameisprovided,
thestatusisgivenonallRAIDgroupscurrentlyundergoingparityscrubbing.Thestatusincludesapercentcompleteas
wellasthescrubssuspendedstatus(ifany).
##Themorenew"aggrverify"commandispreferred
##verifystatus
volverifystatus
##startaverifyoperation
volverifystart[aggrname]
Verify (mirroring)
##stopaverifyoperation
volverifystop[aggrname]
##suspendaverifyoperation
volverifysuspend[aggrname]
##resumeaverifyoperation
volverifyresume[aggrname]
Note:StartsRAIDmirrorverificationonthenamedonlinemirroredaggregate.Ifnonameisgiven,then
RAIDmirrorverificationisstartedonallonlinemirroredaggregates.Verificationcomparesthedatain
bothplexesofamirroredaggregate.Inthedefaultcase,allblocksthatdifferarelogged,butnochanges
aremade.
FlexCacheVolumes
AFlexCachevolumeisasparselypopulatedvolumeonalocalstoragesystemthatisbackedbyavolumeonadifferentpossiblyremotestoragesystem,thisvolume
providiesaccesstodataintheremotevolumewithoutrequiringthatallthedatabeinthesparsevoluem.Thisspeedsupdataaccesstoremotedata,becausethecached
datamustbeejectedwhenthedataischanged,thusFlexCachevolumesworkbestfordatathatdoesnotchangeoften.
WhenaclientrequestsdatafromtheFlexCachevolume,thedataisreadfromtheoriginsystemandcachedontheFlexCachevolume,subsequentrequestsforthatdatais
thenserveddirectlyfromtheFlexCachevolume.Thisincreasesperformanceasdatanolongerneedstocomeacrossthewire(network).Sometimesapicturebest
describesthings
InordertouseFlexCachevolumestherearesomerequirements:
DataONTAPversion7.0.5orlater(cachingserver)
http://www.datadisk.co.uk/html_docs/netapp/netapp_disk.htm
8/13
6/21/2016
NetAppDiskAdministration
AvalidFlexCachelicense(cachingserver)
AvalidNFSlicensewithNFSenabled(cachingserver)
DataONTAPversion7.0.5orlater(originserver)
Theflexcache.accessoptionsettoallowaccesstoFlexCachevolumes(origin)
Theflexcache.enableoptionssettoon
TheFlexCachevolumemustbeaFlexVolvolume,theoriginvolumecanbeaFlexVoloratraditionalvolume.
TheFlexCachevolumeandoriginvolumecanbeeither32bitor64bit
Youcanhaveamaximumof100FlexCachevolumesonastoragesystem.Inaddition,therearecertainfeaturesofDataONTAPthatarenotavailableonFlexCache
volumes,andothersthatarenotavailableonvolumesthatarebackingFlexCachevolumes.
YoucannotusethefollowingDataONTAPcapabilitiesonFlexCachevolumes(theselimitationsdonotapplytotheoriginvolumes):
ClientaccessusinganyprotocolotherthanNFSv2orNFSv3
ClientaccessusingIPv6
Snapshotcopycreation
SnapRestore
SnapMirror(qtreeorvolume)
SnapVaultFlex
Clonevolumecreation
Thendmpcommand
Quotas
Qtrees
Volumecopy
Deduplication
CreationofFlexCachevolumesinanyvFilerunitotherthanvFiler0
CreationofFlexCachevolumesinthesameaggregateastheiroriginvolume
MountingtheFlexCachevolumeasareadonlyvolume
AsmentionedabovetheFlexCachevolumemustbeaFlexVolvolume,theoriginvolumecanbeaFlexVoloratraditionalvolume.MustFlexCachevolumesaresetupto
automaticallygrow,thusachievingthebestperformance.FlexCachevolumesbydefaultreserve100MBofspacethiscanbechangedbythebelowoptionbutitisadvised
toleaveitatitsdefaultvalue.
FlexCache default reserve
voloptionsflexcache_min_reserved
space
WhenyouputmultipleFlexCachevolumesinthesameaggregate,eachFlexCachevolumereservesonlyasmallamountofspace(asspecifiedbythe
flexcache_min_reservedvolumeoption.Therestofthespaceisallocatedasneeded.ThismeansthatahotFlexCachevolume(onethatisbeingaccessedheavily)is
permittedtotakeupmorespace,whileaFlexCachevolumethatisnotbeingaccessedasoftenwillgraduallybereducedinsize.Whenanaggregatecontaining
FlexCachevolumesrunsoutoffreespace,DataONTAPrandomlyselectsaFlexCachevolumeinthataggregatetobetruncated.Truncationmeansthatfilesareejected
fromtheFlexCachevolumeuntilthesizeofthevolumeisdecreasedtoapredeterminedpercentageofitsformersize.
IfyouhaveregularFlexVolvolumesinthesameaggregateasyourFlexCachevolumes,andyoustarttofilluptheaggregate,theFlexCachevolumescanlosesomeof
theirunreservedspace(iftheyarenotcurrentlyusingit).Inthiscase,whentheFlexCachevolumeneedstofetchanewdatablockanditdoesnothaveenoughfreespace
toaccommodateit,adatablockisejectedfromoneoftheFlexCachevolumestomakeroomforthenewdatablock.
YoucancontrolhowtheFlexCachevolumefunctionswhenconnectivitybetweenthecachingandoriginsystemsislostbyusingthedisconnected_modeand
acdisconnectedvolumeoptions.Thedisconnected_modevolumeoptionandtheacdisconnectedtimeout,combinedwiththeregularTTLtimeouts(acregmax,acdirmax,
acsymmax,andactimeo),enableyoutocontrolthebehavioroftheFlexCachevolumewhencontactwiththeoriginvolumeislost.
disconnected_mode
acdisconnected
Disconnect options
## To list all options of a FlexCache volume
vol options <flexcache_name>
AfileisthebasicobjectinaFlexCachevolume,butsometimesonlysomeofafile'sdataiscached.Ifthedataiscachedandvalid,areadrequestforthatdataisfulfilled
withoutaccesstotheoriginvolume.WhenadatablockfromaspecificfileisrequestedfromaFlexCachevolume,thentheattributesofthatfilearecached,andthatfile
isconsideredtobecached,evenifnotallofitsdatablocksare
present.Ifanypartofafileischanged,theentirefileisinvalidatedandejectedfromthecache.Forthisreason,datasetsconsistingofonelargefilethatisfrequently
updatedmightnotbegoodcandidatesforaFlexCacheimplementation.
CacheconsistenancyforFlexCachevolumesisachievedbyusingthreetechniques
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 timeout.
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.
http://www.datadisk.co.uk/html_docs/netapp/netapp_disk.htm
9/13
6/21/2016
NetAppDiskAdministration
IhaveonlytouchedlightlyonCacheconsistenancyandsuggestthatyoucheckthedocumentationandoptionsthatareavailable.
ThefollowingtableliststhestatusmessagesyoumightseeforaFlexCachevolume
access denied
The origin system is not allowing FlexCache access. Check the setting of the flexcache.access option on the origin
system.
connecting
lang mismatch
The language setting of the origin volume was changed since the FlexCache volume was created.
The origin volume was deleted and recreated with the same name. Recreate the FlexCache volume to reenable
the FlexCache relationship.
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.
Nowforthecommands
volstatus
volstatusv<flexcache_name>
Display
##Howtodisplaytheoptionsavailableandwhattheyaresetto
volhelpoptions
voloptions<flexcache_name>
dfL
##Syntax
volcreate<flexcache_name><aggr>[size{k|m|g|t}]Sorigin:source_vol
Adding (Create)
##CreateaFlexCachevolumecalledflexcache1withautogrowinaggr1aggregatewiththe
sourcevolumevol1
##onstoragenetapp1server
volcreateflexcache1aggr1Snetapp1:vol1
Removing (destroy)
voloffline<flexcache_name>
voldestroy<flexcache_name>
Automatically resizing
voloptions<flexcache_name>flexcache_autogrow[on|off]
flexcacheeject<path>[f]
##Clientstats
flexcachestatsC<flexcache_name>
Statistics
##Serverstats
flexcachestatsS<volume_name>c<client>
##Filestats
flexcachefstat<path>
FlexCloneVolumes
FlexClonevolumesarewritable,pointintimecopiesofaparentFlexVolvolume.Often,youcanmanagethemasyouwouldaregularFlexVolvolume,buttheyalso
havesomeextracapabilitiesandrestrictions.
ThefollowinglistoutlinessomekeyfactsaboutFlexClonevolumes:
AFlexClonevolumeisapointintime,writablecopyoftheparentvolume.ChangesmadetotheparentvolumeaftertheFlexClonevolumeiscreatedarenot
reflectedintheFlexClonevolume.
FlexClonevolumesarefullyfunctionalvolumesyoumanagethemusingthevolcommand,justasyoudotheparentvolume.
FlexClonevolumesalwaysexistinthesameaggregateastheirparentvolumes.
TraditionalvolumescannotbeusedasparentvolumesforFlexClonevolumes.Tocreateacopyofatraditionalvolume,youmustusethevolcopycommand,which
createsadistinctcopythatusesadditionalstoragespaceequivalenttotheamountofstoragespaceusedbythevolumeyoucopied.
FlexClonevolumescanthemselvesbeclonedtocreateanotherFlexClonevolume.
FlexClonevolumesandtheirparentvolumessharethesamediskspaceforanycommondata.ThismeansthatcreatingaFlexClonevolumeisinstantaneousand
requiresnoadditionaldiskspace(untilchangesaremadetotheFlexClonevolumeoritsparent).
AFlexClonevolumeiscreatedwiththesamespaceguaranteeasitsparent.ThespaceguaranteesettingisenforcedforthenewFlexClonevolumeonlyifthereis
enoughspaceinthecontainingaggregate.
AFlexClonevolumeiscreatedwiththesamespacereservationandfractionalreservesettingsasitsparent.
WhileaFlexClonevolumeexists,someoperationsonitsparentarenotallowed.
YoucansevertheconnectionbetweentheparentvolumeandtheFlexClonevolume.ThisiscalledsplittingtheFlexClonevolume.Splittingremovesallrestrictions
ontheparentvolumeandcausestheFlexClonetouseitsownadditionaldiskspaceratherthansharingspacewithitsparent.
QuotasappliedtotheparentvolumearenotautomaticallyappliedtotheFlexClonevolume.
WhenaFlexClonevolumeiscreated,anyLUNspresentintheparentvolumearepresentintheFlexClonevolumebutareunmappedandoffline.
Thefollowingrestrictionsapplytoparentvolumesortheirclones:
YoucannotdeletethebaseSnapshotcopyinaparentvolumewhileaFlexClonevolumeusingthatSnapshotcopyexists.ThebaseSnapshotcopyistheSnapshot
copythatwasusedtocreatetheFlexClonevolume,andismarkedbusy,vcloneintheparentvolume.
YoucannotperformavolumeSnapRestoreoperationontheparentvolumeusingaSnapshotcopythatwastakenbeforethebaseSnapshotcopywastaken.
Youcannotdestroyaparentvolumeifanycloneofthatvolumeexists.
YoucannotcreateaFlexClonevolumefromaparentvolumethathasbeentakenoffline,althoughyoucantaketheparentvolumeofflineafterithasbeencloned.
YoucannotperformavolcopycommandusingaFlexClonevolumeoritsparentasthedestinationvolume.
IftheparentvolumeisaSnapLockCompliancevolume,theFlexClonevolumeinheritstheexpirationdateoftheparentvolumeatthetimeofthecreationofthe
FlexClonevolume.TheFlexClonevolumecannotbedeletedbeforeitsexpirationdate.
TherearesomelimitationsonhowyouuseSnapMirrorwithFlexClonevolumes.
AFlexClonevolumeinheritsitsinitialspaceguaranteefromitsparentvolume.Forexample,ifyoucreateaFlexClonevolumefromaparentvolumewithaspace
guaranteeofvolume,thentheFlexClonevolume'sinitialspaceguaranteewillbevolumealso.YoucanchangetheFlexClonevolume'sspaceguarantee.
Forexample,supposethatyouhavea100MBFlexVolvolumewithaspaceguaranteeofvolume,with70MBusedand30MBfree,andyouusethatFlexVolvolumeas
http://www.datadisk.co.uk/html_docs/netapp/netapp_disk.htm
10/13
6/21/2016
NetAppDiskAdministration
aparentvolumeforanewFlexClonevolume.ThenewFlexClonevolumehasaninitialspaceguaranteeofvolume,butitdoesnotrequireafull100MBofspacefrom
theaggregate,asitwouldifyouhadcopiedthevolume.Instead,theaggregateneedstoallocateonly30MB(100MBminus70MB)offreespacetotheclone.
Ifyouhavemultiplecloneswiththesameparentvolumeandaspaceguaranteeofvolume,theyallsharethesamesharedparentspacewitheachother,sothespace
savingsareevengreater.
YoucanidentifyasharedSnapshotcopybylistingtheSnapshotcopiesintheparentvolumewiththesnaplistcommand.AnySnapshotcopythatappearsasbusy,vclone
intheparentvolumeandisalsopresentintheFlexClonevolumeisasharedSnapshotcopy.
SplittingaFlexClonevolumefromitsparentremovesanyspaceoptimizationsthatarecurrentlyemployedbytheFlexClonevolume.Afterthesplit,boththeFlexClone
volumeandtheparentvolumerequirethefullspaceallocationdeterminedbytheirspaceguarantees.TheFlexClonevolumebecomesanormalFlexVolvolume.
CreatingFlexClonefilesorFlexCloneLUNsishighlyspaceefficientandtimeefficientbecausethecloningoperationdoesnotinvolvephysicallycopyinganydata.You
cancreateacloneofafilethatispresentinaFlexVolvolumeinaNASenvironment,andyou
canalsocloneacompleteLUNwithouttheneedofabackingSnapshotcopyinaSANenvironment.Theclonedcopiesinitiallysharethesamephysicaldatablockswith
theirparentsandoccupynegligibleextraspaceinthestoragesystemfortheirinitialmetadata.
Display
volstatus
volstatus<flexclone_name>v
dfLh
adding (create)
##Syntax
volclonecreateclone_name[s{volume|file|none}]bparent_name[parent_snap]
##createaflexclonecalledflexclone1fromtheparentflexvol1
volclonecreateflexclone1bflexvol1
Removing (destroy)
voloffline<flexclone_name>
voldestroy<flexclone_name>
##Determinethefreespacerequiredtoperformthesplit
volclonesplitestimate<flexclone_name>
##Doublecheckyouhavethespace
dfAh
splitting
##Performthesplit
volclonesplitstart<flexclone_name>
##Checkuponitsstatus
volcolnesplitstatus<flexclone_name>
##Stopthesplit
volclonesplitstop<flexclone_name>
/etc/log/clone
log file
Theclonelogfilerecordsthefollowinginformation:
CloningoperationID
Thenameofthevolumeinwhichthecloningoperationwasperformed
Starttimeofthecloningoperation
Endtimeofthecloningoperation
Parentfile/LUNandclonefile/LUNnames
Parentfile/LUNID
Statusofthecloneoperation:successful,unsuccessful,orstoppedandsomeotherdetails
IhaveonlybrieflytouchedonFlexCloningsoIadviseyoutotakeapeekatthedocumentationforafulldescription,includingtheFlexClonefile,FlexCloneLUNand
rapidcloningutilityforVMWare.
SpaceSaving
ONTAPDatahasanadditionalfeaturecalleddeduplication,itimprovesphysicalstoragespacebyeliminatingduplicatedatablockswithinaFlexVolvolume.
Deduplicationworksattheblocklevelontheactivefilesystem,andusestheWAFLblocksharingmechanism.Eachblockofdatahasadigitalsignaturethatiscompared
withallothersignaturesinadatavolume.Ifanexactblockmatchexists,theduplicateblockisdiscardedanditsdiskspaceisreclaimed.
Youcanconfigurededuplicationoperationstorunautomaticallyoronaschedule.Youcandeduplicatenewandexistingdata,oronlynewdata,onaFlexVolvolume.You
dorequirealicensetoenablededuplication.
DataONTAPwritesalldatatoastoragesystemin4KBblocks.WhendeduplicationrunsforthefirsttimeonaFlexVolvolumewithexistingdata,itscansalltheblocks
intheFlexVolvolumeandcreatesadigitalfingerprintforeachoftheblocks.EachofthefingerprintsiscomparedtoallotherfingerprintswithintheFlexVolvolume.If
twofingerprintsarefoundtobeidentical,abyteforbytecomparisonisdoneforalldatawithintheblock.Ifthebyteforbytecomparisondetectsidenticalfingerprints,
thepointertothedatablockisupdated,andtheduplicateblockisfreed.
Deduplicationrunsontheactivefilesystem.Therefore,asadditionaldataiswrittentothededuplicatedvolume,fingerprintsarecreatedforeachnewblockandwrittento
achangelogfile.Forsubsequentdeduplicationoperations,thechangelogissortedandmergedwiththefingerprintfile,andthededuplicationoperationcontinueswith
fingerprintcomparisonsaspreviouslydescribed.
sisstarts<path>
stop deduplication
operation
sisstop<path>
sisconfigs<schedule><path>
sisconfigsmonfri@23/vol/flexvol1
Note:scheduleliststhedaysandhoursofthedaywhendeduplicationruns.Theschedule
canbeofthefollowingforms:
schedule deduplication
http://www.datadisk.co.uk/html_docs/netapp/netapp_disk.htm
11/13
6/21/2016
NetAppDiskAdministration
day_list[@hour_list]
Ifhour_listisnotspecified,deduplicationrunsatmidnightoneachscheduledday.
hour_list[@day_list]
Ifday_listisnotspecified,deduplicationrunseverydayatthespecifiedhours.
Ahyphen()disablesdeduplicationoperationsforthespecifiedFlexVolvolume.
enabling
sison<path>
disabling
sisoff<path>
status
sisstatusl<path>
dfs<path>
AgainIhaveonlybrieflytouichedonthissubject,formoredetailscheckoutthedocumentation.
QTrees
Qtreesenableyoutopartitionyourvolumesintosmallersegmentsthatyoucanmanageindividually.Youcansetaqtree'ssizeorsecuritystyle,backitup,andrestoreit.
Youuseqtreestopartitionyourdata.Youmightcreateqtreestoorganizeyourdata,ortomanageoneormoreofthefollowingfactors:quotas,backupstrategy,security
style,andCIFSoplockssetting.
Thefollowinglistdescribesexamplesofqtreeusagestrategies:
QuotasYoucanlimitthesizeofthedatausedbyaparticularproject,byplacingallofthatproject'sfilesintoaqtreeandapplyingatreequotatotheqtree.
BackupsYoucanuseqtreestokeepyourbackupsmoremodular,toaddflexibilitytobackupschedules,ortolimitthesizeofeachbackuptoonetape.
SecuritystyleIfyouhaveaprojectthatneedstouseNTFSstylesecurity,becausethemembersoftheprojectuseWindowsfilesandapplications,youcangroup
thedataforthatprojectinaqtreeandsetitssecuritystyletoNTFS,withoutrequiringthatotherprojectsalsousethesamesecuritystyle.
CIFSoplockssettingsIfyouhaveaprojectusingadatabasethatrequiresCIFSoplockstobeoff,youcansetCIFS
oplockstoOffforthatproject'sqtree,whileallowingotherprojectstoretainCIFSoplocks.
ThetablebelowcomparesqtreewithFlexVolandTraditionalvolumes
Functionality
QTree
FlexVolume
Traditional Volume
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
No
Can be resized
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Supports quotas
Can be cloned
No (except as part of a
FlexVol volume)
Yes
No
Nowforthecommands
qtreestatus[i][v]
Display
adding (create)
Note:
TheioptionincludestheqtreeIDnumberinthedisplay.
ThevoptionincludestheowningvFilerunit,iftheMultiStorelicenseisenabled.
##Syntaxbydefaultwafl.default_qtree_modeoptionisused
qtreecreatepath[mmode]
##createanewsqtreeinthe/vol/usersvolumeusing770aspermissions
qtreecreate/vol/users/newsm770
Remove
rmRf<directory>
Rename
mv<old_name><new_name>
##Movethedirectorytoadifferentdirectory
mv/n/joel/vol1/dir1/n/joel/vol1/olddir
##Createtheqtree
qtreecreate/n/joel/vol1/dir1
##MovethecontentsoftheolddirectorybackintothenewQTree
mv/n/joel/vol1/olddir/*/n/joel/vol1/dir1
##Removetheolddirectoryname
rmdir/n/joel/vol1/olddir
qtreestats[z][vol_name]
stats
Note:
z=zerostats
CIFSOplocks
CIFSoplocksreducenetworktrafficandimprovestoragesystemperformance.However,insomesituations,youmightneedtodisablethem.YoucandisableCIFS
oplocksfortheentirestoragesystemorforaspecificvolumeorqtree.
Usually,youshouldleaveCIFSoplocksonforallvolumesandqtrees.Thisisthedefaultsetting.However,youmightturnCIFSoplocksoffundercertaincircumstances.
CIFSoplocks(opportunisticlocks)enabletheredirectoronaCIFSclientincertainfilesharingscenariostoperformclientsidecachingofreadahead,writebehind,and
http://www.datadisk.co.uk/html_docs/netapp/netapp_disk.htm
12/13
6/21/2016
NetAppDiskAdministration
lockinformation.Aclientcanthenworkwithafile(readorwriteit)withoutregularlyremindingtheserverthatitneedsaccesstothefile.Thisimprovesperformanceby
reducingnetworktraffic.
YoumightturnCIFSoplocksoffonavolumeoraqtreeundereitherofthefollowingcircumstances:
YouareusingadatabaseapplicationwhosedocumentationrecommendsthatCIFSoplocksbeturnedoff.
Youarehandlingcriticaldataandcannotaffordeventheslightestdataloss
Otherwise,youcanleaveCIFSoplockson.
Enabling/Disabling for
entire storage
cifs.oplocks.enableon
cifs.oplocks.enableoff
Enabling/Disabling for
qtrees
qtreeoplocks/vol/vol2/projenable
qtreeoplocks/vol/vol2/projdisable
SecurityStyles
Youmightneedtochangethesecuritystyleofanewvolumeorqtree.Additionally,youmightneedtoaccommodateotherusersforexample,ifyouhadanNTFSqtree
andsubsequentlyneededtoincludeUNIXfilesandusers,youcouldchangethesecuritystyleofthatqtreefromNTFStomixed.
MakesuretherearenoCIFSusersconnectedtosharesontheqtreewhosesecuritystyleyouwanttochange.Ifthereare,youcannotchangeUNIXsecuritystyleto
mixedorNTFS,andyoucannotchangeNTFSormixedsecuritystyletoUNIX.
##Syntax
qtreesecuritypath{unix|ntfs|mixed}
##Changethesecuritystyleof/vol/users/docstomixed
qtreesecurity/vol/users/docsmixed
Alsoseevolumesaboveformoreinformationaboutsecuritystyles
Quotas
Quotasprovideawaytorestrictortrackthediskspaceandnumberoffilesusedbyauser,group,orqtree.Youspecifyquotasusingthe/etc/quotasfile.Quotasare
appliedtoaspecificvolumeorqtree.
Youcanusequotastolimitresourceusage,toprovidenotificationwhenresourceusagereachesspecificlevels,orsimplytotrackresourceusage.
Youspecifyaquotaforthefollowingreasons:
Tolimittheamountofdiskspaceorthenumberoffilesthatcanbeusedbyauserorgroup,orthatcanbecontainedbyaqtree
Totracktheamountofdiskspaceorthenumberoffilesusedbyauser,group,orqtree,withoutimposingalimit
Towarnuserswhentheirdiskusageorfileusageishigh
QuotascancauseDataONTAPtosendanotification(softquota)ortopreventawriteoperationfromsucceeding(hardquota)whenquotasareexceeded.WhenData
ONTAPreceivesarequesttowritetoavolume,itcheckstoseewhetherquotasareactivatedforthatvolume.Ifso,DataONTAPdetermineswhetheranyquotaforthat
volume(and,ifthewriteistoaqtree,forthatqtree)wouldbeexceededbyperformingthewriteoperation.Ifanyhardquotawouldbeexceeded,thewriteoperationfails,
andaquotanotificationissent.Ifanysoftquotawouldbeexceeded,thewriteoperationsucceeds,andaquotanotificationissent.
Quotas
configuration /mroot/etc/quotas
file
Example
quota file
##
hardlimit|thres|softlimit
##QuotaTarget
typediskfiles|hold|diskfile
##
*tree@/vol/vol0#monitorusageonallqtreesinvol0
/vol/vol2/qtreetree1024K75k#enforceqtreequotausingkb
tinhuser@/vol/vol2/qtree1100M#enforceusersquotainspecifiedqtree
dbagroup@/vol/ora/qtree1100M#enforcegroupquotainspecifiedqtree
#*=defaultuser/group/qtree
#=placeholder,nolimitenforced,justenablestatscollection
Note:youhavelotsofpermutations,socheckoutthedocumentation
Displaying
quotareport[<path>]
quotaon[w]<vol_name>
Activating
Note:
w=returnonlyaftertheentirequotasfilehasbeenscanned
Deactivitating quotaoff[w]<vol_name>
Reinitializing
Resizing
quotaoff[w]<vol_name>
quotaon[w]<vol_name>
quotaresize<vol_name>
Note:thiscommandsrereadsthequotafile
Deleting
editthequotafile
quotaresize<vol_name>
http://www.datadisk.co.uk/html_docs/netapp/netapp_disk.htm
13/13