NetApp - Disk Administration

Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

6/21/2016

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

holds data stored within the RAID group

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

Store data reconstruction information within the RAID group

dParity

Stores doubleparity information within the RAID group, if RAIDDP is enabled

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

Remove (spin down disk)

diskremove<disk_name>

Reassign

diskreassignd<new_sysid>

Replace

diskreplacestart<disk_name><spare_disk_name>
diskreplacestop<disk_name>
Note:usesRapidRAIDRecoverytocopydatafromthespecifiedfilesystemtothe
specifiedsparedisk,youcanstopthisprocessusingthestopcommand

Zero spare disks

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>

Simulate a pulled disk

disksimpull<disk_name>
disksimpushl
disksimpush<completepathofdiskobtainedfromabovecommand>

Simulate a pushed disk

##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

Read and write access to volumes is allowed

Restricted

Some operations, such as parity reconstruction are allowed, but data access is not allowed

Offline

No access to the aggregate is allowed

Theaggregatecanhaveanumberofdiffrentstatusvalues
32bit

This aggregate is a 32bit aggregate

64bit

This aggregate is a 64bit aggregate

aggr

This aggregate is capable of contain FlexVol volumes

http://www.datadisk.co.uk/html_docs/netapp/netapp_disk.htm

2/13

6/21/2016

NetAppDiskAdministration

copying

This aggregate is currently the target aggregate of an active copy operation

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

Disks are in the process of being added to the aggregate

initializing

The aggregate is in the process of being initialized

invalid

The aggregate contains no volumes and none can be added. Typically this happend only after an aborted "aggr
copy" operation

ironing

A WAFL consistency check is being performewd on the aggregate

mirror degraded

The aggregate is mirrored and one of its plexes is offline or resynchronizing

mirrored

The aggregate is mirrored

needs check

WAFL consistency check needs to be performed on the aggregate

normal

The aggregate is unmirrored and all of its RAID groups are functional

outofdate

The aggregate is mirrored and needs to be resynchronized

partial

At least one disk was found for the aggregate, but two or more disks are missing

raid0

The aggrgate consists of RAID 0 (no parity) RAID groups

raid4

The agrregate consists of RAID 4 RAID groups

raid_dp

The agrregate consists of RAIDDP RAID groups

reconstruct

At least one RAID group in the aggregate is being reconstructed

redirect

Aggregate reallocation or file reallocation with the "p" option has been started on the aggregate, read
performance will be degraded

resyncing

One of the mirror aggregates plexes is being resynchronized

snapmirror

The aggregate is a SnapMirror replica of another aggregate (traditional volumes only)

trad

The aggregate is a traditional volume and cannot contain FlexVol volumes.

verifying

A mirror operation is currently running on the aggregate

wafl inconsistent

The aggregate has been marked corrupted; contact techincal support

Youcanmixthedisksspeedsanddifferenttypeswithintheaggregatemakesureyouchangethebelowoptions

Mixed disk speeds and


types

##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]

Check you have spare disks aggrstatuss


##Syntaxifnooptionisspecifiedthenthedefultisused
aggrcreate<aggr_name>[f][m][n][t{raid0|raid4|raid_dp}][rraid_size][Tdisk_type][Rrpm>][L][B{32|64}]<disk_list>
##createaggregatecallednewaggrthatcanhaveamaximumof8RAIDgroups
aggrcreatenewaggrr8d8a.168a.178a.188a.19
##createaggregatedcallednewfastaggrusing20x15000rpmdisks
aggrcreatenewfastaggrR1500020

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

show space usage

aggrshow_space<aggregate>

Mirror

aggrmirror<aggregate>

Split mirror

aggrsplit<aggregate/plex><new_aggregate>
##Obtainthestatus
aggrcopystatus

Copy from one agrregate to


another

##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

Read and write access to this volume is allowed.

Restricted

Some operations, such as parity reconstruction, are allowed, but data access is not allowed.

Offline

No access to the volume is allowed.

Therearenumberofpossiblestatusvaluesforvolumes
access denied

The origin system is not allowing access. (FlexCache volumes


only.)

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

The volume is a FlexVol volume.

flexcache

The volume is a FlexCache volume.

foreign

Disks used by the volume's containing aggregate were moved to the current storage system from another storage
system.

growing

Disks are being added to the volume's containing aggregate.

initializing

The volume's containing aggregate is being initialized.

invalid

The volume does not contain a valid file system.

ironing

A WAFL consistency check is being performed on the volume's containing aggregate.

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

The volume's containing aggregate is mirrored.

needs check

A WAFL consistency check needs to be performed on the volume's containing aggregate.

outofdate

The volume's containing aggregate is mirrored and needs to be resynchronized.

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

