Professional Documents
Culture Documents
HDR ProtectingCitrixXenServer Scout
HDR ProtectingCitrixXenServer Scout
MK-98DF8221-00
Copyright 2009 Hitachi, Ltd., Hitachi Data Systems
Corporation, ALL RIGHTS RESERVED
Notice: No part of this publication may be reproduced or
transmitted in any form or by any means, electronic or
mechanical, including photocopying and recording, or stored
in a database or retrieval system for any purpose without
the express written permission of Hitachi, Ltd. and Hitachi
Data Systems Corporation (hereinafter referred to as
Hitachi Data Systems).
Hitachi, Ltd. and Hitachi Data Systems reserve the right to
make changes to this document at any time without notice
and assume no responsibility for its use. Hitachi, Ltd. and
Hitachi Data Systems products and services can only be
ordered under the terms and conditions of Hitachi Data
Systems applicable agreements. All of the features
described 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 information
on feature and product availability.
This document contains the most current information
available at the time of publication. When new and/or
revised information becomes available, this entire document
will be updated and distributed to all registered users.
Hitachi is a registered trademark of Hitachi, Ltd. in the
United States and other countries. Hitachi Data Systems is a
registered trademark and service mark of Hitachi, Ltd. in the
United States and other countries.
All other trademarks, service marks, and company names in
this document are properties of their respective owners.
Contents
1
Howthissolutionworks ................................................................................................................... 6
2
Checklist.............................................................................................................................................. 7
Part1:BackingupthroughLVreplicationapproach........................................................................... 8
3
Introductiontosolution .................................................................................................................... 9
4
Prepare................................................................................................................................................ 10
4.1
Identifylogicalvolumestobereplicated.............................................................................. 10
4.2
Recreateguestmachinesonthetarget................................................................................. 12
CreatingWindowvirtualmachine.................................................................................................. 12
CreatingLinuxvirtualmachine....................................................................................................... 16
4.3
InstallDRScout........................................................................................................................ 22
5
Protect ................................................................................................................................................. 22
5.1
Replicatesourcevirtualmachines ......................................................................................... 22
5.2
Shutdowntargetvirtualmachines ........................................................................................ 25
5.3
Monitorreplicationpair .......................................................................................................... 26
5.4
Consistencytags....................................................................................................................... 27
6
Failover ............................................................................................................................................... 29
6.1
Differencesbetweenrollbackandsnapshot ......................................................................... 29
6.2
Rollbackapproach.................................................................................................................... 30
6.3
Bringtargetvirtualmachinesonline ..................................................................................... 32
6.4
Snapshotapproach................................................................................................................... 33
Prepareforthesnapshot................................................................................................................... 33
Createasnapshot............................................................................................................................... 34
Swapdevice........................................................................................................................................ 36
Starttheguestmachine..................................................................................................................... 37
7
Failback .............................................................................................................................................. 38
7.1
Reversereplication................................................................................................................... 38
7.2
Consistencytag......................................................................................................................... 39
7.3
Rollback ..................................................................................................................................... 39
7.4
Starttheguestmachine ........................................................................................................... 40
Part2:BackingupthroughSRapproach ............................................................................................. 41
8
Introductiontothesolution............................................................................................................ 42
9
Prepare................................................................................................................................................ 42
9.1
Cleanup ..................................................................................................................................... 43
9.2
Discovery................................................................................................................................... 45
10
Protect ............................................................................................................................................ 48
10.1
VXreplication ........................................................................................................................... 48
10.2
Consistency ............................................................................................................................... 51
11
Recovery ........................................................................................................................................ 52
11.1
Rollback ..................................................................................................................................... 52
11.2
RestoreVMs.............................................................................................................................. 53
12
Failback ......................................................................................................................................... 55
12.1
Reversereplication................................................................................................................... 55
12.2
Consistencytag......................................................................................................................... 56
12.3
Rollback ..................................................................................................................................... 56
12.4
Starttheguestmachine ........................................................................................................... 56
3
Part3:BackingupXenServerresourcepoolthroughLVreplication ............................................. 57
13
Introductiontothesolution....................................................................................................... 58
14
Prepare........................................................................................................................................... 60
15
Protect ............................................................................................................................................ 60
15.1
Setreplicationpairs ................................................................................................................. 60
15.2
Consistencytags....................................................................................................................... 65
16
Recover .......................................................................................................................................... 66
Part4:PoolPoolLVSolution .......................................................................................................... 68
17
Introductiontothesolution....................................................................................................... 69
18
Prepare........................................................................................................................................... 70
19
Protect ............................................................................................................................................ 71
19.1
Setreplicationpairs ................................................................................................................. 71
19.2
Consistencytags....................................................................................................................... 75
20
Failover.......................................................................................................................................... 76
20.1
Rollbackapproach.................................................................................................................... 76
20.2
SnapshotApproach.................................................................................................................. 78
20.2.1
Prepareforsnapshot ....................................................................................................... 78
20.2.2
Performsnapshot ............................................................................................................ 79
21
Failback ......................................................................................................................................... 81
21.1
Rollbackapproach.................................................................................................................... 81
Reversereplication ............................................................................................................................ 81
Consistencytag .................................................................................................................................. 81
Rollback............................................................................................................................................... 81
Starttheguestmachine..................................................................................................................... 81
21.2
Snapshotapproach................................................................................................................... 82
Reversereplication ............................................................................................................................ 82
Consistencytag .................................................................................................................................. 82
Snapshot.............................................................................................................................................. 82
Starttheguestmachine..................................................................................................................... 82
Part5:ProtectingXenServerPool:Mastertargetguestapproach.................................................... 83
22
Introduction.................................................................................................................................. 84
23
Prepare........................................................................................................................................... 85
24
Protect ............................................................................................................................................ 86
24.1
Setreplicationpairs ................................................................................................................. 86
24.2
Issueconsistencytags .............................................................................................................. 90
25
Recover .......................................................................................................................................... 91
25.1
Addadisktocontainthesnapshot ....................................................................................... 91
25.2
CreateaSnapshot..................................................................................................................... 92
25.3
Detachsnapshotdiskfrommasterguestmachine.............................................................. 94
25.4
AttachtheSnapshotdisktoanotherGuest .......................................................................... 95
Conventions
Keywords,commandbuttonsandothersuchfieldsareenclosedinwhilebeingbold(for
example,todenote
Nextisused).
InputsforcommandsandVariablesareshowninItalics
Filenamesandpathsareshowninbold
CommandsareshowninCourier new font
Optionalkeywordsandargumentsareenclosedwithin[].
Notes:
Containssuggestionsortips.
Caution:
Containscriticalinformation
1 Howthissolutionworks
This document contains two major parts; the first part explains the LV based solution, where
individual volumes are backed 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;thefirstistorollback
the VMs virtual disks at the target Citrix XenServer to a consistent point and start using the
targetvirtualmachines.ThesecondapproachistotakeasnapshotofthevirtualdisksoftheVMs
andbootthevirtualmachinesoverthesnapshotvolume.
Refertothechecklistinthenextsectionbeforedeployingthesolution.
2 Checklist
EnsureVXagentsareinstalledonboththeCitrixXenServers
InstallCXserverwithinthesameLANasofthesourceCitrixXenServer
PointallVXagentstothesameCXserverandassignappropriatelicenses
Ensurethat/etc/hostsontheCitrixXenServercontainstheCitrixXenServersIPaddress
andhostname.ThisstepisapplicableforbothsourceandtargetCitrixXenServers.
DisablethefirewallonbothsourceandtargetCitrixXenServersthroughsystemconfig
securityleveltuiinterface.
TargetCitrixXenServershouldhaveallthenetworksexistingatsourceandbeingusedby
theVMsonthesourceCitrixXenServers.
Editthefile/etc/sysconfig/xapitosetthebasememorywhichistheminimumpossible
allocatedtodom0bysettingthevalueofXAPI_DOM0_MEM_BASE.Thisrequiresareboot
forthenewsettingtotakeeffect.Forexample,XAPI_DOM0_MEM_BASE=752
Notes:
Ifnotexistingalready,createnetworksatthetargetCitrixXenServerhostwiththesame
name_labelofthenetworksatsourceCitrixXenServerhost
Part1:BackingupthroughLVreplication
approach
ThispartexplainsprotectingCitrixXenServerbybackinguplogicalvolumes.Theprepare
sectionisdividedintosubsections,combinedtogethertheyexplainidentifyingthevolumesthat
aretobereplicated,creatingguestmachinestructureonthetargetCitrixXenServerandwhereto
installDRScout.Theprotectsectionexplainssettingreplicationpairs,issuingconsistencytags
andmonitoringreplicationpairs.
Thefailoversectionisbranchedintotwo,thefirstbeingarollbackapproachandthesecond
beingasnapshotapproach.Finallyafailbackisdescribedindetail.
3 Introductiontosolution
This solution document describes how to backup/restore a Citrix XenServer to another Citrix
XenServer.TheproductionCitrixserverwillbereferredtoasthesourceCitrixXenServerandthe
DRCitrixXenserverwillbereferredtoasatargetCitrixXenServer.
Thesolutionisdividedintothreesteps,i.e.
Prepare
ThissectionincludesinstallingtheCXserverandVXagentsonbothsourceandtargetCitrix
XenServers.Thencreatetheguestmachinesontargetthatcorrespondtothesourceguest
machineswiththesamedisksize.
Figure2
Protect
Oncetheguestmachinesarecreatedonthetargetshutdowntheguestmachinesandproceedto
setreplicationpair(s)fromsourceCitrixXenServertotargetCitrixXenServer.Setaconsistency
jobtoissueconsistencytagsonthesourcevolume(s)atregularintervals.
Recover
StopthesourceguestmachinesandrollbackthetargetvolumeseitherthroughtheCXUIor
throughCLI.Thenstartthetargetguestmachines.
Caution:
ThissolutionisforvirtualmachinesbasedonLVMs.
4 Prepare
4.1 Identifylogicalvolumestobereplicated
Step1. Inthisstep,allthelogicalvolumesbelongingtotheirrespectivevirtualmachinesare
identifiedthroughtwocommands
AccessthesourceCitrixXenServerscommandprompttoissuethefollowingcommand
xe vm-disk-list multiple
Theabovecommand:
DisplaysthevirtualmachinesandtheircorrespondingVBDsandVDIsonthehost
ExtracstheuuidofVDIofaVM
Figure3
Notes:
Theuuidofthevirtualmachinethatistobereplicated
10
Step2. Oncethecommandiscomplete,proceedtoissuethefollowingcommandonthesource
CitrixXenServerscommandprompt.
lvdisplay
Thisdisplaysalltheavailablelogicalvolumesonthehost
Identifythelogicalvolumewiththesameuuidasofthevirtualmachinethatistobe
protected.
Figure4
Aftertheabovetwocommand,youwillbeabletomapvirtualmachineswiththeirrespective
logicalvolumes.
11
4.2 Recreateguestmachinesonthetarget
OpentheXenCenterinterface,thencreatetheguestmachinesonthetargetcitrixXenServerwith
thesameconfiguration,operatingsystemanddisksize.CreatingWindowsandLinuxvirtual
machinesareslightlydifferent,howeverbothproceduresaredescribedbelow.
CreatingWindowvirtualmachine
Step1. OpentheXenCenterthenselectthetargetCitrixXenServerandclickonNewVM.This
willcreateanewvirtualmachineonthetargetCitrixXenServer.
Figure5
Step2. Thewizardfollows,selectthesametemplateasoftheproductionguest,andthenclick
onNext.
Figure6
12
Step3. EntertheNameandDescriptionoftheguestmachineandthenclickonNextto
continue.
Figure7
Step4. YoumaychoosetoloadabootableCDintotheCDdriveorenterthepathofabootable
ISOimage.ThenclickonNext.
Figure8
13
Step5. EnterthenumberofvirtualCPUsandphysicalmemoryandthenclickonNext.
Figure9
Step6. Thenextscreenopensup,ensurethatyouaddadiskofsimilarorlargersizeasofthe
sourceguestmachine,thenclickonNext
Figure10
14
Step7. ThroughthisscreenyoucanaddadesirednumberofvirtualNICs.Createthevirtual
interfacessuchthattheconfigurationreflectsthatofthesourceVM.ClickonNextto
proceed
Figure11
Step8. ClickonFinishandthevirtualmachinestarts.
Figure12
15
CreatingLinuxvirtualmachine
Step1. AnewNewStorageiscreatedtoloadabootimage.SelectthetargetCitrixXenserver
thenclickonNewstorage.
Figure13
Step2. YoumaychooseanyofthedesiredoptionthenclickonNext.(Forthisexample
however,weselectwindowsfilesharing)
Figure14
16
Step3. EntertheNameandPathandthenenterthefullusernameandpasswordtoaccess
theenteredpath.ClickonFinishtocompleteaddinganewstorage.
Figure15
Step4. ThenewstoragenowappearsunderthetargetCitrixXenServer.ClickonNewVMto
createanewLinuxguestmachineonthetargetCitrixXenServer.
Figure16
17
Step5. Thetemplatescreenopensup,selectthedesiredLinuxtemplate,andclickonNext.
Forthisexampleweselecta64birRHEL5operatingsystem.Ensurethatyouselectthesame
templateasoftheproductionguestmachine.
Figure17
Step6. EnterthenameofthenewvirtualmachineanddescriptionandthenclickonNext.
Figure18
18
Step7. Selectthedesiredoption(aURL,CDdriveorISOimagepath).Enteringboot
parametersisoptional.ClickonNexttoproceed.
Figure19
Step8. EnterthenumberofvirtualCPUsandphysicalmemoryandthenclickonNext
Figure20
19
Step9. Thenextscreenopensup,ensurethatyouaddadiskofthesamesizeasofthesource
guestmachineandthenclickonNext.
Figure21
Step10.
ThroughthisscreenyoucanaddadesirednumberofvirtualNICs.Createthe
virtualinterfacessuchthattheconfigurationreflectsthatofthesourceVM.ClickonNext
toproceed.
Figure22
20
Step11.
ClickonFinishtostartthevirtualmachine.
Figure23
Step12.
Themachinebootsupasshowninthepicturebelow
Figure24
21
4.3 InstallDRScout
PleaserefertotheinstallationguideforinstallingandconfiguringCXserverandVXagents.
TheVXagentsaretobeinstalledonthesourceandtargetCitrixXenServers.
5 Protect
5.1 Replicatesourcevirtualmachines
Settingavolumereplicationisperformedinfourstepsasshowninthepicturebelow.
Figure25
Step1. OpentheCXUIandclickonVolumeProtection,thenexpandthesourceCitrix
XenServertoselectthesourcevolumecorrespondingtothesourceguestmachinethatistobe
protectedandclickonStartReplication
Figure26
22
Step2. Thenextscreenopensup.ExpandthetargetCitrixXenServertoselecttherespective
targetvolume.Thenscrolldowntosetthereplicationoptions.
Figure27
Step3. AlltheprocessserverspointedtotheCXserverarelistedhere.Youmaychooseadesired
processserverwhichwillhandlealltheoffloadactivitiesspecifictothisreplicationpairs.For
betterscalabilityyoumaypointmoreprocessserverstotheCXserver.Selecttheprocess
serverandscrolldowntosettheReplicationOptions
Figure28
23
Step4. EnabletheMediaRetentionandclickonSubmitandtherestareoptional.
Figure29
Step5. Thenextscreenopensup,choosethedesiredretentionpolicy,andclickonSubmitto
startthereplicationpair
Figure30
24
Notes:
Repeatabovestepstoprotectanyadditionalguestmachines
SettingthereplicationpairissimilarforwindowsandLinuxplatforms.
5.2 Shutdowntargetvirtualmachines
Beforesettingthereplicationpairsshutdowntargetvirtualmachines.
Step1. ShutdowntheWindowstargetvirtualmachine(s)asshownbelow.
Figure31
Step2. Similarly,shutdowntheLinuxtargetvirtualmachine(s)
Figure32
25
AftershuttingdowntheVMensurethatalltheprotectedlogicalvolumes(correspondingtothe
virtualdisksoftheVMthatwasshutdown)areavailableornot.Ifanyprotectedlogicalvolume
isnotavailable,runlvchangeay<Logical_Volume>tomakethelogicalvolumeavailable.
5.3 Monitorreplicationpair
InthisClickonProtectionStatustomonitorthereplicationstatus.Observethattherearetwo
replicationpairs,oneforwindows,andtheotherforLinuxvirtualmachines.
Figure33
Notes:
Youmaychoosetosetemailalertsortraps.PleaserefertotheAdminguide.pdffordetailed
description.
26
5.4 Consistencytags
Step1. OncethereplicationpairreachesDifferentialSync,proceedtoissueconsistencytags
onthesourcevolume.Consistencytagsareissuedonthesourcevirtualmachine,Accessthe
CXUIthroughthesourcevirtualmachinetodownloadthevacpclient.Downloadthe
appropriatevacpclientthroughSystem>Agentinstallers.
Figure34
vacp32suse9isusedforguestmachinewith32bitplatformsofSUSE9,SLES9SP2,SLES9
SP3.
Vacpx64.exeisusedfor64bitwindowsplatforms
VacpIA64.exeisusedfor64bitwindowsonItaniumplatform.
Vacp64isusedfortheguestmachineswithany64bitplatform
Vacp.exeisusedfor32bitwindowsplatforms
Vacp32isusedfor32bitLinuxplatforms
27
ForaLinuxvirtualmachineusethefollowingcommand
./vacp remote v <volume1>,<volume2>, -t <name of the consistency tag> serverdevice <corresponding volume on the source Citrix XenServer >, -serverip
<Source Citrix XenServers IP address> [-serverport 20003]
serverport20003isanoptionalswitch
Figure35
28
6 Failover
6.1 Differencesbetweenrollbackandsnapshot
Thetargetvirtualmachinesmayberecoveredeitherbyrollingbackthetargetvolumesorby
takingasnapshotofthetargetvolumes.
Table1:Differencesbetweenrollbackandsnapshot
Snapshot
Rollback
Replication
Storage
Intact
Requiresanadditionalvolumewithequal
orlargercapacityontheDRserver
Bothtagbasedandtimebased
Breaksreplicationpair
Noadditionalstorage
required
Bothtagbasedandtimebased
Consistency
Asnapshotisnotdisruptivetothereplicationpairwhereasarollbackbreaksthereplicationpair.
29
6.2 Rollbackapproach
Targetvolumecanberolledbackintimebasedoraneventbackintimebasedonavacptag
issuedonthesourcevolumeorbasedontime.ArollbackcanbeperformedthroughCXUIand
commandlineinterfaceoftheDRServer.Thisexampledescribestoperformaneventbasedroll
back.
Step1. OntheCXUI,clickonRecoverythenselectthereplicationpairandclickon
Rollback.Aconfirmationmessageappears,clickonOk
Figure36
Step2. Thenextscreenopensup,toperformaneventbasedrollback,selecttheoptionUsing
Applicationconsistency&Eventbased
Figure37
30
Thischangestheinterfacebelowtoasearchresultanddisplayalistofavailableconsistency
tagstowhicharollbackmaybeperformed.SelectthedesiredtagandclickonSave
Figure38
Thiswillrollbackthetargetvolumetoaconsistentpoint
Step3. ClickonRecoverytocheckthestatusoftherollback.Arollbackissimilarforwindows
replicationpairsaswell.
Figure39
31
6.3 Bringtargetvirtualmachinesonline
IncaseofanunplannedfailovershutdowntheproductionCitrixXenServeroncetherollbackis
complete.Forplannedfailovershutdownthesourcevirtualmachinesthenrebootthetarget
virtualmachines(whichshouldbeinhaltedstatenow).Thetargetguestmachinesshouldcome
upnormally.
Figure40
32
6.4 Snapshotapproach
Thisinvolvesfoursteps
Prepareforsnapshotdisk:Createanewdiskwithequalcapacity
Createsnapshot:CreateasnapshotofthetargetvolumethroughtheCXUI
Swapdevice:Swaptheoriginaldevicewiththesnapshotdevice
Startguestmachine:Theguestmachineshouldbootupwiththesnapshotdisk
Figure41
Prepareforthesnapshot
Createavirtualdiskequalinsizetothatofthetargetvolume.Thisvirtualdiskisusedtocontain
thesnapshot.
Figure42
Oncethediskiscreated,bringthenewlycreatedvirtualdiskonlinethroughthecommandas
shownbelow
lvchange ay <Logical volume corresponding to the virtual disk>
Figure43
33
Createasnapshot
Step1. OntheCXUI,clickonRecovery,selectthereplicationpair,andclickonRecover.
Figure44
Step2. Thenextscreenopensup.SelecttheoptionUsingApplicationconsistency&Event
basedtoperformaneventbasedrecovery.
Figure45
Notes:
ToperformatimebasedrecoveryselecttheoptionUsingtime
34
Step3. SelectthetagfromtheSearchResult.SelecttheDriveTypeasPhysical,select
theLVcorrespondingtothenewlycreatedvirtualdiskunderthePhysicalDrivesand
clickonSave.ReferthesectionPrepareforthesnapshotonpageStep2.33
Figure46
Step4. ClickonRecoverytomonitorthesnapshotprogress.
Figure47
35
Swapdevice
Step1. Oncethesnapshotiscomplete,accesstheXenCenterinterfaceandclickonStoragetab
thenonAttach.
Figure48
Step2. SelectthenewlycreatedvirtualvolumeandclickonAttach
Figure49
36
Step3. Nowthatthesnapshotdiskisattached,proceedtoremovethepreviousdiskasshownin
thepicture.
Figure50
Starttheguestmachine
Step4. Thenstarttheguestmachine.Nowthemachinewillbootthroughthesnapshotdisk.
Figure51
37
7 Failback
Toperformafailbackinrollbackapproach,setareversereplicationfromthetargetLVtothe
sourceLV.Similarly,toperformafailbackfromsnapshotapproachperformareversereplication
fromthesnapshotLVtothesourceLV.Inthisexample,weperformafailbackfromsnapshotLV.
Failbackisperformedinfoursteps
Reversereplication:Areversereplicationissettoupdatetheproductionvolumewithallthe
changesoccurredduringitsoutage
Consistencytag:Consistencytagsisissuedtowhicharollbackwillbeperformed
Rollback:Thetargetvolumeisrolledbacktoaconsistencytag
Startguestmachine:Theguestmachineshouldbootupwiththerolledbackvolume.
Figure52
7.1 Reversereplication
Step1. SetareversereplicationfromthesnapshotLVtothesourceLVwithmediaretentionas
showninthepicturebelow.
Figure53
38
7.2 Consistencytag
Step1. OncethereplicationpairreachesDifferentialSync,accesstheguestmachinethen
navigatetotheinmageagentinstallationpathtoissueaconsistencytag
Figure54
7.3 Rollback
Step1. Rollbackthetargetvolumebasedontheaboveissuedconsistencytag.Refertothe
sectionRollbackapproachonpage30toperformarollback.
Figure55
39
7.4 Starttheguestmachine
Step1. Oncetherollbackiscomplete,accesstheXenCenterinterfacetostarttheguestmachine
Figure56
40
Part2:BackingupthroughSRapproach
TheSRreplication,explainstoreplicatecompletediskstothetargetCitrixXenServer.Thispart
containsthreesections
Prepare:ThepreparesectioncontainstwoFXjobsthatarerequiredbeforeproceedingwiththe
preparesection
Protect:ThissectionexplainstoreplicatessourceCitrixdiskstotargetCitrixdisks
Recover:Therecoversectionisbranchedintotwosubsections,therollbackapproachandthe
snapshotapproach.
41
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
9.1 Cleanup
SettingupofFXjobtocleanuptheDRserverbeforeprotectingthesourceSRs
Step1. SelecttheDRserverasbothsource&targetoftheFXjob.Specifythedirectoryas
/usr/local/InMage/Vx/failover_data
Figure59
Step2. Enterthepostscriptfordestinationas<VXinstallationpath>
/scripts/hard_clean_target.shandclickonFinish
Figure60
43
Step3. SettheschedulingofthejobtoRunOnDemand.Thisjobshouldberunonlyonce
beforesettingupreplicationpairstoprotectthestoragerepositoriesoftheproductionserver.
Figure61
44
9.2 Discovery
SetFXjobtorelaythemetadataoftheVMsofproductionservertotheDRServer.Use
xenserver_failover_prescript_sr.shasthesourceprescripttosettheFXjob.
Schedulethejobtorunatatimeintervalorrunondemand.Thetimeintervalshouldbedecided
basedonthefrequencyofchangestoVMmetadata(e.g.,15minutes.).
Step1. SelecttheProductionseverassourceandDRserverasdestinationoftheFXjob.Enter
thesourceanddestinationdirectoryas<VX_INSTALL_PATH>/failover_dataandclickon
Next
Figure62
Step2. SelecttheCopythecontentsofthesourcedirectorydirectlyintothetargetdirectory
optionasshownbelow
Figure63
45
Step3. Entertheprescriptforthesourceas
<VX_INSTALL_PATH>/scripts/xenserver_failover_prescript_sr.shandclickonFinish
Figure64
Step4. SetthejobtoRunOnDemand.Itcanbescheduledtorunatanintervalalso.The
scheduletypehastobedecidedbasedontheprotectiontype,managedorunmanaged.For
managedprotectionRunOnDemandschedulewouldsuffice.
Figure65
46
Step5. ClickonFileProtectionthenselectthejobandclickonStarttostartthejob.
Figure66
YoumaymonitorthelogfileoftheFXjob.Oncethediscoveryiscomplete,proceedtosettingup
theVXreplicationpairs.
Figure67
47
10 Protect
10.1 VXreplication
Step1. ThenswitchtotheCXUItoreplicatethediskwhichnowappearsasavolume.Clickon
VolumeProtectionandselectthecorrespondingvolumeandclickonStartReplication
Figure68
Notes:
TargetdeviceshouldbeeitherlocaldeviceordevicebackedbyFibreChannelLUN.Failover
canrecoverthesourceSRtoSRoftypelvmorlvmohbaattarget.
Step2. Thetargetscreenappears,expandtheDRservertoselectthetargetvolume,thenscroll
downtosettheReplicationoptions
Figure69
48
Step3. AlltheprocessserverspointedtotheCXserverarelistedhere,youmaychooseadesired
processserverwhichwillhandlealltheoffloadactivitiesspecifictothisreplicationpairs.For
betterscalabilityyoumaypointmoreprocessserverstotheCXserver.Selecttheprocess
serverandscrolldowntosettheReplicationOptions
Figure70
Step4. DisableMediaRetentionoptionandclickonSubmit
Figure71
Step5. Oncethepairisconfigured,accesstheDRservertoedit<VXinstallation
folder>\etc\drscout.conf.ChangetheReportFullDeviceNamesOnlyfromthedefault
value1to0.DoingthiswillstopexposingthedevicenametotheCXUI.
Figure72
49
Step6. RestarttheVXagentserviceontheDRserver
Step7. AccesstheCXUIandnavigatetoVolumeProtection>Targetthenselectthepair
configuredandclickonViewDetails.ClickontheConfigureretentiontoconfigure
mediaretentionforthisreplicationpair.
Figure73
Step8. Inthenextscreenselectthetypeofretentionpolicytobeenforcedforthisreplication
pair.Youmaychoosetimebased,spacebasedoracombinationofboth.ClickonSubmit
tostartthereplicationpair
Figure74
Step9. ThereplicationpairreachesDifferentialSyncasshowninthepicturebelow
Figure75
50
10.2 Consistency
TorecoverindividualVM,youmaychoosetoexecuteconsistencytagsonthevirtualmachine
Proceedtoissueconsistencytagsthroughthevirtualmachinescommandprompt.Accessthe
sourcecommandpromptthennavigatetotheVXagentinstallationpathtoissuethefollowing
command
./vacp remote v <volume1>,<volume2> serverdevice <disk1>,<disk2>,serverip <ip address of vacp server> -t <name of the tag>
Figure76
AtagcanbeissuesattheCitrixXenServerhostlevelalso.Usevacptoissuetagontheblock
device(s).Optionxhastobeusedalongwithoptionvtoissuetagwithoutanyconsistency
mechanism.Forexample,toissuetagondismountedvolumes/rawdevices.
Figure77
51
11 Recovery
11.1 Rollback
Step1. Toperformarecovery,switchtotheCXUIandclickonRecovery,thenselectthe
replicationpairandclickonRollback.Aconfirmationappears,clickonOktocontinue
Figure78
Step2. Thenextscreenopensup,selecttheoptionUsingApplicationconsistency&Event
based,thischangestheinterfacebelowtoSearchResultandselecttheconsistencytag
andclickonSave
Figure79
Step3. Verifyiftherollbackoftargetvolumebacktotheconsistencypointisfinished.
52
11.2 RestoreVMs
RunXenServerfailoverjobtorecoverthestoragerepositoriesonthereplicateddevices&the
virtualmachines.
Step1. SetupthefailoverjobwithsourceanddestinationastheDRServerwithdirectorytobe
replicatedas<VX_INSTALL_PATH>/failover_data
Figure80
Step2. Enterthepostscriptfordestinationas
<VX_INSTALL_PATH>/scripts/xenserver_failover_postscript_sr.shandclickonFinish
Figure81
53
Step3. SetthejobtoRunondemandandclickonFinish
Figure82
Step4. ClickonFileProtectionthenselectthefailoverjobandclickStarttorecoverallthe
SRsandtorestorealltheVMstothetargetXenServerhost.
Figure83
Caution:
TheMACaddressesofthenetworkinterfaces&DHCPconfiguredIPsofthesourceVMmight
notberetainedafterfailover.
54
Notes:
Incaseofanunsuccessfulfailover,run<VX_INSTALL_PATH>/xenserver_reset_target.sh
toresetthestatus(tostatebeforethefailoverattempt)oftargetXenServerbeforeareattempt
offailover.
Currentlywedonotsupportrecoveringvirtualmachinesthatspanacrossmultiplestorage
repositories.
12 Failback
Toperformafailbackinrollbackapproach,setareversereplicationfromthetargetSRtothe
sourceSR.Similarly,toperformafailbackfromsnapshotapproach,performareversereplication
fromthesnapshotSRtothesourceSR.Inthisexample,weperformafailbackfromsnapshotSR.
Failbackisperformedinfoursteps
Reversereplication:Areversereplicationissettoupdatetheproductionvolumewithallthe
changesoccurredduringitsoutage
Consistencytag:Consistencytagsisissuedtowhicharollbackwillbeperformed
Rollback:Thetargetvolumeisrolledbacktoaconsistencytag
Startguestmachine:Theguestmachineshouldbootupwiththerolledbackvolume.
Figure79
12.1 Reversereplication
Step1. SetareversereplicationfromthesnapshotSRtothesourceSRwithmediaretention.The
section11.1VXReplicationcanbereferred.
55
12.2 Consistencytag
Step2. OncethereplicationpairreachesDifferentialSync,accesstheguestmachinethen
navigatetotheinmageagentinstallationpathtoissueaconsistencytag.Thesection11.2
Consistencycanbereferred.
12.3 Rollback
Step3. Rollbackthetargetvolumebasedontheaboveissuedconsistencytag.Refertothe
sectionRollbackapproachonpage30toperformarollback.
12.4 Starttheguestmachine
Step4. Oncetherollbackiscomplete,accesstheXenCenterinterfacetostarttheguestmachines
56
Part3:BackingupXenServerresourcepool
throughLVreplication
57
13 Introductiontothesolution
Thissolutiondocumentdescribeshowtobackup/restoreaXenServerpooltoanotherCitrix
XenServer.TheproductionCitrixXenServerwillbereferredtoasthesourceCitrixXenServerand
theDRCitrixXenServerwillbereferredtoasatargetCitrixXenServer.
Figure84
58
Thesolutionisdividedintothreesteps,i.e.
Prepare
ThissectionincludesinstallingtheCXserverandVXagentsontheallXenServerpoolservers
andthetargetCitrixXenServerforDR.Thencreatetheguestmachinesontargetthatcorrespond
tothesourceguestmachineswiththesamedisksize.
Figure85
Protect
Oncetheguestmachinesarecreatedonthetargetshutdowntheguestmachinesandproceedto
setthereplicationpair(s)fromsourceCitrixtotargetCitrixserver.Shutdownthetargetguest
machine(s).Setaconsistencyjobtoissueconsistencytagsonthesourcevolume(s)atregular
intervals.
Recover
StopthesourceguestmachinesandrollbackthetargetvolumeseitherthroughtheCXUIor
throughCLI.Thenstartthetargetguestmachines.
Caution:
ThissolutionisforvirtualmachinesbasedonLVMs.
Ensurethatyouhaveexecuteprivilegesforvacpscripts
59
14 Prepare
AccessthetargetCitrixXenServerandcreatetheguestmachineswiththesamediskcapacity.
InstalltheVXagentonallpoolmembers
15 Protect
15.1 Setreplicationpairs
AccesstheCXUItoreplicatetheguestmachines(thesearevirtualmachinesontheproduction
CitrixXenServerpool).GuestmachinesbelongingtoapooledCitrixXenServerwillappearas
clustervolumes.
Step1. ClickonVolumeprotectionthenexpandtheXenPoolstofindtheclustergroup
correspondingtotheguestmachine.ClickonStartReplication
Figure86
60
Step2. SelectthevolumefromthegroupandclickonNext
Figure87
Step3. Thenextscreenopensup,expandthetargetCitrixXenServertoselectthetargetvolume,
thenscrolldowntosettheReplicationOptions
Figure88
61
Step4. AlltheprocessserverspointedtotheCXserverarelistedhere,youmaychooseadesired
processserverwhichwillhandlealltheoffloadactivitiesspecifictothisreplicationpairs.For
betterscalabilityyoumaypointmoreprocessserverstotheCXserver.Selecttheprocess
serverandscrolldowntosettheReplicationOptions
Figure89
Step5. EnsurethattheMediaRetentionoptionisenabled,therestofthefeaturesare
optional.ClickonSubmittocontinue
Figure90
62
Step6. ByenablingtheMediaRetentionoption,youwillrequiretodefinearetentionpolicy.
Selectthedesiredretentionpolicysuchastimebased,spacebasedoracombinationofboth.
ClickonSubmittocontinue
Figure91
Step7. SelectthereplicationpairandclickonFinishtostartthereplicationpair
Figure92
63
Step8. Thiswillstartthereplicationpair.Shutdownthetargetguestmachines.Thereplication
pairwillreachDifferentialSync
Figure93
Step9. Makesure,aftershuttingdowntheVM,alltheprotectedlogicalvolumes(corresponding
tothevirtualdisksoftheVMthatwasshutdown)areavailableornot.Ifanyprotected
logicalvolumeisnotavailable,runlvchangeay<Logical_Volume>tomakethelogical
volumeavailable.
64
15.2 Consistencytags
Accessthesourceguestmachineandissueconsistencytags.Thesetagslateractasmarkersto
whichyoumayperformarecovery.Inthisexampleconsistencytagisissuedmanually,youmay
howeverchoosetoschedulethisthroughacronjob.
Step1. Toissueaconsistencytag,youwillneedtodownloadtheappropriatevacpscript.You
candownloadthisofftheCXUIbynavigatingtoSystem>Agentinstallers
Figure94
Step2. Ensurethatthescriptisgivenexecuteprivilegebeforeyouissuethefollowingcommand
Figure95
65
16 Recover
Torecoveryyouwillneedtorollbackthetargetvolumebacktoaconsistentpoint.Ensurethat
thesourceguestmachinesareshutdownbeforeperformingarollback.
Step1. ClickonRecoveryontheCXUI,selectthereplicationpairtoberolledbackandclick
onRollback.Youwillbepromptedforaconfirmation,clickonOktocontinue
Figure96
Step2. Thenextscreenappears,selecttheUsingApplicationconsistency&Eventbased
option
Figure97
66
Step3. Youshouldseetheinterfacechangetothesearchresultasshownbelow.Selectthe
desiredconsistencytagtowhichthetargetvolumewillberolledbackandclickonSave
Figure98
Step4. Therollbackwillsooncompletethenproceedtothenextstep
Figure99
Step5. StarttheguestmachinesonthetargetCitrixXenServer,theyshouldcomeupnormally
withoutrequiringanyconfigurationchanges
67
Part4:PoolPoolLVSolution
ThissolutiondocumentexplainsbackingupandrestoringanentireXenServerresourcepooltoa
DRXenServerpool.ThesourceXenServerpoolwillbereferredtoastheproductionXenServer
poolandthetargetXenServerpoolwillbereferredtoasaDRXenServerpool.
68
17 Introductiontothesolution
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.
69
18 Prepare
ThissectionincludesinstallingtheCXserverandVXagentsontheallmembersofthe
productionaswellasDRXenServerpoolmembers.
Createthevirtualdisks,withinsharedSRofDRXenServerresourcepool,thatareofthesame
sizeasthevirtualdisksoftheguestmachinestobeprotected.
Figure100
70
19 Protect
19.1 Setreplicationpairs
Step1. SwitchtotheDRXenServerpooltoidentifythelogicalvolumethatcorrespondstothe
newlycreatedvirtualdiskthenrunthecommandlvchange -ay <DEVICE_PATH>ona
poolmemberthatactsastargetforthereplicationpair.Thiswillactivatethelogicalvolume
onthatpoolmember.
Figure101
Step2. AccesstheCXUI&replicateallthevirtualdisksoftheguestmachinesontheproduction
XenServerpool).GuestmachinesbelongingtoapooledCitrixXenServerwillappearasXen
Poolvolumes.ClickonVolumeprotectionthenexpandXenPoolstofindthevirtual
diskcorrespondingtotheguestmachine.ClickonStartReplication
Figure102
71
Step3. Inthenextscreen,expandthetargetXenServerpoolmembertoselectthetargetvolume,
thenscrolldowntosettheReplicationOptions
Figure103
Step4. AlltheprocessserverspointedtotheCXserverarelistedhere,youmaychooseadesired
processserverwhichwillhandlealltheoffloadactivitiesspecifictothisreplicationpairs.For
betterscalabilityyoumaypointmoreprocessserverstotheCXserver.Selecttheprocess
serverandscrolldowntosettheReplicationOptions
Figure104
72
Step5. EnsurethattheMediaRetentionoptionisenabled,therestofthefeaturesare
optional.ClickonSubmittocontinue
Figure105
Step6. ByenablingtheMediaRetentionoption,youwillrequiretodefinearetentionpolicy.
Selectthedesiredretentionpolicysuchastimebased,spacebasedoracombinationofboth.
ClickonSubmittocontinue
73
Figure106
Step7. SelectthereplicationpairandclickonFinishtostartthereplicationpair.
Step8. Thiswillstartthereplicationpair.ThereplicationpairwillreachDifferentialSync
Figure107
74
19.2 Consistencytags
Accessthesourceguestmachineandissueconsistencytags.Thesetagslateractasmarkersto
whichyoumayperformarecovery.Inthisexampleconsistencytagisissuedmanually,youmay
howeverchoosetoschedulethisthroughacronjob.
Step1. Toissueaconsistencytag,youwillneedtodownloadtheappropriatevacpscript.You
candownloadthisofftheCXUIbynavigatingtoSystem>Agentinstallers
Figure108
Ensurethatthescriptisgivenexecuteprivilegebeforeyouissuethefollowingcommand
Figure109
75
20 Failover
20.1 Rollbackapproach
Torecoveryouwillneedtorollbackthetargetvolumebacktoaconsistentpoint.Ensurethat
thesourceguestmachinesareshutdownbeforeperformingarollback.
Step1. ClickonRecoveryontheCXUI,selectthereplicationpairtoberolledbackandclick
onRollback.Youwillbepromptedforaconfirmation,clickonOktocontinue
Figure110
Step2. Thenextscreenappears,selecttheUsingApplicationconsistency&Eventbased
option
Figure111
76
Step3. Youshouldseetheinterfacechangetothesearchresultasshownbelow.Selectthe
desiredconsistencytagtowhichthetargetvolumewillberolledbackandclickonSave
Figure112
Step4. Therollbackwillsooncompletethenproceedtothenextstep
Figure113
Step5. StarttheguestmachinesonthetargetCitrixXenServerpool,theyshouldcomeup
normallywithoutrequiringanyconfigurationchanges
77
20.2 SnapshotApproach
Ratherthanrollingthetargetvolumebackandstoppingthereplicationpair,youmaychoosethe
snapshotapproachofthetargetvolumetherebykeepingthereplicationpairintact.
20.2.1 Prepareforsnapshot
Step1. Inthisapproachwewillfirstcreateavirtualdisk(SnapShotDisk)inthetargetSR
Figure114
Step2. MakethisvirtualdiskavailabletotheCXbychangingitsstatususingthecommand
lvchangeay<DEVICE_PATH>.
78
20.2.2 Performsnapshot
Step1. ClickonRecoveryontheCXUI,selectthereplicationpairtoberolledbackandclick
onRecoverandclickonOktocontinue
Figure115
Step2. Thenextscreenappears,selecttheUsingApplicationconsistency&Eventbased
option
Figure116
Step3. UsePhysicalandthenselecttheDrivecorrespondingtothenewSnapShotDiskVDI
createdforthispurpose.Nowtakeasnapshotofthetarget,ontothisdisk.
Figure117
79
Step4. CreateanewVMcorrespondingtothatofthesourceguestmachineinTargetsystem.
NowshutdownthisVM.
Step5. RemovetheoriginaldiskfromthisVMandattachthesnapshotdisktothisVM.
Figure118
Step6. StarttheVM,itshouldbootupnormally.
Figure119
80
21 Failback
21.1 Rollbackapproach
Toperformafailbackinrollbackapproach,setareversereplicationfromthetargetPooltothe
sourcePool.NowperformareversereplicationfromtheTargetDrivetothesourceVDI(newly
created).
Failbackisperformedinfoursteps
Reversereplication:Areversereplicationissettoupdatetheproductionvolumewithallthe
changesoccurredduringitsoutage
Consistencytag:Consistencytagsisissuedtowhicharollbackwillbeperformed
Rollback:Thetargetvolumeisrolledbacktoaconsistencytag
Startguestmachine:Theguestmachineshouldbootupwiththerolledbackvolume.
Figure79
Reversereplication
Step1. SetareversereplicationoftheTargetVMtothenewlycreatedVDIinthesourceSRwith
mediaretention.
Consistencytag
Step2. OncethereplicationpairreachesDifferentialSync,accesstheguestmachinethen
navigatetotheinmageagentinstallationpathtoissueaconsistencytag.Thesection11.2
Consistencycanbereferred.
Rollback
Step3. Rollbackthetargetvolumebasedontheaboveissuedconsistencytag.Refertothe
sectionRollbackapproachonpage30toperformarollback.
Starttheguestmachine
Step4. Oncetherollbackiscomplete,accesstheXenCenterinterfacetostarttheguestmachines
81
21.2 Snapshotapproach
Toperformafailbackfromsnapshotapproach,weneedtocreatetwonewVDIinSourceSRand
activatetheVDIinoneoftheHostsysteminSourcePool.OneVDIwillbeusedtosetupa
replicationpairandtheotherwillbeusedtotakesnapshotofthereplicationpairbasedonsome
consistencytag.NowperformareversereplicationfromtheTargetsnapshotDrivetothesource
VDI(newlycreated).
Failbackisperformedinfoursteps
Reversereplication:Areversereplicationissettoupdatetheproductionvolumewithallthe
changesoccurredduringitsoutage
Consistencytag:Consistencytagsisissuedtowhicharollbackwillbeperformed
Snapshot:Takeonesnapshotofthereplicationpairbasedonaconsistencytag
Attachthesnapshotdrive:NowattachthissnapshotdrivetoanewlycreatedVM.
Startguestmachine:Theguestmachineshouldbootupwiththerolledbackvolume.
Figure79
Reversereplication
Step1. SetareversereplicationoftheTargetVMtothenewlycreatedVDIinthesourceSRwith
mediaretention.
Consistencytag
Step2. OncethereplicationpairreachesDifferentialSync,accesstheguestmachinethen
navigatetotheinmageagentinstallationpathtoissueaconsistencytag.Thesection11.2
Consistencycanbereferred.
Snapshot
Step3. UsethesecondVDItotakeasnapshotofthetargetdriveoncethepairisindifferential
syncbasedontheaboveissuedconsistencytag.RefertothesectionSnapshotapproachon
page33toperformarollback.
Starttheguestmachine
Step4. Oncethesnapshotiscomplete,createanewVM>shutdowntheVM>detachtheboot
diskandattachthissnapshotdisk.AccesstheXenCenterinterfacetostarttheguestmachines
82
Part5:ProtectingXenServerPool:Master
targetguestapproach
ThispartexplainsprotectingaXenServerresourcepoolbyreplicatingsourcepoolstorageto
targetpoolstorageattachedtothemasterguestmachineonthetargetXenServerresourcepool
83
22 Introduction
ThissectiondescribesprotectingthesourceXenServerpooltoamasterguestmachineonthe
targetXenServerpool.
Figure120
Prepare
Thereareatotalofsixstepstobeperformedinthisstageasshowninthepictureabove.
Protect
ThissectionexplainstoreplicatethevirtualdisksofVMsonsourcepooltonewlycreatedvirtual
disksattachedtomasterguestmachineandissuingconsistencytagsatregularintervals.Issuing
consistencytagsmaybeautomatedbyusingacronjoboranyscheduler
Recover
Thissectiondescribesstepsinvolvedinperformingaphysicalsnapshotandbootinganother
guestmachineoverthesnapshotdisk.
84
23 Prepare
Step1. InstalltheVXagentoneachofthesourcepoolmembers
Step2. CreateRHEL5masterguestmachineontargetpool
Step3. Accessthemasterguestmachinescommandpromptandopenthefile
/boot/grub/menutosetthedefaultvalueto1.Thisloadstheregularkernelratherthan
theXenServerskernel.
Figure121
Step4. InstalltheVXagentonthemasterguestmachine
Step5. Createanewvirtualdisk&attachittomasterguestmachinethroughtheXenCenter
interface
Figure122
85
24 Protect
24.1 Setreplicationpairs
Step1. AccesstheCXUIandclickonVolumeProtection.ExpandXenPoolstofindthelist
ofpoolsavailable.Thenexpandthesourcepooltoselectthesourceguestmachineandclick
onStartReplication
Figure123
Step2. SelecttheUnconfiguredpoolDriveandclickonNext
Figure124
86
Step3. Thenextscreenappears,expandthemasterguestmachineandselectthenewly
created/attachedvirtualdiskandscrolldowntosettheReplicationoptions
Figure125
Step4. SelectthedesiredProcessServerandchecktheEnableCDPRetentionoptionclickon
Submittocontinue.
Figure126
87
Step5. FilluptherequiredRetentionOptionsandclickSubmitbutton.
Figure127
Step6. Thefinalscreenappears,selecttheConfiguredPoolDriveandclickonFinishto
startthereplicationpair.
Figure128
Step7. ThereplicationpairstartswithResyncingStep1thenmovestoResyncingstep2and
finallyreachesDifferentialSync,indicatingthattheinitialcopyismadeonthetargetvolume
Figure129
88
89
24.2 Issueconsistencytags
OncethereplicationpairisinDifferentialSync,accessthesourceguestmachinescommand
promptandissuetheconsistencytagthroughthevacputility.Thevacputilitymaybe
downloadedfromtheCXUIunderSystem>Agentinstallers
Figure130
90
25 Recover
25.1 Addadisktocontainthesnapshot
AccesstheXenCenterinterfacetocreateanextradiskontargetpool&attachtothemasterguest
machinetoholdthesnapshotasshowninthepicturebelow.
Figure131
91
25.2 CreateaSnapshot
Step1. AccesstheCXUIandclickonRecovery,thenselectthereplicationpairandclickon
Recover
Figure132
Step2. SelecttheUsingApplicationconsistency&Eventbasedoption
Figure133
92
Step3. TheSearchResultappears;selectthedesiredconsistencytag,thenselectDrive
TypeasPhysical.Selectthenewlyaddeddisktoholdthevirtualsnapshot,enterthe
mountpointandclickonSave.
Figure134
Notes:
Youmayrecoverspecificfilesbytakingavirtualsnapshot.Youwillneedtochoosethe
DriveTypeasVirtual.
Afterthevirtualsnapshotisready,accessthemasterguestscommandprompttosetupa
loopdevicetothevirtualsnapshotdevice.Thisloopdevicemaybemountedtorecover
individualfiles.
Thecommandtosetupaloopdeviceis
losetup/dev/loop<loopdevicenumber>/dev/vs/cx<vsnapdevicenumber>
Step4. YoumayobservethesnapshotstatusthroughtheRecoveryscreen
Figure135
93
25.3 Detachsnapshotdiskfrommasterguestmachine
Step1. AccesstheXenServerinterfaceandDeactivatethesnapshotvolumeasshowninthe
picturebelow.
Figure136
Step2. ThenDetachthesnapshotvolumefromthemasterguestmachine
Figure137
Step3. Youwillbepromptedforaconfirmation,clickonYestocontinue.
94
25.4 AttachtheSnapshotdisktoanotherGuest
Step1. Createanotherguestmachine
Step2. Attachthesnapshotdiskasshowninthepicture.
Note:VMshouldbestartedatleastoncebeforeattachingthebootvolumetotheVM
Figure138
Step3. Detachtheearlierdisk,youwillbeaskedforconfirmation,clickonYestocontinue
Figure139
Step4. Starttheguestmachine,itshouldbootupnormally.
95
MK-98DF8221-00