QNAP ESNAS Application Notes

Transcription

QNAP ESNAS Application Notes
QNAPESNASApplicationNotes DeployingVMwarevCenterSiteRecoveryManager withQNAPES1640dc
©2015 QNAP Systems, Inc.
1
All Rights Reserved.
Contents
1.Overview...............................................................................................................................4
1.1Architecture.....................................................................................................................4
1.2Systemconfiguration.......................................................................................................5
2.Configuringyourstorage.......................................................................................................6
2.1CreatethestoragepoolandiSCSILUN...........................................................................6
2.3ConfigurestoragereplicationwithSNAPSYNC................................................................9
2.3.1ConfigureSnapsyncServer.......................................................................................9
2.3.2CreateSnapsyncJob...............................................................................................11
2.3.3AttachdestinationLUNtoiSCSItarget...................................................................13
3.SRMInstallation..................................................................................................................14
3.1InstallSRMsoftwareforbothsites...................................................................................14
3.2ConfigureSRMSites......................................................................................................27
3.2.1ConnecttheSiteRecoveryManagerServerInstances...........................................27
3.2.2ConfigureSitesResourceMappings.......................................................................31
3.2.3ConfigureSitesFolderMappings............................................................................32
3.2.4ConfigureSitesNetworkMappings........................................................................34
3.2.5ConfigureSitesPlaceholderDatastores.................................................................37
3.3ConfigureArrayManagers............................................................................................38
3.3.1SRAplug-ininstallation...........................................................................................38
3.3.2AddArrayManagers...............................................................................................39
3.3.3CreateProtectionGroup........................................................................................44
3.3.4CreateRecoveryPlan.............................................................................................46
4.SiteRecoveryScenarios.......................................................................................................49
4.1TestRecovery................................................................................................................49
©2015 QNAP Systems, Inc.
2
All Rights Reserved.
4.2Plannedmigration.........................................................................................................53
4.3Disasterrecovery...........................................................................................................59
©2015 QNAP Systems, Inc.
3
All Rights Reserved.
1.Overview
TheQNAPES1640dcisanenterprisestoragesystem;itprovidesaredundantpower
supplyanddualsystemcontrollermodules.
Thisdocumentisastep-bystepguideforbuildingDisasterRecoveryenvironmenton
QNAPES1640dcstoragesystemwithVMwareSiteRecoveryManager(SRM).
1.1Architecture
SiteA(Primary)
vCenter
SiteB(Recovery)
Site
vCenter
VMware
SRA
SRA
VMware
Site
Servers
Servers
Snapsync
ES1640dc
ES1640dc
Inthearchitecturediagram,therearetwosites.SiteAontheleftisprimarysystem
andbeingprotected.SiteBontherightistherecoverysiteandwillbeusedwhen
siteAfails.
©2015 QNAP Systems, Inc.
4
All Rights Reserved.
1.2Systemconfiguration
ServerNetworkSettings(SiteA)
Setting
Value
Description
vCenterServerA(PSC)IP
192.168.200.10
vCenterServerwithPSCatsiteA
SRMServerAIP
192.168.200.13
SRMServeratsiteA
ESXi1serverIP
192.168.200.1
ESXiServerincluster1
ESXi2serverIP
192.168.200.2
ESXiServerincluster1
ServerNetworkSettings(SiteB)
Setting
Value
Description
vCenterServerB(PSC)IP
192.168.201.10
vCenterserverwithPSCatsiteB
SRMServerAIP
192.168.201.13
SRMServeratsiteB
ESXi3serverIP
192.168.201.1
ESXiServerincluster2
ESXi4serverIP
192.168.201.2
ESXiServerincluster2
StorageNetworkSettings(SiteA)
Setting
Value
Description
SCAManagementIP
192.168.200.101
ManagementIPofcontrollerA
SCAEthernet(1+2)IP
10.1.1.101
DataportIPofcontrollerA
SCBManagementIP
192.168.200.102
ManagementIPofcontrollerB
SCBEthernet(1+2)IP
10.1.1.102
DataportIPofcontrollerB
PoolatSCA
Pool1
RAID10poolatcontrollerA
iSCSILUN
iSCSIlunonPool1
StorageNetworkSettings(SiteB)
Setting
Value
Description
SCAManagementIP
192.168.201.101
ManagementIPofcontrollerA
SCAEthernet(1+2)IP
10.1.2.101
DataportIPofcontrollerA
SCBManagementIP
192.168.200.102
ManagementIPofcontrollerB
SCBEthernet(1+2)IP
10.1.2.102
DataportIPofcontrollerB
PoolatSCA
Pool1
RAID10poolatcontrollerA
iSCSILUN
iSCSIlunonPool1
©2015 QNAP Systems, Inc.
5
All Rights Reserved.
2.Configuringyourstorage
Beforestartingtosetupthedisasterrecoverysystems,youneedtoconfigureyour
storagesettings.
2.1CreatethestoragepoolandiSCSILUN
ForthedetailabouthowtocreatestoragepoolandiSCSILUN,youcanrefertothe
ES1640dcusermanual.Astoragepool,Pool1iscreatedoncontrollerSCAwith
RAID10typeasbelow.
TherearefourLUNscreatedandattachedtotheiSCSItarget.
- vdi_0isusedforstoringyourvirtualmachines(VMs).
- placeholderisusedforVMwareSRM.
©2015 QNAP Systems, Inc.
6
All Rights Reserved.
2.2Connectingstoragefromtheservers
TherecommendedconnectionfromtheservertothestorageistouseMultipathI/O
(MPIO).Pleasefollowthestepsbelowtocompletethisprocess.
Choose[Configuration]tabàStorageAdaptersàRightclickoniSCSISoftware
AdaptertoselectProperties.
Selectthe[DynamicDiscovery]tabandentertheiSCSIServerIP
ClickOKandclosethetabtorescaniSCSItargets.
©2015 QNAP Systems, Inc.
7
All Rights Reserved.
RepeattheabovestepstoaddalltheiSCSIServerLocationIPaddressesintothe
DynamicDiscoverytabtoseethetargets
©2015 QNAP Systems, Inc.
8
All Rights Reserved.
2.3ConfigurestoragereplicationwithSnapsync
Snapsyncprovidesablock-basedstoragereplicationfunctionontheES1640dc.For
disasterrecoverywithVMwareSRM,itisoneoftheoptionstoreplicatestorage.
2.3.1ConfigureSnapsyncServer
Toconfiguresnapsyncfunction,logintotheNASwebpageandclickontheBackup
Stationicononthepanel.
SelectSnapsyncServerintheleftpaneltoconfigureit.
©2015 QNAP Systems, Inc.
9
All Rights Reserved.
SelecttheEnableSnapsyncServercheckboxandleavethePortNumberand
Maximumdownloadratewiththeirdefaultsettings.ClickontheCreateHostbutton
tocreateahost.EnterthestorageIPandtheadminloginandpasswordofthe
remoteES1640dcstoragesystem.ClickApplytocreateit.
Theremotehostiscreated.
©2015 QNAP Systems, Inc.
10
All Rights Reserved.
2.3.2CreateaSnapsyncJob
ClickonSnapsyncinleftpanelandclickontheCreateaReplicationJobbuttoninthe
rightpanel.
Enterfollowinginformationtocreateajob
- aRemoteReplicationJobName.
- SelectandassignaRemoteHost
- SelectandassigntheSourcePool
- SelectandassigntheSourceSharedFolder/Lun
- SelectandassigntheDestinationPool
- ClickontheNewbuttontoassignandcreatetheDestinationSharedFolder/Lun.
- ClicktheOKbuttontocreatetheReplicationJob.
©2015 QNAP Systems, Inc.
All Rights Reserved.
11
Thesnapsyncjobcreationiscompletedanditwillstartthefirstsyncautomatically.
Afterthefirstsyncisdonethestatuswillchangetoupdated.
©2015 QNAP Systems, Inc.
12
All Rights Reserved.
2.3.3AttachadestinationLUNtoaniSCSItarget
Afterthesnapsyncjobisdone,atSiteB,youwillfindanewiSCSIintheUn-Mapped
iSCSILUNListatthebottom.
SelecttheLUNthenclickontheActionbutton.SelectMaptomapthisLUNtothe
iSCSItarget.
ThedestinationLUNismappedtotheiSCSItarget.
©2015 QNAP Systems, Inc.
13
All Rights Reserved.
3.SRMInstallation
BeforeinstallingaSiteRecoveryManager(SRM)server,thefollowingstepsare
required:
--DownloadVMwarevCenterSRMsoftware
--PrepareadatabaseandloginuserforSRMtoaccessatvCenter
--InstallSQLServerNativeClientdriveratSRMservertoaccessdatabase
--AddaWindows2012ServerVMtoinstallSRMindividually
3.1InstallSRMsoftwareforbothsites
OpentheSRMsoftware,clickNext.
©2015 QNAP Systems, Inc.
14
All Rights Reserved.
ClickNext.
AccepttheEULAandclickNext.
©2015 QNAP Systems, Inc.
15
All Rights Reserved.
ClickNext
SelectthedestinationfoldertoinstallandclickNext.
©2015 QNAP Systems, Inc.
16
All Rights Reserved.
EnterPlatformServiceController(PSC)information,clickNext.
ClickAccepttoacceptthePSCcertificate. ©2015 QNAP Systems, Inc.
17
All Rights Reserved.
SelectthevCenterAddress
EnterinformationtoregistertheVMwarevCenterSRMandclickNext.
SelectDefaultSiteRecoveryManagerPlug-inIdentifier,clickNext.
©2015 QNAP Systems, Inc.
18
All Rights Reserved.
SelectAutomaticallygenerateacertificate,clickNext.
EntertheCertificateInformation,clickNext.
SelectUseacustomdatabaseserver,andthenclickDSNSetup.
©2015 QNAP Systems, Inc.
19
All Rights Reserved.
©2015 QNAP Systems, Inc.
20
All Rights Reserved.
SelectSystemDSNtabandclicktheAddbutton.
SelectSQLServerNativeClientandclickFinish.
EntertheDSNName,Description,andSQLserveraddressandclickNext
©2015 QNAP Systems, Inc.
21
All Rights Reserved.
SelectWithSQLServerauthenticationusingaloginIDandpasswordenteredbythe
user,andenterlogintheusercredentialsaddedduringthevCentersetup,andclick
Next.
ChangethedefaultdatabasetoSRM,thenclickNext.
ClickontheFinishbutton.
©2015 QNAP Systems, Inc.
All Rights Reserved.
22
TheDatasourceisnowcreated.ClickonTestDataSourcetotestthedatabase
settings.
Oncethetesthascompleted,clickOKtoclosedialog.
©2015 QNAP Systems, Inc.
23
All Rights Reserved.
ThenewSystemDSNisalsocreated.ClickOKtofinishtheDSNsetup.
Apop-upwindowrequeststheusertoentertheDSNdetailsmanually.
EntertheSRM,clickNext.
©2015 QNAP Systems, Inc.
24
All Rights Reserved.
EntertheSRMDatabaseloginusercredentials,clickNext.
EnterthelocaladmincredentialstoruntheSRMservice,clickNext.
©2015 QNAP Systems, Inc.
25
All Rights Reserved.
ClickInstall.
WhentheInstallationhascompleted,clickFinsh.
©2015 QNAP Systems, Inc.
26
All Rights Reserved.
3.2ConfiguringSRMSites BeforeconfiguringSRM,ensuresurebothsite’sSRMandvCentercanaccesseach
other.
3.2.1ConnecttotheSiteRecoveryManagerServerInstances
ClickontheSiteRecoveryicononthevSphereWebClienthomepage.
ClickSitesintheleftpanel.
©2015 QNAP Systems, Inc.
27
All Rights Reserved.
SelectProtectedSitevCenterintheleftpanelandclickPairsites.
EntertheRecoverySitePSCaddress,clickNext. ©2015 QNAP Systems, Inc.
28
All Rights Reserved.
©2015 QNAP Systems, Inc.
29
All Rights Reserved.
SelectRecoverySitevCenterandenteritscredentials,thenclickFinish.
ClickYestoconnecttovCenter.
ThesitesarenowPairedsuccessfully. ©2015 QNAP Systems, Inc.
30
All Rights Reserved.
3.2.2ConfiguringtheSitesResourceMappings
ClickCreateresourcemappings
Addpairedsitesclustermapping,clickNext
©2015 QNAP Systems, Inc.
31
All Rights Reserved.
Createareversemappingforthepairedsite,clickFinish.
3.2.3ConfiguringSitesFolderMappings
ClickCreatefoldermappings
©2015 QNAP Systems, Inc.
32
All Rights Reserved.
SelectPreparemappingsmanually,clickNext.
Addthesitesfoldermappings,clickNext.
©2015 QNAP Systems, Inc.
33
All Rights Reserved.
Createthereversemappings,clickFinish.
3.2.4ConfiguringSitesNetworkMappings
ClickCreatenetworkmappings
©2015 QNAP Systems, Inc.
34
All Rights Reserved.
SelectPreparemappingsmanually,clickNext.
Addthesitesnetworkmappings,clickNext.
©2015 QNAP Systems, Inc.
35
All Rights Reserved.
Createreversemappings,clickNext.
Checktheconfiguration,clickFinish.
©2015 QNAP Systems, Inc.
36
All Rights Reserved.
3.2.5ConfiguringSitesPlaceholderDatastores
Toenableaplannedmigrationandre-protection,firstselectplaceholderdatastores
atbothsites.Placeholderdatastoresmustmeetcertaincriteria. --Forclusters,theplaceholderdatastoresmustbevisibletoallofthehostsinthe
cluster. --Itisnotpossibletoselectreplicateddatastoresasplaceholderdatastores.
SelectConfigureSitesPlaceholderDatastore
Selectaplaceholder,thenclickOK
©2015 QNAP Systems, Inc.
37
All Rights Reserved.
3.3ConfiguringArrayManagers
ToconfigureArrayManagers,theQNAPSRAplug-inmustbeinstalledinadvance. 3.3.1SRAplug-ininstallation
OpentheQNAPSRAsoftwareontheSRMserver,clickNext.
AccepttheEULA.
©2015 QNAP Systems, Inc.
38
All Rights Reserved.
ClickFinishtocompletetheinstallation.
3.3.2AddArrayManagers ClickAddarraymanagerandenablearraypair.
©2015 QNAP Systems, Inc.
39
All Rights Reserved.
SelectAddapairofarraymanagers,clickNext.
Selectthepairedsites,clickNext.
©2015 QNAP Systems, Inc.
40
All Rights Reserved.
SelectQNAPEnterpriseStorageSRA,clickNext.
ConfiguretheSiteAarraymanager.Enterthedisplaynameandthemanagement
information,thenclickNext.
--ManagementURL:SiteASCAManagementIP
--ExtraManagementURL:SiteASCBManagementIP
--Username:SiteASCadminusername,defaultisadmin --Password:SiteASCpassword
©2015 QNAP Systems, Inc.
41
All Rights Reserved.
CreatingArraymanager,Snapsync’sReplicationJobwillbecheckedatthisstep. ConfigureSiteBarraymanager,providethedisplaynameandthemanagement
information,thenclickNext.
--ManagementURL:SiteBSCAManagementIP
--ExtraManagementURL:SiteBSCBManagementIP
--Username:SiteBSCadminusername,defaultisadmin --Password:SiteBSCpassword
©2015 QNAP Systems, Inc.
42
All Rights Reserved.
SelectSCArrayPair,clickNext.
ClickFinish.
©2015 QNAP Systems, Inc.
43
All Rights Reserved.
3.3.3CreateaProtectionGroup
ClickCreateaProtectionGroup.
Enteragroupname,clickNext.
©2015 QNAP Systems, Inc.
44
All Rights Reserved.
SelectthedirectionofprotectionfromSiteAtoSiteB,andselectarray-based
replication,thenclickNext.
SelectthedatastoreofVMstobeprotectedandclickNext.
©2015 QNAP Systems, Inc.
45
All Rights Reserved.
ClickFinish.
3.3.4CreateaRecoveryPlan
ClickCreateaRecoveryPlan.
©2015 QNAP Systems, Inc.
46
All Rights Reserved.
Enteranamefortheplanandselectalocation,thenclickNext.
SelectSiteBastheRecoverySite,clickNext.
©2015 QNAP Systems, Inc.
47
All Rights Reserved.
Selecttheprotectiongroups,clickNext.
SelectatestVMnetwork,clickNext.
©2015 QNAP Systems, Inc.
48
All Rights Reserved.
TheRecoveryPlanisnowcreated,clickFinish.
4.SiteRecoveryScenarios
VMwareSRMprovidesthefollowingtypesofsiterecovery
-TestRecovery
-Plannedmigration -Disasterrecovery
4.1TestRecovery
SelectRecoveryPlansfromtherighttabandselectaplanname.
©2015 QNAP Systems, Inc.
49
All Rights Reserved.
ClicktheTestRecoveryPlanbutton.
ClickNext.
ClickFinishtorunthetest.
©2015 QNAP Systems, Inc.
50
All Rights Reserved.
TheMonitortabshowsthestatusofthetest.
Afterthetestdone,thestatusofthePlanwillchangetoTestcomplete.
ClickontheCleanupRecoveryPlanbuttontocleanthetestenvironment.
©2015 QNAP Systems, Inc.
51
All Rights Reserved.
ClickNext.
AftertheTestplanenvironmentiscleaned,thestatusoftheplanwillchangeto
Ready.
©2015 QNAP Systems, Inc.
52
All Rights Reserved.
4.2Plannedmigration
AplannedmigrationwillhelpyoutransferVMdataquicklywithanautotakeover
servicetoarecoverysite.
TomigrateVMstoanothersiteforlocalmaintenance,clicktheRunRecoveryPlan
button.
SelectthecheckboxandchoosePlannedMigrationandclickNext.
©2015 QNAP Systems, Inc.
53
All Rights Reserved.
UsetheMonitortabtoseetheprogressoftheplannedmigration.
Theplannedmigrationiscompleted.
©2015 QNAP Systems, Inc.
54
All Rights Reserved.
TheVMsattheprotectionsitebecomeinactive.
TheVMsattherecoverysitebecomeactive.
©2015 QNAP Systems, Inc.
55
All Rights Reserved.
TheSnapSyncReplicationJobstatuschangestosuspended. Atthispoint,thereisnodatasynchronizationbetweensites.
ClickontheReprotectRecoveryPlanbuttontobegintherolechangesandresume
synchronization. ©2015 QNAP Systems, Inc.
56
All Rights Reserved.
SelectthecheckboxandclickNext.
UsetheMonitortabtoseetheprogressoftheReprotectionprocess.
©2015 QNAP Systems, Inc.
57
All Rights Reserved.
TheReprotectionprocessiscompleted.
Afterthereprotectprocessiscomplete,theroles(sourceanddestination)ofthe
SnapSyncReplicationJobarerevertedandthestatesareupdated.
TheplannedmigrationiscompleteanditisnowsafetoshutdownsiteAfor
maintenance.
©2015 QNAP Systems, Inc.
58
All Rights Reserved.
4.3Disasterrecovery
Scenario:theprotectionsiteisdownandtherecoverysiteisrequiredtobringupand
resumeserviceassoonaspossible. Therecoverysitewilldisplaythewarningmessagesbelow. Gototherecoveryplantab,clicktheRunRecoveryPlanbutton.
©2015 QNAP Systems, Inc.
59
All Rights Reserved.
SelectthecheckboxandclickNexttoruntheDisasterRecovery.
Thedisasterrecoveryprocesswillbegin.Inthismode,errorstepsareignored. ©2015 QNAP Systems, Inc.
60
All Rights Reserved.
Thedisasterrecoveryprocessiscompleted.
TheVMsareupandrunningattherecoverysite. ©2015 QNAP Systems, Inc.
61
All Rights Reserved.
Note:
PleasebearinmindthatsinceSiteAisdownthereisnoprotection.TheproblematSiteA
shouldberesolvedtobringitbackonlineassoonaspossibletoensureadequateprotection.
Oncemantainenceiscompleted,gotositeAvSphereWebClienttoreconnectthe
SRMconnection.ApopupwindowwillaskforSiteBvCentercredentials,enterthe
requiredcredentialstologin.
TheMonitortaboftheRecoveryPlanwillprompttodotherecoveryagaintore-sync
missingitemsduringtheSiteAdowntime.
©2015 QNAP Systems, Inc.
62
All Rights Reserved.
ClicktheRunRecoveryPlanbutton.
ClickNext.
Recoveryiscompleted.
©2015 QNAP Systems, Inc.
63
All Rights Reserved.
ClickontheReprotectRecoveryPlanbuttontorevertthesyncdirectionandbegin
thesyncfromsiteBtositeA.
UsetheMonitortabtoviewtheprogressoftheReprotectionprocess.
OncetheReprotectioniscompleted,thePlanstatuswillchangetoReady.
©2015 QNAP Systems, Inc.
64
All Rights Reserved.
Afterthereprotectprocessiscomplete,itwillreversethesourceanddestination.On
thesnapsyncjobpageofthestoragesystem,thesyncdirectionhasbeenchanged
fromSiteAàSiteBtoSiteBàSiteA. SiteBbecomestheprotectionsiteandSiteAbecomestherecoverysite.
©2015 QNAP Systems, Inc.
65
All Rights Reserved.
Note:
TokeepSiteAastheprotectionsiteandSiteBastherecoverysite,performaPlanned
migrationandrunthereprotectprocessagain.
©2015 QNAP Systems, Inc.
66
All Rights Reserved.