1、NetAppxClusteredDataONTAP8.2SnapVauItExpressGuideNetApp, Inc.495 East Java Drive Sunnyvale, CA 94089 U.S.Part number: 215-07993_A0May 2013Telephone:+1(408)822-60Fax:+1(408)822-4501Supporttelephone:+1(888)463-8277Web:Feedback:doccommentsTableofContents3ContentsDecidingwhethertousethisSnapVauItconfigu
2、rationworkflow5CreatingaFlexVolvolumetouseasaSnapVaultdestination6Enablingstorageefficiencyonemptydestinationvolumes7Creatingcronschedulesforyourbackupstrategy8CreatingandapplyingaSnapshotcopypolicy9CreatingaSnapVaultpolicy11CreatingaSnapVaultrelationship12Volumerestoreworkflow14Restoringavolumefrom
3、aSnapshotcopyinavault15Wheretofindadditionalinformation17Copyrightinformation18Trademarkinformation19Howtosendyourcomments20Index21DeCidingWhethertoUSethisguideThisguidedescribeshowtoconfigureSnapVaultrelationshipsinclusteredDataONTAPandhowtorestoreavolumefromabackup.Youshouldusethisguideifyouwantto
4、configureSnapVaultrelationshipsanddonotwantalotofconceptualbackgroundforthetasks.Avaultcontainsasetofread-onlybackupcopies,locatedonadestinationvolume.Thisguideassumesthefollowing: Yourstoragesystemhasbeensuccessfullyinstalledandaclusterhasbeencreated. YouarcusingFlexVolvolumesandnotanInfiniteVolume
5、Youareaclusteradministrator. TheSnapVaultlicenseisinstalled.Thevolumeforwhichyouwanttocreateavaultofbackupcopiesalreadyexists.Note:YoucanusetheprocedureinthisguidetocreateaSnapVaultrelationshipforavolumethatcontainsaLUN.ForinstructionsabouthowtorestoreaLUNfromavolumebackup,seetheClusteredDataONTPSA
6、NAdministrationGuide.IfthesourceanddestinationvolumesareindifferentVservers,theVscrversmustbeinapeerrelationship.Ifthesourceanddestinationvolumesareindifferentclusters,theclustersmustbeinapeerrelationship.SeetheClusterandVserverPeeringExpressGuidefordetails.Ifyuwanttocreateamirror-vaultcascade,seeth
7、eClusteredDataONTAPDataProtectionGuideforinstructions.Iftheseassumptionsarenotcorrectforyoursituation,orifyouwantmoreconceptualbackgroundinformation,youshouldseethefollowingdocumentationinstead,availablefromtheNetAppSupportSite: ClusteredDataONTAPDataProtectionGuide ClusteredDataONTAPDataProtectionT
8、apeBackupandRecoveryGuideClusteredDataONTAPLogicalStorageManagementGuide SrmPMirrOrConfigurationandBestPracticesGuideforDataONTAP8.1OperatinginCluster-Mode(TR-4015)RelatedinformationDocumentationontheNetAppSupportSite:SnapVauItconfigurationworkflowWhenyouconfigureaSnapVauItrelationship,youcreateades
9、tinationvolume,enablestorageefficiencyonthevolume(ifdesired),confirmwhetheryourbandwidthisadequateforthebaselinetransfer,createanewSnapVauItpolicyandschedule(asneeded),createtherelationship,andtheninitializetherelationship.ubcn Themrcand-WEt*c*a0geareerd TbesoufcearddKUftitiaA.Jvec*Fnarepewd Th*MHTT
10、FdunyEdMavc4unejecreeled.Frrrt.R*efrcrGMmbMelnetramterHOkwthrMo.GIAWTorpr11o11.1IggeSor/dcyBirbx*vMne.*fc4(kuM1o*1heZaEtothedekw!fconvohme?GMCfOHMlKduUOohareCWgIorcmtf11SzprtOeQJremenMtrwsfcrrwSnipshxccmogvault卜$0IVMfiIIOUMlCefnrcohCy7电IOoIWlahIIo-GnMlddruUt&ettedefauhorCChertoSrupVMjhcUXP1.Crwteg52
11、MgZ-pbhMN6)thesourcexdcWtfubort;I11UU0ggpvjgOiUtiMhipCreatingaFIexVoIvolumetouseasaSnapVauItdestinationYoucreatedestinationvolumesforaSnapVaultrelationshipusingthe-typeDPoptiontoapplybest-practicespacesettingsfordestinationvolumes.AFlexVolvolumecanbethedestinationforonlyoneSnapVaultrelationship.Befo
12、reyoubeginYoumusthaveclusteradministratorprivilegestoperformthistaskforacluster,andVserveradministratorprivilegestoperformthistaskforaVserver.IfthesourceanddestinationvolumesoftheSnapVaultrelationshipwillbeindifferentVservers,theVserversmustbeinapeerrelationship;ifthesourceanddestinationvolumeswillb
13、eindifferentVserversindifferentclusters,theclustersmustbeinapeerrelationshipandtheVse,ersmustbeinapeerrelationship.Fordetails,seetheDataONTAPClusterandVserverPeeringExpressGuide.YoumusthaveverifiedthatthelanguagesettingofthedestinationVservermatchesthelanguagesettingoftheVservercontainingthesourcevo
14、lume.VolumesinherittheirlanguagesettingfromtheVserverthatcontainsthem,andthelanguagesettingofthesourceanddestinationvolumesmustbeanexactmatch.AboutthistaskThistaskisperformedfromthedestinationVserver.AFlexVolvolumecanbethedestinationforonesourceandthesourceformultipledestinations.Youcannotuse32-bitv
15、olumesinaSnapVaultrelationship.WhenyoucreateaFlexVolvolumeusingthe-typeDPoption,itiscreatedwithsettingsthatreflectbestpracticesfordestinationvolumes.ThesearedifferentfromthedefaultsettingsusedforRWvolumes.SpacesettingRWvolumeDPvolumespace-guaranteevolumevolumeautosizefalsetrueautosize-modeoffgrow_sh
16、rinkautosize-grow-threshold-percent85(percent)85(percent)autosize-shrinkthreshold-percent50(percent)80(percent;autosize-grow-threshold-percent-5)min-autosizeInitialvolumesizeInitialvolumesizeSpacesettingRWvolumeDPvolumemax-autosize120%ofvolumesizeMaximumaggregatesizeSnapreserve(percentsnapshot-space
17、)5(percent)0(percent)fractional-reserve100(percent)0(percent)Step1.OnthedestinationVserver,createaSnapVaultdestinationvolumethatisthesameorgreaterinsizethanthesourcevolumebyusingthevolumecreatecommandwiththe-typeDPoption.ExampleThefollowingcommandcreatesa2-GBdestinationvolumenameddstvolBinVservervse
18、rverB:cluster2:voluecreate-vservervseerBvoluedstvolB-typeDP-size2GBEnablingstorageefficiencyonemptydestinationvolumesConsiderenablingstorageefficiencyforthedestinationvolumeofaSnapVauItrelationship,becausethevaultmightcontainalargeamountofdataovertime.AboutthistaskThistaskisperformedfromthedestinati
19、onVserver.Thisprocedureassumesthatthedestinationvolumeiscurrentlyempty.Ifthedestinationvolumealreadycontainsdatafromtransfers,seetheClusteredDataONTAPDataProtectionGuideforstorageefficiencyguidelines.IfthesourcevolumeinaSnapVaultrelationshipisenabledforstorageefficiency,alldatareplicationoperationsp
20、reservethestorageefficiency.Changestothesourcevolume,sefficiencyscheduledonottakeeffectforadestinationvolume.Ifyouenablestorageefficiencyonthedestinationvolume,theSnapVauItrelationshipmanagestheschedule.Whenadatatransferbegins,thestorageefficiencyprocessautomaticallypausesuntilthetransferisfinished,
21、andthenautomaticallybeginsagainafterthedatatransferiscomplete.Forinfbnationaboutincreasingstorageefficiencyusingdeduplicationandcompression,seetheClusteredDataONTAPLogicalStorageManagementGuide.Step1.OnthedestinationVserver,usethevolumeefficiencyoncommandtoenablededuplication.ExampleThefollowingcomm
22、andenablesdeduplicationonthedestinationvolumedstvolB:vserverB:volumeefficiencyon-vservervserverB-volumedstvolBAfteryoufinishIfavailablebandwidthtothedestinationvolumeislow,thebaselinetransferofdatathatoccurswhenaSnapVauItrelationshipisinitializedwilltakealongtime.Ifthisisyoursituation,considerperfor
23、minganSMTapebackupofthesourcevolumetoatapeandusingthetapetotransfertheinitialbaseSnapshotcopytothedestination.YoucanthensetupincrementalupdatestothedestinationsystemusingaSnapVauItrelationshipoverthelow-bandwidthconnection.SeetheClusteredDataONTAPDataProtectionGuidefordetails.Creatingcronschedulesfo
24、ryourbackupstrategyWhenappliedtoaSnapVaultrelationship,acronscheduledefineswhenDataONTAPperfbnsincrementalupdatesbytransferringSnapshotcopiestothedestinationvolume.WhenaddedtoaSnapshotpolicy,acronscheduledefineswhenSnapshotcopiesarecreatedonavolumetowhichtheSnapshotpolicyhasbeenapplied.Beforeyoubegi
25、nYoumusthaveclusteradministratorprivilegestoperfbnthistask.AboutthistaskThistaskisperformedfromthedestinationVserver.Acronscheduledefinestimesforajobtorun.Thejobschedulecroncreatecommandusedforthistaskcreatesacronschedule.Youcanspecifymonths,daysofthemonth,ordaysoftheweekonwhichtheschedulewillrun.Wh
26、enyouconfigureaSnapVaultrelationship,therearetwooperationsthatneedschedules:CreatingSnapshotcopiesonthevolumethatyouwanttobackuptothevaultTransferringSnapshotcopiestothevaultIfexistingschedulesdonotmeetyourrequirements,youmustcreateoneormoreadditionalschedules.Steps1. OnthedestinationVserver,reviewe
27、xistingschedulestoseewhetheranyofthemmeetyourrequirementsbyusingthejobscheduleshowcommand.Ifanexistingschedulemeetsyourrequirements,youdonotneedtocreateanewschedule;otherwise,gotothenextstep.ExampleInthefollowingexample,ifhourly,daily,andweeklySnapshotcopiesarerequired,theexistingschedulesaresuffici
28、ent.However,ifyouwantDataONTAPtotransferSnapshotcopiestothevaultonSaturdaysandSundays,anadditionalscheduleisneeded.ThefollowingcommandshowstheschedulescurrentlyavailableonVservervserverB:vserverB:jobscheduleshowNameTypeDescriptionIOmincron:00,:10,:20,:30,:40,:50avUpdatecron02dailycron0:10hourlycron:
29、05logrotationcronSUn0:00weeklycronSn0:156entriesweredisplayed.2. Createanewschedulebyusingthejobschedulecroncreatecommand.ExampleThefollowingcommandcreatesaschedulethatrunsonSaturdaysandSundaysat3:00a.m.:vserverB:jobschedulecroncreate-nameweekendcron-dayofweekSaturday,Sunday*,-hour3-minute0Creatinga
30、ndapplyingaSnapshotcopypolicyASnapshotpolicyspecifiesthefrequencyandmaximumnumberofautomaticallycreatedSnapshotcopies.YoucanalsouseapolicytospecifyaSnapMirrorlabelthatidentifiesSnapshotcopiesmadeaccordingtoadesignatedschedule.SnapMirrorlabelsareusedtoidentifySnapshotcopiestotransfertothevault.Before
31、youbeginYoumusthaveclusteradministratorprivilegestoperformthistaskforacluster,andVserveradministratorprivilegestoperformthistaskforaVserver.AboutthistaskThistaskisperformedfromthesourceVserver.ASnapshotcopypolicymusthaveatleastonescheduleandcanhaveuptofiveschedules.EachschedulecanhaveitsownSnapMirro
32、rlabel.ThereisadefaultSnapshotcopypolicythatcreateshourly,daily,andweeklySnapshotcopies,retainingsixhourly,twodaily,andtwoweeklySnapshotcopies.IfthedefaultSnapshotcopypolicymeetsyourdataprotectionrequirements,youdonotneedtocreateanewSnapshotcopypolicy.YoucanapplythedefaultSnapshotcopypolicytothesour
33、cevolume.Steps1. OntheVservercontainingthesourcevolume,reviewexistingSnapshotpoliciestoseewhetheranyofthemmeetyourrequirementsbyusingthevolumesnapshotpolicyshowcommand.ExampleThefollowingcommandshowstheSnapshotcopypoliciesonVservervserverA:vserverA:volumesnapshotpolicyshowNumberofIsPolicyNameSchedul
34、esEnabledCommentdefault3trueDefaultpolicywithhourly,daily&weeklyschedules.ScheduleCountPrefixSnapMirrorLabelhourly6hourly-daily2dailydailyweekly2weeklyweeklyIfanexistingpolicymeetsyourrequirements,youdonotneedtocreateanewpolicy;gotostep3.Ifnopolicymeetsyourrequirements,gotothenextstep.2. CreateaSnap
35、shotcopypolicybyusingthevolumesnapshotpolicycreatecommand.IfyouplantotransferSnapshotcopiesmadewiththenewpolicytoabackupvault,youmustalsospecifyaSnapMirrorlabelforeachscheduleyouaddtothepolicy.ExampleThefollowingcommandcreatesandenablesapolicysimilartothedefaultpolicy,butitkeeps12hourlySnapshotcopie
36、s:vserverA:voluresnapshotpolicycreate-vsen,ervseer-policydefault-kee-12hourly-enabledtrue-schedulelourly-countl12refixlhwrly-Snajwirror-Iabellvserver-vault-hourly-schedule2XeekIy-CCUnt22-prefix2xeekly-snaf11irror-label2vsen,er-yault-weeklyschedule3daily-oount32-prefix3daily-snapmor-label3vserverA-va
37、ult-daily3. ApplytheSnapshotpolicytothesourcevolumebyusingthevolumemodifycommandwiththe-snapshot-policyparameter.ExampleThefollowingcommandappliestheSnapshotpolicydefault-keep-12-hourlytothevolumesrcvolA:vserver:nl皿cdify-vseer7se,erA-volunesrcvolA-snapshot-policydsfault-keep-12-hourlyCreatingaSnapVa
38、uItpolicyASnapVaultpolicydefinestheconfigurationattributesofaSnapVaultrelationship.AftercreatingapolicyintendedforaSnapVaultrelationship,youaddrulesthatspecifywhichSnapshotcopiestotransfertothevaultandhowmanySnapshotcopiestokeep.BeforeyoubeginYoumusthaveclusteradministratorprivilegestoperformthistas
39、kforacluster,andVserveradministratorprivilegestoperformthistaskforaVserver.AboutthistaskThistaskisperformedfromthedestinationVserver.Thereisadefaultpolicythatyoucanuse,called*tXDPdefaulf,thatprotectsSnapshotcopieswiththe“dailyandweekly“SnapMirrorlabels.ThedefaultpolicykeepssevendailySnapshotcopiesan
40、d52weeklySnapshotcopies.Note:Dependingonhowitisdefined,aSnapVaultpolicycanbeavailabletoaspecificVserverortotheentirecluster.Vserver-widepoliciescanbeconfiguredbybothVserveradministratorsandclusteradministrators,butacluster-widepolicycanbeconfiguredonlybyaclusteradministrator.SeetheClusteredDataONTAP
41、DataProtectionGuidefordetails.TheexampleinthisprocedurecreatesaVserver-widepolicy.Steps1. OntheVservercontainingthedestinationvolume,reviewtheexistingpoliciestoseewhetheranyofthemmeetyourrequirementsbyusingtheSnaPmirrorpolicyshowcommand.ExamplevserverB:snapmirrorpolicyshowVserverPolicyNumberOfTransf
42、erNameNameRulesTriesPriorityRestartCommentvserverBDPDefaultO8normalalwaysDefaultpolicyforDPrelationship.Snapmirror-Iabel:-Keep:-TotalKeep:OvserverBXDPDefault2BnormalalwaysDefaultpolicyforXDPrelationshipwithdailyandweeklyrules.Snapmirror-Iabel:dailyKeep:7weekly52TotalKeep:59vserverB mktg-templatesSna
43、pmirror-Label: daily1Inormalalways-Keep:7TotalKeep:73entriesweredisplayed.Ifanexistingpolicymeetsyourrequirements,youdonotneedtocreateanewpolicy.Ifnopolicymeetsyourrequirements,gotothenextstep.2. CreateaSnapVaultpolicybyusingthesnapmirrorpolicycreatecommand.ExampleThefollowingcommandcreatestheVserve
44、r-widepolicyvservserA-vault:vserverB:Snaprnirrorpolicycreate-vservervserverB-policyvserverA-vau1t3. ddrulestothepolicythatspecifytheSnapMirrorlabeltolookforandhowmanySnapshotcopiestokeepbyusingthesnapmirrorpolicyadd-rulecommand.ExampleThefollowingcommandaddsrulestothevserverA-vaultpolicythatspecifyt
45、heSnapMirrorlabelvserverA-vault-hourlyandthat40Snapshotcopiesmatchingthelabelshouldbekeptinthevault.vserverB:Snapmirrorpolicyadd-rle-vservervserverB-policyvserverA-vault-snapmirror-labelvserverA-vault-hourly-keep40CreatingaSnapVauItrelationshipYoucancreateandinitializeaSnapVaultrelationshipbetweentw
46、oFlexVolvolumesandassignaSnapVaultpolicytoittocreateabackupvault.BeforeyoubeginYoumusthaveclusteradministratorprivilegestoperformthistaskforacluster,andVserveradministratorprivilegestoperformthistaskforaVserver.IfthesourceanddestinationvolumesareindifferentVservers,theVserversmustbeinapeerrelationship;ifthesourceanddestinationvolumesareindifferentclusters,theclustersmustalsobeinapeerrelationship.Formoreinformationaboutcreatingpeerrelationships,seetheDataONTAPClusterandVserverPeeringExpressGuideandtheClusteredDataONTAPSystemAd