The volume's containing aggregate consists of RAID4 groups.

raid_dp

The volume's containing aggregate consists of RAIDDP groups.

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.

rem vol changed

The origin volume was deleted and recreated with the same name. Recreate the FlexCache volume to reenable
the FlexCache relationship. (FlexCache volumes only.)

rem vol unavail

The origin volume is offline or has been deleted. (FlexCache volumes only.)

remote nvram err

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

The volume is in a SnapMirror relationship with another volume.

trad

The volume is a traditional volume.

unrecoverable

The volume is a FlexVol volume that has been marked unrecoverable; contact technical support.

unsup remote vol

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

RAID mirror verification is running on the volume's containing aggregate.

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

Effect of changing to this style

For CIFS clients, security is handled using Windows NTFS ACLs.

NTFS

If the change is from a mixed qtree, Windows NT permissions determine


file access for a file that had Windows NT permissions. Otherwise,
For NFS clients, the NFS UID (user id) is mapped to a Windows SID
UNIXstyle (NFS) permission bits determine file access for files created
(security identifier) and its associated groups. Those mapped credentials
before the change.
are used to determine file access, based on the NFTS ACL.
Note: To use NTFS security, the storage system must be licensed for
CIFS. You cannot use an NFS client to change file or directory
permissions on qtrees with the NTFS security style.

UNIX

Note: If the change is from a CIFS storage system to a multiprotocol


storage system, and the /etc directory is a qtree, its security style
changes to NTFS.

Files and directories have UNIX permissions.

The storage system disregards any Windows NT permissions established


previously and uses the UNIX permissions exclusively.

Both NTFS and UNIX security are allowed: A file or directory can have
either Windows NT permissions or UNIX permissions.

If NTFS permissions on a file are changed, the storage system


recomputes UNIX permissions on that file.

The default security style of a file is the style most recently used to
set permissions on that file.

If UNIX permissions or ownership on a file are changed, the storage


system deletes any NTFS 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

FlexVol Volume Operations (only)


##Syntax
volcreatevol_name[llanguage_code][s{volume|file|none}]<aggr_name>size{k|m|g|t}

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

Determine free space and


Inodes

dfAh
dfL
dfi

Determine size

volsize<vol_name>
voloptions<vol_name>try_first[volume_grow|snap_delete]

automatic free space


preservation

Note:
Ifyouspecifyvolume_grow,DataONTAPattemptstoincreasethevolume'ssizebeforedeletinganySnapshotcopies.Data
ONTAPincreasesthevolumesizebasedonspecificationsyouprovidedusingthevolautosizecommand.
Ifyouspecifysnap_delete,DataONTAPattemptstocreatemorefreespacebydeletingSnapshotcopies,before
increasingthesizeofthevolume.DataONTAPdeletesSnapshotcopiesbasedonthespecificationsyouprovidedusing
thesnapautodeletecommand.

display a FlexVol volume's


containing aggregate

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.

Traditional Volume Operations (only)


vol|aggrcreatevol_namev[llanguage_code][f][m][n][v][t{raid4|raid_dp}][rraidsize][Tdisktype]R
rpm][L]disklist

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.

Attribute cache timeouts


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.

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

The caching system is trying to connect to the origin system.

lang mismatch

The language setting of the origin volume was changed since the FlexCache volume was created.

rem vol changed

The origin volume was deleted and recreated with the same name. Recreate the FlexCache volume to reenable
the FlexCache relationship.

rem vol unavail

The origin volume is offline or has been deleted.

remote nvram err

The origin system is experiencing problems with its NVRAM.

unsup remote vol

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

Display free space

##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]

Eject file from cache

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>

start/restart deduplication sisstarts/vol/flexvol1


operation
##Usepreviouscheckpoint
sisstartsp<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>

Display saved space

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

Enables organizing user data

Yes

Yes

Yes

Enables grouping users with similar needs

Yes

Yes

Yes

Accepts a secruity style

Yes

Yes

Yes

Accepts oplocks configuration

Yes

Yes

Yes

Can be backed up and restored as a unit using Snap Mirror

Yes

Yes

Yes

Can be backed up and restored as a unit using Snap Vault

Yes

No

No

Can be resized

Yes (using quota limits)

Yes

Yes

Support snapshot copies

No (qtree data can be


extracted from volume
snapshot copies)

Yes

Yes

Yes

Yes

Yes

Supports quotas
Can be cloned

No (except as part of a
FlexVol volume)

Yes

No

4,995 per volume

500 per system

100 per system

Maximum number allowed

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

convert a directory into a


qtree directory

##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.

Change the security style

##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>

log messaging quotalogmsg

http://www.datadisk.co.uk/html_docs/netapp/netapp_disk.htm

13/13

You might also like