Upload
pravin-kamthe
View
218
Download
0
Embed Size (px)
Citation preview
7/27/2019 HDR ProtectingCitrixXenServer Scout
1/96
Protecting Citrix XenServer Using HitachiDynamic Replicator - Scout
MK-98DF8221-00
7/27/2019 HDR ProtectingCitrixXenServer Scout
2/96
Copyright 2009 Hitachi, Ltd., Hitachi Data SystemsCorporation, ALL RIGHTS RESERVED
Notice: No part of this publication may be reproduced ortransmitted in any form or by any means, electronic or
mechanical, including photocopying and recording, or storedin a database or retrieval system for any purpose withoutthe express written permission of Hitachi, Ltd. and HitachiData Systems Corporation (hereinafter referred to asHitachi Data Systems).
Hitachi, Ltd. and Hitachi Data Systems reserve the right tomake changes to this document at any time without noticeand assume no responsibility for its use. Hitachi, Ltd. andHitachi Data Systems products and services can only beordered under the terms and conditions of Hitachi DataSystems applicable agreements. All of the featuresdescribed in this document may not be currently available.Refer to the most recent product announcement or contact
your local Hitachi Data Systems sales office for informationon feature and product availability.
This document contains the most current informationavailable at the time of publication. When new and/orrevised information becomes available, this entire documentwill be updated and distributed to all registered users.
Hitachi is a registered trademark of Hitachi, Ltd. in theUnited States and other countries. Hitachi Data Systems is aregistered trademark and service mark of Hitachi, Ltd. in theUnited States and other countries.
All other trademarks, service marks, and company names in
this document are properties of their respective owners.
7/27/2019 HDR ProtectingCitrixXenServer Scout
3/96
Contents
1 Howthissolutionworks................................................................................................................... 62 Checklist.............................................................................................................................................. 7Part1:BackingupthroughLVreplicationapproach........................................................................... 83
Introduction
to
solution .................................................................................................................... 9
4 Prepare................................................................................................................................................ 104.1 Identifylogicalvolumestobereplicated.............................................................................. 104.2 Recreateguestmachinesonthetarget................................................................................. 12
CreatingWindowvirtualmachine.................................................................................................. 12CreatingLinuxvirtualmachine....................................................................................................... 16
4.3 InstallDRScout........................................................................................................................ 225 Protect ................................................................................................................................................. 22
5.1 Replicatesourcevirtualmachines ......................................................................................... 225.2 Shutdowntargetvirtualmachines ........................................................................................ 255.3 Monitorreplicationpair.......................................................................................................... 265.4 Consistencytags ....................................................................................................................... 27
6 Failover............................................................................................................................................... 296.1 Differencesbetweenrollbackandsnapshot......................................................................... 296.2 Rollbackapproach.................................................................................................................... 306.3 Bringtargetvirtualmachinesonline..................................................................................... 326.4 Snapshotapproach................................................................................................................... 33
Prepareforthesnapshot................................................................................................................... 33Createasnapshot............................................................................................................................... 34Swapdevice........................................................................................................................................ 36Starttheguestmachine..................................................................................................................... 37
7 Failback .............................................................................................................................................. 387.1 Reversereplication................................................................................................................... 387.2 Consistencytag......................................................................................................................... 397.3 Rollback..................................................................................................................................... 397.4 Starttheguestmachine ........................................................................................................... 40
Part2:BackingupthroughSRapproach ............................................................................................. 418 Introductiontothesolution............................................................................................................ 429 Prepare................................................................................................................................................ 42
9.1 Cleanup ..................................................................................................................................... 439.2 Discovery................................................................................................................................... 45
10 Protect ............................................................................................................................................ 4810.1 VXreplication........................................................................................................................... 4810.2 Consistency............................................................................................................................... 51
11
Recovery........................................................................................................................................ 52
11.1 Rollback..................................................................................................................................... 5211.2 RestoreVMs.............................................................................................................................. 53
12 Failback ......................................................................................................................................... 5512.1 Reversereplication................................................................................................................... 5512.2 Consistencytag......................................................................................................................... 5612.3 Rollback..................................................................................................................................... 5612.4 Starttheguestmachine ........................................................................................................... 56
3
7/27/2019 HDR ProtectingCitrixXenServer Scout
4/96
4
Part3:BackingupXenServerresourcepoolthroughLVreplication ............................................. 5713 Introductiontothesolution....................................................................................................... 5814 Prepare........................................................................................................................................... 6015 Protect ............................................................................................................................................ 60
15.1 Setreplicationpairs ................................................................................................................. 6015.2 Consistencytags ....................................................................................................................... 65
16 Recover .......................................................................................................................................... 66Part4: PoolPoolLVSolution .......................................................................................................... 6817 Introductiontothesolution....................................................................................................... 6918 Prepare........................................................................................................................................... 7019 Protect ............................................................................................................................................ 71
19.1 Setreplicationpairs ................................................................................................................. 7119.2 Consistencytags ....................................................................................................................... 75
20 Failover.......................................................................................................................................... 7620.1 Rollbackapproach.................................................................................................................... 7620.2 SnapshotApproach.................................................................................................................. 78
20.2.1 Prepareforsnapshot ....................................................................................................... 7820.2.2 Performsnapshot ............................................................................................................ 79
21 Failback ......................................................................................................................................... 8121.1 Rollbackapproach.................................................................................................................... 81
Reversereplication............................................................................................................................ 81Consistencytag .................................................................................................................................. 81Rollback............................................................................................................................................... 81Starttheguestmachine..................................................................................................................... 81
21.2 Snapshotapproach................................................................................................................... 82Reversereplication............................................................................................................................ 82Consistencytag .................................................................................................................................. 82Snapshot.............................................................................................................................................. 82Start
the
guest
machine..................................................................................................................... 82Part5:ProtectingXenServerPool:Mastertargetguestapproach.................................................... 83
22 Introduction.................................................................................................................................. 8423 Prepare........................................................................................................................................... 8524 Protect ............................................................................................................................................ 86
24.1 Setreplicationpairs ................................................................................................................. 8624.2 Issueconsistencytags .............................................................................................................. 90
25 Recover .......................................................................................................................................... 9125.1 Addadisktocontainthesnapshot ....................................................................................... 9125.2 CreateaSnapshot..................................................................................................................... 9225.3 Detachsnapshotdiskfrommasterguestmachine.............................................................. 9425.4
Attach
the
Snapshot
disk
to
another
Guest .......................................................................... 95
7/27/2019 HDR ProtectingCitrixXenServer Scout
5/96
Conventions
Keywords,commandbuttonsandothersuchfieldsareenclosedinwhilebeingbold(for
example,todenote Nextisused).
Inputsfor
commands
and
Variables
are
shown
in
Italics
Filenamesandpathsareshowninbold
CommandsareshowninCourier new font
Optionalkeywordsandargumentsareenclosedwithin[].
Notes:
Containssuggestionsortips.
Caution:
Containscriticalinformation
5
7/27/2019 HDR ProtectingCitrixXenServer Scout
6/96
1 Howthissolutionworks
This document contains two major parts; the first part explains the LVbased solution, where
individual volumes arebacked up to the target Citrix XenServer. The second part explains
backingupwholediskstothetargetCitrixXenServer.
Inbothparts,thesourceCitrixXenServerispreparedbeforebeingbackeduptothetargetCitrix
XenServer through a VX replication, while the target virtual machines are powered down.
ConsistencymarkersareissuedthroughthevirtualmachineswhichgothroughthesourceCitrix
XenServertoreachthetargetCitrixXenServer.
Figure1
RecoveringtheVMsonCitrixXenServermaybeperformedintwoways;thefirst istorollback
the VMs virtual disks at the target Citrix XenServer to a consistent point and start using the
targetvirtualmachines.ThesecondapproachistotakeasnapshotofthevirtualdisksoftheVMs
andbootthevirtualmachinesoverthesnapshotvolume.
Refertothechecklistinthenextsectionbeforedeployingthesolution.
6
7/27/2019 HDR ProtectingCitrixXenServer Scout
7/96
2 Checklist
EnsureVXagentsareinstalledonboththeCitrixXenServers InstallCXserverwithinthesameLANasofthesourceCitrixXenServer PointallVXagentstothesameCXserverandassignappropriatelicenses Ensurethat/etc/hostsontheCitrixXenServercontainstheCitrixXenServersIPaddress
andhostname.ThisstepisapplicableforbothsourceandtargetCitrixXenServers.
DisablethefirewallonbothsourceandtargetCitrixXenServersthroughsystemconfigsecurityleveltuiinterface.
TargetCitrixXenServershouldhaveallthenetworksexistingatsourceandbeingusedbytheVMsonthesourceCitrixXenServers.
Editthefile/etc/sysconfig/xapitosetthebasememorywhichistheminimumpossibleallocatedtodom0bysettingthevalueofXAPI_DOM0_MEM_BASE.Thisrequiresareboot
forthenewsettingtotakeeffect.Forexample, XAPI_DOM0_MEM_BASE=752
Notes:
Ifnotexistingalready,createnetworksatthetargetCitrixXenServerhostwiththesame
name_labelofthenetworksatsourceCitrixXenServerhost
7
7/27/2019 HDR ProtectingCitrixXenServer Scout
8/96
Part1:
Backing
up
through
LV
replication
approach
ThispartexplainsprotectingCitrixXenServerbybackinguplogicalvolumes. Theprepare
sectionisdividedintosubsections,combinedtogethertheyexplainidentifyingthevolumesthat
aretobereplicated,creatingguestmachinestructureonthetargetCitrixXenServerandwhereto
installDRScout.Theprotectsectionexplainssettingreplicationpairs,issuingconsistencytags
andmonitoringreplicationpairs.
Thefailoversectionisbranchedintotwo,thefirstbeingarollbackapproachandthesecond
beingasnapshot
approach.
Finally
afailback
is
described
in
detail.
8
7/27/2019 HDR ProtectingCitrixXenServer Scout
9/96
3 Introductiontosolution
This solution document describes how tobackup/restore a Citrix XenServer to another Citrix
XenServer.TheproductionCitrixserverwillbereferredtoasthesourceCitrixXenServerandthe
DRCitrixXenserverwillbereferredtoasatargetCitrixXenServer.
Thesolutionisdividedintothreesteps,i.e.
Prepare
ThissectionincludesinstallingtheCXserverandVXagentsonbothsourceandtargetCitrix
XenServers.Thencreatetheguestmachinesontargetthatcorrespondtothesourceguest
machineswiththesamedisksize.
Figure2
Protect
Oncetheguestmachinesarecreatedonthetargetshutdowntheguestmachinesandproceedto
setreplication
pair(s)
from
source
Citrix
XenServer
to
target
Citrix
XenServer.
Set
aconsistency
jobtoissueconsistencytagsonthesourcevolume(s)atregularintervals.
Recover
StopthesourceguestmachinesandrollbackthetargetvolumeseitherthroughtheCXUIor
throughCLI.Thenstartthetargetguestmachines.
Caution:
ThissolutionisforvirtualmachinesbasedonLVMs.
9
7/27/2019 HDR ProtectingCitrixXenServer Scout
10/96
4 Prepare
4.1 Identifylogicalvolumestobereplicated
Step1. Inthisstep,allthelogicalvolumesbelongingtotheirrespectivevirtualmachinesare
identifiedthroughtwocommands
AccessthesourceCitrixXenServerscommandprompttoissuethefollowingcommand
xe vm-disk-list multiple
Theabovecommand:
DisplaysthevirtualmachinesandtheircorrespondingVBDsandVDIsonthehost ExtracstheuuidofVDIofaVM
Figure3
Notes:
Theuuidofthevirtualmachinethatistobereplicated
10
7/27/2019 HDR ProtectingCitrixXenServer Scout
11/96
Step2. Oncethecommandiscomplete,proceedtoissuethefollowingcommandonthesource
CitrixXenServerscommandprompt.
lvdisplay
Thisdisplaysalltheavailablelogicalvolumesonthehost Identifythelogicalvolumewiththesameuuidasofthevirtualmachinethatistobe
protected.
Figure4
Aftertheabovetwocommand,youwillbeabletomapvirtualmachineswiththeirrespective
logicalvolumes.
11
7/27/2019 HDR ProtectingCitrixXenServer Scout
12/96
4.2 Recreateguestmachinesonthetarget
OpentheXenCenterinterface,thencreatetheguestmachinesonthetargetcitrixXenServerwith
the
same
configuration,
operating
system
and
disk
size.
Creating
Windows
and
Linux
virtual
machinesareslightlydifferent,howeverbothproceduresaredescribedbelow.
CreatingWindowvirtualmachine
Step1. OpentheXenCenterthenselectthetargetCitrixXenServerandclickonNewVM.This
willcreateanewvirtualmachineonthetargetCitrixXenServer.
Figure5
Step2. Thewizardfollows,selectthesametemplateasoftheproductionguest,andthenclick
onNext.
Figure6
12
7/27/2019 HDR ProtectingCitrixXenServer Scout
13/96
Step3. EntertheNameandDescriptionoftheguestmachineandthenclickonNextto
continue.
Figure7
Step4. YoumaychoosetoloadabootableCDintotheCDdriveorenterthepathofabootable
ISOimage.ThenclickonNext.
Figure8
13
7/27/2019 HDR ProtectingCitrixXenServer Scout
14/96
Step5. EnterthenumberofvirtualCPUsandphysicalmemoryandthenclickonNext.
Figure9
Step6. Thenextscreenopensup,ensurethatyouaddadiskofsimilarorlargersizeasofthe
sourceguestmachine,thenclickonNext
Figure10
14
7/27/2019 HDR ProtectingCitrixXenServer Scout
15/96
Step7. ThroughthisscreenyoucanaddadesirednumberofvirtualNICs.Createthevirtual
interfacessuchthattheconfigurationreflectsthatofthesourceVM.ClickonNextto
proceed
Figure11
Step8. ClickonFinishandthevirtualmachinestarts.
Figure12
15
7/27/2019 HDR ProtectingCitrixXenServer Scout
16/96
16
CreatingLinuxvirtualmachine
Step1.
A
new
New
Storage
is
created
to
load
aboot
image.
Select
the
target
Citrix
Xenserver
thenclickonNewstorage.
Figure13
Step2. YoumaychooseanyofthedesiredoptionthenclickonNext.(Forthisexample
however,weselectwindowsfilesharing)
Figure14
7/27/2019 HDR ProtectingCitrixXenServer Scout
17/96
Step3. EntertheNameandPathandthenenterthefullusernameandpasswordtoaccess
theenteredpath.ClickonFinishtocompleteaddinganewstorage.
Figure15
Step4. ThenewstoragenowappearsunderthetargetCitrixXenServer.ClickonNewVMto
createanewLinuxguestmachineonthetargetCitrixXenServer.
Figure16
17
7/27/2019 HDR ProtectingCitrixXenServer Scout
18/96
Step5. Thetemplatescreenopensup,selectthedesiredLinuxtemplate,andclickonNext.
Forthisexampleweselecta64birRHEL5operatingsystem.Ensurethatyouselectthesame
templateasoftheproductionguestmachine.
Figure17
Step6. EnterthenameofthenewvirtualmachineanddescriptionandthenclickonNext.
Figure18
18
7/27/2019 HDR ProtectingCitrixXenServer Scout
19/96
Step7. Selectthedesiredoption(aURL,CDdriveorISOimagepath). Enteringboot
parametersisoptional.ClickonNexttoproceed.
Figure19
Step8. EnterthenumberofvirtualCPUsandphysicalmemoryandthenclickonNext
Figure20
19
7/27/2019 HDR ProtectingCitrixXenServer Scout
20/96
Step9. Thenextscreenopensup,ensurethatyouaddadiskofthesamesizeasofthesource
guestmachineandthenclickonNext.
Figure21
Step10. ThroughthisscreenyoucanaddadesirednumberofvirtualNICs.Createthe
virtualinterfacessuchthattheconfigurationreflectsthatofthesourceVM.ClickonNext
toproceed.
Figure22
20
7/27/2019 HDR ProtectingCitrixXenServer Scout
21/96
Step11. ClickonFinishtostartthevirtualmachine.
Figure23
Step12. Themachinebootsupasshowninthepicturebelow
Figure24
21
7/27/2019 HDR ProtectingCitrixXenServer Scout
22/96
4.3 InstallDRScout
PleaserefertotheinstallationguideforinstallingandconfiguringCXserverandVXagents.
TheVXagentsaretobeinstalledonthesourceandtargetCitrixXenServers.
5 Protect
5.1 Replicatesourcevirtualmachines
Settingavolumereplicationisperformedinfourstepsasshowninthepicturebelow.
Figure25
Step1. OpentheCXUIandclickonVolumeProtection,thenexpandthesourceCitrix
XenServertoselectthesourcevolumecorrespondingtothesourceguestmachinethatistobe
protectedandclickonStartReplication
Figure26
22
7/27/2019 HDR ProtectingCitrixXenServer Scout
23/96
Step2. Thenextscreenopensup.ExpandthetargetCitrixXenServertoselecttherespective
targetvolume.Thenscrolldowntosetthereplicationoptions.
Figure27
Step3. AlltheprocessserverspointedtotheCXserverarelistedhere.Youmaychooseadesired
processserverwhichwillhandlealltheoffloadactivitiesspecifictothisreplicationpairs. For
betterscalabilityyoumaypointmoreprocessserverstotheCXserver. Selecttheprocess
serverandscrolldowntosettheReplicationOptions
Figure28
23
7/27/2019 HDR ProtectingCitrixXenServer Scout
24/96
Step4. EnabletheMediaRetentionandclickonSubmitandtherestareoptional.
Figure29
Step5. Thenextscreenopensup,choosethedesiredretentionpolicy,andclickonSubmitto
startthereplicationpair
Figure30
24
7/27/2019 HDR ProtectingCitrixXenServer Scout
25/96
Notes:
Repeatabovestepstoprotectanyadditionalguestmachines
SettingthereplicationpairissimilarforwindowsandLinuxplatforms.
5.2 Shutdowntargetvirtualmachines
Beforesettingthereplicationpairsshutdowntargetvirtualmachines.
Step1. ShutdowntheWindowstargetvirtualmachine(s)asshownbelow.
Figure31
Step2.
Similarly,
shutdown
the
Linux
target
virtual
machine(s)
Figure32
25
7/27/2019 HDR ProtectingCitrixXenServer Scout
26/96
26
AftershuttingdowntheVMensurethatalltheprotectedlogicalvolumes(correspondingtothe
virtualdisksoftheVMthatwasshutdown)areavailableornot.Ifanyprotectedlogicalvolume
isnotavailable,runlvchangeaytomakethelogicalvolumeavailable.
5.3 Monitor
replication
pair
InthisClickonProtectionStatustomonitorthereplicationstatus.Observethattherearetwo
replicationpairs,oneforwindows,andtheotherforLinuxvirtualmachines.
Figure33
Notes:
Youmaychoosetosetemailalertsortraps.PleaserefertotheAdminguide.pdffordetailed
description.
7/27/2019 HDR ProtectingCitrixXenServer Scout
27/96
5.4 Consistencytags
Step1. OncethereplicationpairreachesDifferentialSync,proceedtoissueconsistencytags
on
the
source
volume.
Consistency
tags
are
issued
on
the
source
virtual
machine,
Access
the
CXUIthroughthesourcevirtualmachinetodownloadthevacpclient.Downloadthe
appropriatevacpclientthroughSystem>Agentinstallers.
Figure34
vacp32suse9isusedforguestmachinewith32bitplatformsofSUSE9,SLES9SP2,SLES9SP3.
Vacpx64.exeisusedfor64bitwindowsplatforms VacpIA64.exeisusedfor64bitwindowsonItaniumplatform. Vacp64isusedfortheguestmachineswithany64bitplatform Vacp.exeisusedfor32bitwindowsplatforms Vacp32isusedfor32bitLinuxplatforms
27
7/27/2019 HDR ProtectingCitrixXenServer Scout
28/96
ForaLinuxvirtualmachineusethefollowingcommand
./vacp remote v ,, -t -serverdevice , -serverip [-serverport 20003]
serverport
20003
is
an
optional
switch
Figure35
28
7/27/2019 HDR ProtectingCitrixXenServer Scout
29/96
6 Failover
6.1 Differencesbetweenrollbackandsnapshot
Thetarget
virtual
machines
may
be
recovered
either
by
rolling
back
the
target
volumes
or
by
takingasnapshotofthetargetvolumes.
Table1:Differencesbetweenrollbackandsnapshot
Snapshot Rollback
Replication Intact Breaksreplicationpair
Storage Requiresanadditionalvolumewithequal
orlargercapacityontheDRserver
Noadditionalstorage
required
Consistency Bothtagbasedandtimebased Bothtagbasedandtimebased
Asnapshotisnotdisruptivetothereplicationpairwhereasarollbackbreaksthereplicationpair.
29
7/27/2019 HDR ProtectingCitrixXenServer Scout
30/96
6.2 Rollbackapproach
Targetvolumecanberolledbackintimebasedoraneventbackintimebasedonavacptag
issuedonthesourcevolumeorbasedontime.ArollbackcanbeperformedthroughCXUIand
command
line
interface
of
the
DR
Server.
This
example
describes
to
perform
an
event
based
roll
back.
Step1. OntheCXUI,clickonRecoverythenselectthereplicationpairandclickon
Rollback.Aconfirmationmessageappears,clickonOk
Figure36
Step2. Thenextscreenopensup,toperformaneventbasedrollback,selecttheoptionUsing
Applicationconsistency&Eventbased
Figure37
30
7/27/2019 HDR ProtectingCitrixXenServer Scout
31/96
Thischangestheinterfacebelowtoasearchresultanddisplayalistofavailableconsistency
tagstowhicharollbackmaybeperformed.SelectthedesiredtagandclickonSave
Figure38
Thiswillrollbackthetargetvolumetoaconsistentpoint
Step3. ClickonRecoverytocheckthestatusoftherollback.Arollbackissimilarforwindows
replicationpairsaswell.
Figure39
31
7/27/2019 HDR ProtectingCitrixXenServer Scout
32/96
6.3 Bringtargetvirtualmachinesonline
IncaseofanunplannedfailovershutdowntheproductionCitrixXenServeroncetherollbackis
complete.Forplannedfailovershutdownthesourcevirtualmachinesthenrebootthetarget
virtualmachines(whichshouldbeinhaltedstatenow).Thetargetguestmachinesshouldcome
up
normally.
Figure40
32
7/27/2019 HDR ProtectingCitrixXenServer Scout
33/96
6.4 Snapshotapproach
Thisinvolvesfoursteps
Prepareforsnapshotdisk:Createanewdiskwithequalcapacity Createsnapshot:CreateasnapshotofthetargetvolumethroughtheCXUI Swapdevice:Swaptheoriginaldevicewiththesnapshotdevice Startguestmachine:Theguestmachineshouldbootupwiththesnapshotdisk
Figure41
Prepareforthesnapshot
Createavirtualdiskequalinsizetothatofthetargetvolume.Thisvirtualdiskisusedtocontain
thesnapshot.
xe vdi-create name-label= sr-uuid= -type= -
size=
Figure42
Oncethediskiscreated,bringthenewlycreatedvirtualdiskonlinethroughthecommandas
shownbelowlvchange ay
Figure43
33
7/27/2019 HDR ProtectingCitrixXenServer Scout
34/96
Createasnapshot
Step1. OntheCXUI,clickonRecovery,selectthereplicationpair,andclickonRecover.
Figure44
Step2. Thenextscreenopensup.SelecttheoptionUsingApplicationconsistency&Event
basedtoperformaneventbasedrecovery.
Figure45
Notes:
ToperformatimebasedrecoveryselecttheoptionUsingtime
34
7/27/2019 HDR ProtectingCitrixXenServer Scout
35/96
Step3. SelectthetagfromtheSearchResult.SelecttheDriveTypeasPhysical,select
theLVcorrespondingtothenewlycreatedvirtualdiskunderthePhysicalDrivesand
clickonSave.ReferthesectionPrepareforthesnapshotonpageStep2.33
Figure46
Step4. ClickonRecoverytomonitorthesnapshotprogress.
Figure47
35
7/27/2019 HDR ProtectingCitrixXenServer Scout
36/96
Swapdevice
Step1. Oncethesnapshotiscomplete,accesstheXenCenterinterfaceandclickonStoragetab
thenonAttach.
Figure48
Step2. SelectthenewlycreatedvirtualvolumeandclickonAttach
Figure
49
36
7/27/2019 HDR ProtectingCitrixXenServer Scout
37/96
Step3. Nowthatthesnapshotdiskisattached,proceedtoremovethepreviousdiskasshownin
thepicture.
Figure50
Starttheguestmachine
Step4. Thenstarttheguestmachine.Nowthemachinewillbootthroughthesnapshotdisk.
Figure51
37
7/27/2019 HDR ProtectingCitrixXenServer Scout
38/96
7 Failback
Toperformafailbackinrollbackapproach,setareversereplicationfromthetargetLVtothe
sourceLV.
Similarly,
to
perform
afailback
from
snapshot
approach
perform
areverse
replication
fromthesnapshotLVtothesourceLV.Inthisexample,weperformafailbackfromsnapshotLV.
Failbackisperformedinfoursteps
Reversereplication:Areversereplicationissettoupdatetheproductionvolumewithallthechangesoccurredduringitsoutage
Consistencytag:Consistencytagsis issuedtowhicharollbackwillbeperformed Rollback:Thetargetvolumeisrolledbacktoaconsistencytag Startguestmachine:Theguestmachineshouldbootupwiththerolledbackvolume.
Figure52
7.1 Reversereplication
Step1. SetareversereplicationfromthesnapshotLVtothesourceLVwithmediaretentionas
shownin
the
picture
below.
Figure53
38
7/27/2019 HDR ProtectingCitrixXenServer Scout
39/96
7.2 Consistencytag
Step1. OncethereplicationpairreachesDifferentialSync,accesstheguestmachinethen
navigatetotheinmageagentinstallationpathtoissueaconsistencytag
Figure54
7.3 Rollback
Step1. Rollbackthetargetvolumebasedontheaboveissuedconsistencytag.Refertothe
sectionRollbackapproachonpage30toperformarollback.
Figure55
39
7/27/2019 HDR ProtectingCitrixXenServer Scout
40/96
7.4 Starttheguestmachine
Step1. Oncetherollbackiscomplete,accesstheXenCenterinterfacetostarttheguestmachine
Figure56
40
7/27/2019 HDR ProtectingCitrixXenServer Scout
41/96
Part
2:
Backing
up
through
SR
approach
TheSRreplication,explainstoreplicatecompletediskstothetargetCitrixXenServer.Thispart
containsthreesections
Prepare:ThepreparesectioncontainstwoFXjobsthatarerequiredbeforeproceedingwiththe
preparesection
Protect:ThissectionexplainstoreplicatessourceCitrixdiskstotargetCitrixdisks
Recover:Therecoversectionisbranchedintotwosubsections,therollbackapproachandthe
snapshotapproach.
41
7/27/2019 HDR ProtectingCitrixXenServer Scout
42/96
8 Introductiontothesolution
Toreplicatewholedisks(whichinturncontainvolumes)asvolumesfromonehosttoanother
thedrscout.conffileiseditedtoexposethedisksasvolumesontheCXUI.
Theprotectsectionexplainstoreplicateandissueconsistencytagsonthesevolumes
Figure57
Recoversectionexplainstorestorethevirtualmachinesontheproductionservertothe
correspondingDRServer.
9 Prepare
Editthefiledrscout.confundertheetcfolderofVXinstallationfolderandchangethe
ReportFullDeviceNamesOnlyfromthedefaultvalue0to1.Doingthiswillexposethefull
devicenametotheCXUI.EnsurethatyourestarttheVXagentservice
Figure58
MakesurethetargetCitrixXenServerdoesnothaveanyLVMbasedstoragerepository. Ifany
LVMbasedstoragerepositoryispresentthensetFXjobusinghard_clean_target.shas
destinationpostscript.ThiscleansuptheDRserver.Schedulethejobtorunondemand.
PleaserefertotheAdminguide.pdftosetFXjob
Notes:
TargetCitrixXenServershouldNOThaveanyLVMbasedstoragerepositoryconfiguredprior
totheprotectionofsourceCitrixXenServer.
42
7/27/2019 HDR ProtectingCitrixXenServer Scout
43/96
9.1 Cleanup
SettingupofFXjobtocleanuptheDRserverbeforeprotectingthesourceSRs
Step
1.
Select
the
DR
server
as
both
source
&
target
of
the
FX
job.
Specify
the
directory
as
/usr/local/InMage/Vx/failover_data
Figure59
Step2. Enterthepostscriptfordestinationas
/scripts/hard_clean_target.shandclickonFinish
Figure60
43
7/27/2019 HDR ProtectingCitrixXenServer Scout
44/96
Step3. SettheschedulingofthejobtoRunOnDemand.Thisjobshouldberunonlyonce
beforesettingupreplicationpairstoprotectthestoragerepositoriesoftheproductionserver.
Figure61
44
7/27/2019 HDR ProtectingCitrixXenServer Scout
45/96
9.2 Discovery
SetFXjobtorelaythemetadataoftheVMsofproductionservertotheDRServer.Use
xenserver_failover_prescript_sr.shasthesourceprescripttosettheFXjob.
Schedulethe
job
to
run
at
atime
interval
or
run
on
demand.
The
time
interval
should
be
decided
basedonthefrequencyofchangestoVMmetadata(e.g.,15minutes.).
Step1. SelecttheProductionseverassourceandDRserverasdestinationoftheFXjob.Enter
thesourceanddestinationdirectoryas/failover_dataandclickon
Next
Figure62
Step2. SelecttheCopythecontentsofthesourcedirectorydirectlyintothetargetdirectory
option asshownbelow
Figure63
45
7/27/2019 HDR ProtectingCitrixXenServer Scout
46/96
Step3. Entertheprescriptforthesourceas
/scripts/xenserver_failover_prescript_sr.shandclickonFinish
Figure64
Step4. SetthejobtoRunOnDemand.Itcanbescheduledtorunatanintervalalso.The
scheduletypehastobedecidedbasedontheprotectiontype,managedorunmanaged.For
managedprotectionRunOnDemandschedulewouldsuffice.
Figure65
46
7/27/2019 HDR ProtectingCitrixXenServer Scout
47/96
Step5. ClickonFileProtectionthenselectthejobandclickonStarttostartthejob.
Figure66
YoumaymonitorthelogfileoftheFXjob.Oncethediscoveryiscomplete,proceedtosettingup
theVXreplicationpairs.
Figure67
47
7/27/2019 HDR ProtectingCitrixXenServer Scout
48/96
10Protect
10.1VXreplication
Step1. ThenswitchtotheCXUItoreplicatethediskwhichnowappearsasavolume.Clickon
VolumeProtectionandselectthecorrespondingvolumeandclickonStartReplication
Figure68
Notes:
TargetdeviceshouldbeeitherlocaldeviceordevicebackedbyFibreChannelLUN. Failover
canrecoverthesourceSRtoSRoftypelvmorlvmohbaattarget.
Step2. Thetargetscreenappears,expandtheDRservertoselectthetargetvolume,thenscroll
downtosettheReplicationoptions
Figure69
48
7/27/2019 HDR ProtectingCitrixXenServer Scout
49/96
Step3. AlltheprocessserverspointedtotheCXserverarelistedhere,youmaychooseadesired
processserverwhichwillhandlealltheoffloadactivitiesspecifictothisreplicationpairs. For
betterscalabilityyoumaypointmoreprocessserverstotheCXserver. Selecttheprocess
serverandscrolldowntosettheReplicationOptions
Figure70
Step4. DisableMediaRetentionoptionandclickonSubmit
Figure71
Step5. Oncethepairisconfigured,accesstheDRservertoedit\etc\drscout.conf. ChangetheReportFullDeviceNamesOnlyfromthedefault
value1to0.DoingthiswillstopexposingthedevicenametotheCXUI.
Figure72
49
7/27/2019 HDR ProtectingCitrixXenServer Scout
50/96
Step6. RestarttheVXagentserviceontheDRserver
Step7. AccesstheCXUIandnavigatetoVolumeProtection>Targetthenselectthepair
configuredandclickonViewDetails.ClickontheConfigureretentiontoconfigure
mediaretentionforthisreplicationpair.
Figure73
Step8. Inthenextscreenselectthetypeofretentionpolicytobeenforcedforthisreplication
pair.Youmaychoosetimebased,spacebasedoracombinationofboth.ClickonSubmit
tostartthereplicationpair
Figure74
Step9. ThereplicationpairreachesDifferentialSyncasshowninthepicturebelow
Figure75
50
7/27/2019 HDR ProtectingCitrixXenServer Scout
51/96
10.2Consistency
To
recover
individual
VM,
you
may
choose
to
execute
consistency
tags
on
the
virtual
machine
Proceedtoissueconsistencytagsthroughthevirtualmachinescommandprompt.Accessthe
sourcecommandpromptthennavigatetotheVXagentinstallationpathtoissuethefollowing
command
./vacp remote v , serverdevice ,,-serverip -t
Figure76
AtagcanbeissuesattheCitrixXenServerhostlevelalso.Usevacptoissuetagontheblock
device(s).
Optionx
has
to
be
used
along
with
option
v
to
issue
tag
without
any
consistency
mechanism.Forexample,toissuetagondismountedvolumes/rawdevices.
./vacp [-v ,..] [-t ] [-x] [-h]
Figure77
51
7/27/2019 HDR ProtectingCitrixXenServer Scout
52/96
52
11Recovery
11.1Rollback
Step1. Toperformarecovery,switchtotheCXUIandclickonRecovery,thenselectthe
replicationpair
and
click
on
Rollback.
A
confirmation
appears,
click
on
Ok
to
continue
Figure78
Step2. Thenextscreenopensup,selecttheoptionUsingApplicationconsistency&Event
based,thischangestheinterfacebelowtoSearchResultandselecttheconsistencytag
andclickonSave
Figure79
Step3. Verifyiftherollbackoftargetvolumebacktotheconsistencypointisfinished.
7/27/2019 HDR ProtectingCitrixXenServer Scout
53/96
11.2RestoreVMs
RunXenServerfailoverjobtorecoverthestoragerepositoriesonthereplicateddevices&the
virtualmachines.
Step1. SetupthefailoverjobwithsourceanddestinationastheDRServerwithdirectorytobe
replicatedas/failover_data
Figure80
Step2.
Enter
the
post
script
for
destination
as
/scripts/xenserver_failover_postscript_sr.shandclickonFinish
Figure81
53
7/27/2019 HDR ProtectingCitrixXenServer Scout
54/96
Step3. SetthejobtoRunondemandandclickonFinish
Figure82
Step4. ClickonFileProtectionthenselectthefailoverjobandclickStarttorecoverallthe
SRsandtorestorealltheVMstothetargetXenServerhost.
Figure83
Caution:
TheMACaddressesofthenetworkinterfaces&DHCPconfiguredIPsofthesourceVMmight
notberetainedafterfailover.
54
7/27/2019 HDR ProtectingCitrixXenServer Scout
55/96
Notes:
Incaseofanunsuccessfulfailover, run/xenserver_reset_target.sh
toresetthestatus(tostatebeforethefailoverattempt)oftargetXenServerbeforeareattempt
offailover.
Currentlywedonotsupportrecoveringvirtualmachinesthatspanacrossmultiplestorage
repositories.
12Failback
Toperformafailbackinrollbackapproach,setareversereplicationfromthetargetSRtothe
sourceSR.Similarly,toperformafailbackfromsnapshotapproach,performareversereplication
fromthesnapshotSRtothesourceSR.Inthisexample,weperformafailbackfromsnapshotSR.
Failbackisperformedinfoursteps
Reversereplication:Areversereplicationissettoupdatetheproductionvolumewithallthechangesoccurredduringitsoutage
Consistencytag:Consistencytagsis issuedtowhicharollbackwillbeperformed Rollback:Thetargetvolumeisrolledbacktoaconsistencytag Startguestmachine:Theguestmachineshouldbootupwiththerolledbackvolume.
Figure79
12.1Reversereplication
Step1. SetareversereplicationfromthesnapshotSRtothesourceSRwithmediaretention.The
section11.1VXReplicationcanbereferred.
55
7/27/2019 HDR ProtectingCitrixXenServer Scout
56/96
12.2Consistencytag
Step2. OncethereplicationpairreachesDifferentialSync,accesstheguestmachinethen
navigate
to
the
inmage
agent
installation
path
to
issue
a
consistency
tag.
The
section
11.2
Consistency canbereferred.
12.3Rollback
Step3. Rollbackthetargetvolumebasedontheaboveissuedconsistencytag.Refertothe
sectionRollbackapproachonpage30toperformarollback.
12.4Starttheguestmachine
Step4. Oncetherollbackiscomplete,accesstheXenCenterinterfacetostarttheguestmachines
56
7/27/2019 HDR ProtectingCitrixXenServer Scout
57/96
Part3:
Backing
up
XenServer
resource
pool
throughLVreplication
57
7/27/2019 HDR ProtectingCitrixXenServer Scout
58/96
13Introductiontothesolution
Thissolutiondocumentdescribeshowtobackup/restoreaXenServerpooltoanotherCitrix
XenServer.TheproductionCitrixXenServerwillbereferredtoasthesourceCitrixXenServerand
theDR
Citrix
XenServer
will
be
referred
to
as
atarget
Citrix
XenServer.
Figure84
58
7/27/2019 HDR ProtectingCitrixXenServer Scout
59/96
Thesolutionisdividedintothreesteps,i.e.
Prepare
ThissectionincludesinstallingtheCXserverandVXagentsontheallXenServerpoolservers
andthetargetCitrixXenServerforDR.Thencreatetheguestmachinesontargetthatcorrespond
tothesourceguestmachineswiththesamedisksize.
Figure85
Protect
Oncetheguestmachinesarecreatedonthetargetshutdowntheguestmachinesandproceedto
setthereplicationpair(s)fromsourceCitrixtotargetCitrixserver.Shutdownthetargetguest
machine(s).Setaconsistencyjobtoissueconsistencytagsonthesourcevolume(s)atregular
intervals.
Recover
Stopthe
source
guest
machines
and
rollback
the
target
volumes
either
through
the
CX
UI
or
throughCLI.Thenstartthetargetguestmachines.
Caution:
ThissolutionisforvirtualmachinesbasedonLVMs.
Ensurethatyouhaveexecuteprivilegesforvacpscripts
59
7/27/2019 HDR ProtectingCitrixXenServer Scout
60/96
14Prepare
AccessthetargetCitrixXenServerandcreatetheguestmachineswiththesamediskcapacity.
InstalltheVXagentonallpoolmembers
15Protect
15.1Setreplicationpairs
AccesstheCXUItoreplicatetheguestmachines(thesearevirtualmachinesontheproduction
CitrixXenServerpool). GuestmachinesbelongingtoapooledCitrixXenServerwillappearas
clustervolumes.
Step
1.
Click
on
Volume
protection
then
expand
the
Xen
Pools
to
find
the
cluster
group
correspondingtotheguestmachine.ClickonStartReplication
Figure86
60
7/27/2019 HDR ProtectingCitrixXenServer Scout
61/96
Step2. SelectthevolumefromthegroupandclickonNext
Figure87
Step3. Thenextscreenopensup,expandthetargetCitrixXenServertoselectthetargetvolume,
thenscrolldowntosettheReplicationOptions
Figure88
61
7/27/2019 HDR ProtectingCitrixXenServer Scout
62/96
Step4. AlltheprocessserverspointedtotheCXserverarelistedhere,youmaychooseadesired
processserverwhichwillhandlealltheoffloadactivitiesspecifictothisreplicationpairs. For
betterscalabilityyoumaypointmoreprocessserverstotheCXserver. Selecttheprocess
serverandscrolldowntosettheReplicationOptions
Figure89
Step5. EnsurethattheMediaRetentionoptionisenabled,therestofthefeaturesare
optional.ClickonSubmittocontinue
Figure90
62
7/27/2019 HDR ProtectingCitrixXenServer Scout
63/96
Step6. ByenablingtheMediaRetentionoption,youwillrequiretodefinearetentionpolicy.
Selectthedesiredretentionpolicysuchastimebased,spacebasedoracombinationofboth.
ClickonSubmittocontinue
Figure91
Step7.
Select
the
replication
pair
and
click
on
Finish
to
start
the
replication
pair
Figure92
63
7/27/2019 HDR ProtectingCitrixXenServer Scout
64/96
Step8. Thiswillstartthereplicationpair.Shutdownthetargetguestmachines.Thereplication
pairwillreachDifferentialSync
Figure93
Step9. Makesure,aftershuttingdowntheVM,alltheprotectedlogicalvolumes(corresponding
tothevirtualdisksoftheVMthatwasshutdown)areavailableornot.Ifanyprotected
logicalvolumeisnotavailable,runlvchangeaytomakethelogical
volumeavailable.
64
7/27/2019 HDR ProtectingCitrixXenServer Scout
65/96
15.2Consistencytags
Accessthesourceguestmachineandissueconsistencytags.Thesetagslateractasmarkersto
whichyoumayperformarecovery.Inthisexampleconsistencytagisissuedmanually,youmay
however
choose
to
schedule
this
through
a
cron
job.
Step1. Toissueaconsistencytag,youwillneedtodownloadtheappropriatevacpscript.You
candownloadthisofftheCXUIbynavigatingtoSystem>Agentinstallers
Figure94
Step2. Ensurethatthescriptisgivenexecuteprivilegebeforeyouissuethefollowingcommand
./vacp32 v -remote serverdevice < s o u r ce v o l u m e > -t -serverip -
serverport 20003
Figure95
65
7/27/2019 HDR ProtectingCitrixXenServer Scout
66/96
66
16Recover
Torecoveryyouwillneedtorollbackthetargetvolumebacktoaconsistentpoint. Ensurethat
thesourceguestmachinesareshutdownbeforeperformingarollback.
Step1.
Click
on
Recovery
on
the
CX
UI,
select
the
replication
pair
to
be
rolled
back
and
click
onRollback.Youwillbepromptedforaconfirmation,clickonOktocontinue
Figure96
Step2. Thenextscreenappears,selecttheUsingApplicationconsistency&Eventbased
option
Figure97
7/27/2019 HDR ProtectingCitrixXenServer Scout
67/96
Step3. Youshouldseetheinterfacechangetothesearchresultasshownbelow.Selectthe
desiredconsistencytagtowhichthetargetvolumewillberolledbackandclickonSave
Figure98
Step4.
The
roll
back
will
soon
complete
then
proceed
to
the
next
step
Figure99
Step5. StarttheguestmachinesonthetargetCitrixXenServer,theyshouldcomeupnormally
withoutrequiringanyconfigurationchanges
67
7/27/2019 HDR ProtectingCitrixXenServer Scout
68/96
Part4: PoolPoolLVSolution
ThissolutiondocumentexplainsbackingupandrestoringanentireXenServerresourcepooltoa
DRXenServerpool.ThesourceXenServerpoolwillbereferredtoastheproductionXenServer
poolandthetargetXenServerpoolwillbereferredtoasaDRXenServerpool.
68
7/27/2019 HDR ProtectingCitrixXenServer Scout
69/96
69
17Introductiontothesolution
Thesolutionisdividedintothreesteps,i.e.
Prepare
ThissectionincludesinstallingtheCXserverandVXagentsontheallmembersofthe
productionaswellasDRXenServerpoolmembers.ThencreatethevirtualdisksinthetargetSR
thatareofthesamesizeasthatofthevirtualdisksoftheguestmachinestobeprotected.
Protect
Oncethevirtualdisksarecreatedonthetarget,proceedtosetthereplicationpair(s)from
productionXenServerresourcepooltocorrespondingvirtualdiskatDRXenServerresource
pool.Setconsistencyjob(s)foreachprotectedguestmachinetoissueconsistencytagsonthe
sourcevolume(s)atregularintervals.
Failover
Therearetwoapproachestoperformafailback.Therollbackapproachrequiresyoutostopthe
replicationpairandthenperformafailover.Thesnapshotapproachontheotherhandisnon
disruptiveandpreferredwhentestingthesolution.
Failback
WhentheproductionXenServerisbackonlineandreadytoresumeitsrole,afailbackis
performedtoupdatetheproductionXenServerwithallthechangesoccurredduringitsoutage.
Thisissimilartothatofaplannedfailover.
Caution:
DonotassociatethevirtualdiskscreatedinthetargetSRwithanyoftheVMsaslongasthe
replicationpairisalive.
Ensurethatyouhaveexecuteprivilegesforvacpscripts.
7/27/2019 HDR ProtectingCitrixXenServer Scout
70/96
18Prepare
ThissectionincludesinstallingtheCXserverandVXagentsontheallmembersofthe
productionaswellasDRXenServerpoolmembers.
Createthe
virtual
disks,
within
shared
SR
of
DR
XenServer
resource
pool,
that
are
of
the
same
sizeasthevirtualdisksoftheguestmachinestobeprotected.
Figure100
70
7/27/2019 HDR ProtectingCitrixXenServer Scout
71/96
19Protect
19.1Setreplicationpairs
Step1. SwitchtotheDRXenServerpooltoidentifythelogicalvolumethatcorrespondstothe
newlycreatedvirtualdiskthenrunthecommandlvchange -ay ona
poolmemberthatactsastargetforthereplicationpair.Thiswillactivatethelogicalvolume
onthatpoolmember.
Figure101
Step2. AccesstheCXUI&replicateallthevirtualdisksoftheguestmachinesontheproduction
XenServerpool). GuestmachinesbelongingtoapooledCitrixXenServerwillappearasXen
Poolvolumes.
Click
on
Volume
protection
then
expand
Xen
Pools
to
find
the
virtual
diskcorrespondingtotheguestmachine.ClickonStartReplication
Figure102
71
7/27/2019 HDR ProtectingCitrixXenServer Scout
72/96
Step3. Inthenextscreen,expandthetargetXenServerpoolmembertoselectthetargetvolume,
thenscrolldowntosettheReplicationOptions
Figure103
Step4. AlltheprocessserverspointedtotheCXserverarelistedhere,youmaychooseadesired
processserverwhichwillhandlealltheoffloadactivitiesspecifictothisreplicationpairs. For
betterscalabilityyoumaypointmoreprocessserverstotheCXserver. Selecttheprocess
serverandscrolldowntosettheReplicationOptions
Figure104
72
7/27/2019 HDR ProtectingCitrixXenServer Scout
73/96
Step5. EnsurethattheMediaRetentionoptionisenabled,therestofthefeaturesare
optional.ClickonSubmittocontinue
Figure105
Step6. ByenablingtheMediaRetentionoption,youwillrequiretodefinearetentionpolicy.
Selectthedesiredretentionpolicysuchastimebased,spacebasedoracombinationofboth.
ClickonSubmittocontinue
73
7/27/2019 HDR ProtectingCitrixXenServer Scout
74/96
74
Figure106
Step7. SelectthereplicationpairandclickonFinishtostartthereplicationpair.
Step8.
This
will
start
the
replication
pair.
The
replication
pair
will
reach
Differential
Sync
Figure107
7/27/2019 HDR ProtectingCitrixXenServer Scout
75/96
19.2Consistencytags
Accessthesourceguestmachineandissueconsistencytags.Thesetagslateractasmarkersto
whichyoumayperformarecovery.Inthisexampleconsistencytagisissuedmanually,youmay
howeverchoosetoschedulethisthroughacronjob.
Step1. Toissueaconsistencytag,youwillneedtodownloadtheappropriatevacpscript.You
candownloadthisofftheCXUIbynavigatingtoSystem>Agentinstallers
Figure108
Ensurethatthescriptisgivenexecuteprivilegebeforeyouissuethefollowingcommand
./vacp32 v -remote serverdevice < s o u r ce v o l u m e > -t
-serverip -serverport 20003
Figure109
75
7/27/2019 HDR ProtectingCitrixXenServer Scout
76/96
20Failover
20.1Rollbackapproach
Torecoveryouwillneedtorollbackthetargetvolumebacktoaconsistentpoint. Ensurethat
thesourceguestmachinesareshutdownbeforeperformingarollback.
Step1. ClickonRecoveryontheCXUI,selectthereplicationpairtoberolledbackandclick
onRollback.Youwillbepromptedforaconfirmation,clickonOktocontinue
Figure110
Step2. Thenextscreenappears,selecttheUsingApplicationconsistency&Eventbased
option
Figure111
76
7/27/2019 HDR ProtectingCitrixXenServer Scout
77/96
Step3. Youshouldseetheinterfacechangetothesearchresultasshownbelow.Selectthe
desiredconsistencytagtowhichthetargetvolumewillberolledbackandclickonSave
Figure112
Step4. Therollbackwillsooncompletethenproceedtothenextstep
Figure113
Step5. StarttheguestmachinesonthetargetCitrixXenServerpool,theyshouldcomeup
normallywithoutrequiringanyconfigurationchanges
77
7/27/2019 HDR ProtectingCitrixXenServer Scout
78/96
20.2SnapshotApproach
Ratherthanrollingthetargetvolumebackandstoppingthereplicationpair,youmaychoosethe
snapshotapproachofthetargetvolumetherebykeepingthereplicationpairintact.
20.2.1Prepareforsnapshot
Step1. Inthisapproachwewillfirstcreateavirtualdisk(SnapShotDisk)inthetargetSR
Figure114
Step2. MakethisvirtualdiskavailabletotheCXbychangingitsstatususingthecommand
lvchangeay.
78
7/27/2019 HDR ProtectingCitrixXenServer Scout
79/96
20.2.2Performsnapshot
Step1. ClickonRecoveryontheCXUI,selectthereplicationpairtoberolledbackandclick
onRecoverand clickonOktocontinue
Figure115
Step2. Thenextscreenappears,selecttheUsingApplicationconsistency&Eventbased
option
Figure116
Step3. UsePhysicalandthenselecttheDrivecorrespondingtothenewSnapShotDisk VDI
createdforthispurpose.Nowtakeasnapshotofthetarget,ontothisdisk.
Figure117
79
7/27/2019 HDR ProtectingCitrixXenServer Scout
80/96
80
Step4. CreateanewVMcorrespondingtothatofthesourceguestmachineinTargetsystem.
NowshutdownthisVM.
Step5. RemovetheoriginaldiskfromthisVMandattachthesnapshotdisktothisVM.
Figure118
Step6. StarttheVM,itshouldbootupnormally.
Figure119
7/27/2019 HDR ProtectingCitrixXenServer Scout
81/96
21Failback
21.1Rollbackapproach
Toperformafailbackinrollbackapproach,setareversereplicationfromthetargetPooltothe
sourcePool.NowperformareversereplicationfromtheTargetDrivetothesourceVDI(newly
created).
Failbackisperformedinfoursteps
Reversereplication:Areversereplicationissettoupdatetheproductionvolumewithallthechangesoccurredduringitsoutage
Consistencytag:Consistencytagsis issuedtowhicharollbackwillbeperformed Rollback:Thetargetvolumeisrolledbacktoaconsistencytag Startguestmachine:Theguestmachineshouldbootupwiththerolledbackvolume.
Figure79
Reversereplication
Step1. SetareversereplicationoftheTargetVMtothenewlycreatedVDIinthesourceSRwith
mediaretention.
Consistencytag
Step2. OncethereplicationpairreachesDifferentialSync,accesstheguestmachinethen
navigatetotheinmageagentinstallationpathtoissueaconsistencytag.Thesection11.2
Consistency canbereferred.
Rollback
Step3. Rollbackthetargetvolumebasedontheaboveissuedconsistencytag.Refertothe
sectionRollbackapproachonpage30toperformarollback.
Starttheguestmachine
Step4. Oncetherollbackiscomplete,accesstheXenCenterinterfacetostarttheguestmachines
81
7/27/2019 HDR ProtectingCitrixXenServer Scout
82/96
82
21.2Snapshotapproach
Toperformafailbackfromsnapshotapproach,weneedtocreatetwonewVDIinSourceSRand
activatetheVDIinoneoftheHostsysteminSourcePool.OneVDIwillbeusedtosetupa
replicationpairandtheotherwillbeusedtotakesnapshotofthereplicationpairbasedonsome
consistency
tag.
Now
perform
a
reverse
replication
from
the
Target
snapshot
Drive
to
the
source
VDI(newlycreated).
Failbackisperformedinfoursteps
Reversereplication:Areversereplicationissettoupdatetheproductionvolumewithallthechangesoccurredduringitsoutage
Consistencytag:Consistencytagsis issuedtowhicharollbackwillbeperformed Snapshot:Takeonesnapshotofthereplicationpairbasedon aconsistencytag Attachthesnapshotdrive:NowattachthissnapshotdrivetoanewlycreatedVM. Startguestmachine:Theguestmachineshouldbootupwiththerolledbackvolume.
Figure79
Reversereplication
Step1. SetareversereplicationoftheTargetVMtothenewlycreatedVDIinthesourceSRwith
mediaretention.
Consistencytag
Step2. OncethereplicationpairreachesDifferentialSync,accesstheguestmachinethen
navigatetotheinmageagentinstallationpathtoissueaconsistencytag.Thesection11.2
Consistency canbereferred.
Snapshot
Step3. UsethesecondVDItotakeasnapshotofthetargetdriveoncethepairisindifferential
syncbasedontheaboveissuedconsistencytag.RefertothesectionSnapshotapproachon
page33toperformarollback.
Starttheguestmachine
Step4.
Once
the
snapshot
is
complete,
create
anew
VM
>shutdown
the
VM
>detach
the
boot
diskandattachthissnapshotdisk.AccesstheXenCenterinterfacetostarttheguestmachines
7/27/2019 HDR ProtectingCitrixXenServer Scout
83/96
Part5:
Protecting
XenServer
Pool:
Master
targetguestapproach
ThispartexplainsprotectingaXenServerresourcepoolbyreplicatingsourcepoolstorageto
targetpoolstorageattachedtothemasterguestmachineonthetargetXenServerresourcepool
83
7/27/2019 HDR ProtectingCitrixXenServer Scout
84/96
22Introduction
ThissectiondescribesprotectingthesourceXenServerpooltoamasterguestmachineonthe
targetXenServerpool.
Figure120
Prepare
Thereareatotalofsixstepstobeperformedinthisstageasshowninthepictureabove.
Protect
ThissectionexplainstoreplicatethevirtualdisksofVMsonsourcepooltonewlycreatedvirtual
disksattachedtomasterguestmachineandissuingconsistencytagsatregularintervals.Issuing
consistencytagsmaybeautomatedbyusingacronjoboranyscheduler
Recover
Thissectiondescribesstepsinvolvedinperformingaphysicalsnapshotandbootinganother
guestmachineoverthesnapshotdisk.
84
7/27/2019 HDR ProtectingCitrixXenServer Scout
85/96
23Prepare
Step1. InstalltheVXagentoneachofthesourcepoolmembers
Step2. CreateRHEL5masterguestmachineontargetpool
Step3.
Access
the
master
guest
machines
command
prompt
and
open
the
file
/boot/grub/menutosetthedefaultvalueto1.Thisloadstheregularkernelratherthan
theXenServerskernel.
Figure121
Step4. InstalltheVXagentonthemasterguestmachine
Step5. Createanewvirtualdisk&attachittomasterguestmachinethroughtheXenCenter
interface
Figure122
85
7/27/2019 HDR ProtectingCitrixXenServer Scout
86/96
24Protect
24.1Setreplicationpairs
Step1.
Access
the
CX
UI
and
click
on
Volume
Protection.
Expand
Xen
Pools
to
find
the
list
ofpoolsavailable. Thenexpandthesourcepooltoselectthesourceguestmachineandclick
onStartReplication
Figure123
Step2. SelecttheUnconfiguredpoolDriveandclickonNext
Figure124
86
7/27/2019 HDR ProtectingCitrixXenServer Scout
87/96
Step3. Thenextscreenappears,expandthemasterguestmachineandselectthenewly
created/attachedvirtualdiskandscrolldowntosettheReplicationoptions
Figure125
Step4. SelectthedesiredProcessServerandchecktheEnableCDPRetentionoptionclickon
Submittocontinue.
Figure126
87
7/27/2019 HDR ProtectingCitrixXenServer Scout
88/96
Step5. FilluptherequiredRetentionOptionsandclickSubmitbutton.
Figure127
Step6. Thefinalscreenappears,selecttheConfiguredPoolDriveandclickonFinishto
startthereplicationpair.
Figure128
Step7. ThereplicationpairstartswithResyncingStep1thenmovestoResyncingstep2and
finallyreachesDifferentialSync,indicatingthattheinitialcopyismadeonthetargetvolume
Figure129
88
7/27/2019 HDR ProtectingCitrixXenServer Scout
89/96
89
7/27/2019 HDR ProtectingCitrixXenServer Scout
90/96
24.2Issueconsistencytags
OncethereplicationpairisinDifferentialSync,accessthesourceguestmachinescommand
prompt
and
issue
the
consistency
tag
through
the
vacp
utility.
The
vacp
utility
may
be
downloadedfromtheCXUIunderSystem>Agentinstallers
Figure130
90
7/27/2019 HDR ProtectingCitrixXenServer Scout
91/96
25Recover
25.1Addadisktocontainthesnapshot
AccesstheXenCenterinterfacetocreateanextradiskontargetpool&attachtothemasterguest
machinetoholdthesnapshotasshowninthepicturebelow.
Figure131
91
7/27/2019 HDR ProtectingCitrixXenServer Scout
92/96
25.2CreateaSnapshot
Step1. AccesstheCXUIandclickonRecovery,thenselectthereplicationpairandclickon
Recover
Figure132
Step2. SelecttheUsingApplicationconsistency&Eventbasedoption
Figure133
92
7/27/2019 HDR ProtectingCitrixXenServer Scout
93/96
Step3. TheSearchResultappears;selectthedesiredconsistencytag,thenselectDrive
TypeasPhysical.Selectthenewlyaddeddisktoholdthevirtualsnapshot,enterthe
mountpointandclickonSave.
Figure134
Notes:
Youmayrecoverspecificfilesbytakingavirtualsnapshot.Youwillneedtochoosethe
DriveTypeasVirtual.
Afterthevirtualsnapshotisready,accessthemasterguestscommandprompttosetupa
loop
device
to
the
virtual
snapshot
device.
This
loop
device
may
be
mounted
to
recover
individualfiles.
Thecommandtosetupaloopdeviceis
losetup/dev/loop/dev/vs/cx
Step4. YoumayobservethesnapshotstatusthroughtheRecoveryscreen
Figure135
93
7/27/2019 HDR ProtectingCitrixXenServer Scout
94/96
25.3Detachsnapshotdiskfrommasterguestmachine
Step1. AccesstheXenServerinterfaceandDeactivatethesnapshotvolumeasshowninthe
picturebelow.
Figure136
Step2. ThenDetachthesnapshotvolumefromthemasterguestmachine
Figure137
Step3. Youwillbepromptedforaconfirmation,clickonYestocontinue.
94
7/27/2019 HDR ProtectingCitrixXenServer Scout
95/96
25.4AttachtheSnapshotdisktoanotherGuest
Step1. Createanotherguestmachine
Step2. Attachthesnapshotdiskasshowninthepicture.
Note:VMshouldbestartedatleastoncebeforeattachingthebootvolumetotheVM
Figure138
Step
3.
Detach
the
earlier
disk,
you
will
be
asked
for
confirmation,
click
on
Yes
to
continue
Figure139
Step4. Starttheguestmachine,itshouldbootupnormally.
95
7/27/2019 HDR ProtectingCitrixXenServer Scout
96/96
Hitachi Data Systems
Corporate Headquarters750 Central ExpresswaySanta Clara, California 95050-2627U.S.A.Phone: 1 408 970 1000
Asia Pacific and Americas750 Central ExpresswaySanta Clara, California 95050-2627U.S.A.Phone: 1 408 970 [email protected]
Europe Headquarters
http://www.hds.com/mailto:[email protected]:[email protected]:[email protected]:[email protected]://www.hds.com/