Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May...
-
Upload
theresa-franklin -
Category
Documents
-
view
220 -
download
0
Transcript of Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May...
![Page 1: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/1.jpg)
Nick Kieffer – XenServer Technical Lead
Disaster Recover Best Practices for XenServerSUM411
May 2013
![Page 2: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/2.jpg)
© 2013 Citrix
Introduction
This presentation is designed to provide an introduction and overview of the integrated disaster recovery (DR) feature that allows you to recover virtual machines (VMs) from a catastrophic failure that disables your production pool, along with alternatives and best practices for a successful recovery.
2
![Page 3: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/3.jpg)
© 2013 Citrix
Agenda
3
• Why we require recovery options• VM metadata backup and restore method• How to utilize the integrated Disaster Recovery (DR) Wizard in XenServer• Tips for a successful recovery• Resources
![Page 4: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/4.jpg)
© 2013 Citrix
Why Disaster Recovery Matters
• Every week 140,000 hard drives crash in the United States1
• In the past 2 years 50% of company’s experienced unforeseen interruptionᵒ 81% of these were closed 1 or more days2
• 43% of company’s that experience a major data loss do not reopen3
• 80% of companies that do not recover from a data loss within one month are likely to go out of business in the immediate future4
4
![Page 5: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/5.jpg)
© 2013 Citrix
Why Disaster Recovery Matters
• Gartner estimates only 35% of SMB have a Recovery Plan
• IDC estimates companies lose $84K per hour of downtime1
• Strategic Research estimates $90K per hour of downtime2
• Survival rate for companies without a DR plan3 <10%
5
![Page 6: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/6.jpg)
© 2013 Citrix
Disaster Recovery Planning
• Business Management responsible for the Business Continuity Plan (BCP)
• IT responsible for the Disaster Recovery Plan (DRP)
• Creating a successful and effective plan:1. Detection of a disaster 2. Damage Assessment 3. Recovery Time Objective4. Resume Critical Business Processes
6
![Page 7: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/7.jpg)
© 2013 Citrix
What is a disaster?
7
![Page 8: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/8.jpg)
© 2013 Citrix
Agenda
8
• Why we need recovery options• VM metadata backup and restore method• How to utilize the integrated Disaster Recovery (DR) Wizard in XenServer• Tips for a successful recovery• Resources
![Page 9: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/9.jpg)
VM Metadata backup and restore
![Page 10: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/10.jpg)
© 2013 Citrix
Manual restore using VM metadata
• First you need to reattach the SRᵒ Ensure to reattach and do not format the SRᵒ With XenServer 6 we now have SR metadata on the lun
• Brings in the VDI name and description as it was previously defined.
10
![Page 11: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/11.jpg)
© 2013 Citrix
Restore using the Xen text console (xsconsole)
• Select “Backup, Restore and Update” from the main menu
11
![Page 12: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/12.jpg)
© 2013 Citrix
Metadata restore continued…
• Select “Restore Virtual Machine Metadata”
• Choose backup date you wish to restore from (if you have multiple)
12
![Page 13: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/13.jpg)
© 2013 Citrix
Restore completed successfully
• For a video of this procedure, visit our Knowledge Center and search for CTX120590
13
![Page 14: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/14.jpg)
© 2013 Citrix
Metadata Restore using the CLI• Usage: /opt/xensource/bin/xe-restore-metadata [-h] [-v] [-y] [-n] [-p] [-x <VDI UUID>] [-u <SR UUID>] [-m all|sr]
• -h: Display this help message
• -x: Specify the VDI UUID to override probing
• -p: Just scan for a metadata VDI and print out its UUID to stdout
• -u: UUID of the SR you wish to restore from
• -n: Perform a dry run and just echo the metadata import commands (default: false)
• -l: Just list the available backup dates
• -d: Specify which date to restore from (default: latest)
• -m: Either 'sr' to restore only the VMs on the SR, or 'all' for VMs (default: all)
• -v: Verbose output
• -y: Assume non-interactive mode and yes to all questions
14
![Page 15: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/15.jpg)
© 2013 Citrix
xe-restore-metadata -u e1267248-3ed8-0609-11d4-c5d9760d2785 -m sr –y
15
![Page 16: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/16.jpg)
© 2013 Citrix
Agenda
16
• Why we need recovery options• VM metadata backup and restore method• How to utilize the integrated Disaster Recovery (DR) Wizard in XenServer• Tips for a successful recovery• Resources
![Page 17: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/17.jpg)
Integrated Disaster Recovery Wizard
![Page 18: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/18.jpg)
© 2013 Citrix
Why should I use the DR wizard?
18
![Page 19: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/19.jpg)
© 2013 Citrix
Now what do I do?
19
• Don’t panic… You are prepared for this
![Page 20: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/20.jpg)
© 2013 Citrix
Disaster Recovery Wizard Requirements
20
• SAN Replication
• Supported SR Types = FC or iSCSI
• XS Platinum license
![Page 21: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/21.jpg)
© 2013 Citrix
DR Infrastructure Requirements
• Hardware at DR site does not have to be the same• XenServer release version and patch level should be the same• Sufficient resources should be available to run the load you require on the hosts• The Disaster Recovery wizard does not control any Storage Array functionality
21
![Page 22: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/22.jpg)
© 2013 Citrix
What’s in the Metadata
• VM Metadata contentsᵒ Name and Descriptionᵒ Universal Unique Identifier (UUID)ᵒ Memory, Virtual CPU(s)ᵒ Networking and Storage configuration
• VM startup optionsᵒ Start orderᵒ Delay interval ᵒ HA restart priority
22
![Page 23: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/23.jpg)
Primary Site Configuration
![Page 24: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/24.jpg)
© 2013 Citrix
Disaster Recovery Wizard Primary Site configuration
• Enable database replication on the Primary Site
24
![Page 25: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/25.jpg)
© 2013 Citrix
Disaster Recovery Wizard Primary Site configuration
Choose SR for DR metadata location
25
![Page 26: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/26.jpg)
© 2013 Citrix
Disaster Recovery Wizard Primary Site configuration
• Enable database replication on the Primary Site with single command.
xe sr-database-replication uuid=<sr=uuid>
26
![Page 27: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/27.jpg)
Secondary Site Actions
![Page 28: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/28.jpg)
© 2013 Citrix
Secondary Site Actions
• Stop Array replication before performing failover processᵒ This is required for the host to gain Read/Write access to the lun(s)
• Connect to the SR on the secondary site in the event of a disaster:
xe drtask-create type=lvmoiscsi device-config:target=<target IP>
device-config:targetIQN=<target-iqn> device-config:SCSIid=<SCSI-id>
sr-whitelist=<sr-uuid>
• Find the database VDI’s on the recovery SRxe vdi-list sr-uuid=<sr-uuid> type=Metadata
28
![Page 29: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/29.jpg)
© 2013 Citrix
Disaster Recovery Commands
Secondary Site continued…
•Query the database VDI for VMs present:xe vm-list database:vdi-uuid=<vdi-uuid from previous step>
•Recover a VMxe vm-recover uuid=<vm-uuid> database:vdi-uuid=<vdi-uuid>
•Destroy the DR task, this will destroy any SR’s introduced by the DR task and that are not required by VMs:
xe drtask-destroy uuid=<drtask-uuid>
29
![Page 30: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/30.jpg)
© 2013 Citrix
Launching the Failover Wizard from XenCenter
30
![Page 31: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/31.jpg)
© 2013 Citrix
Locate the SR that contains the DR metadata
31
![Page 32: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/32.jpg)
© 2013 Citrix
Verify ‘VM configuration data exists’
32
![Page 33: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/33.jpg)
© 2013 Citrix
Choose VMs to failover to Secondary Site
33
![Page 34: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/34.jpg)
© 2013 Citrix
Choose vApps to failover to Secondary Site
34
![Page 35: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/35.jpg)
© 2013 Citrix
DR Wizard will restore each selected VM or vApp
35
![Page 36: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/36.jpg)
© 2013 Citrix
Summary of failover to ‘Secondary Site’
36
![Page 37: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/37.jpg)
© 2013 Citrix
VM’s recovered and running at DR site
37
![Page 38: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/38.jpg)
© 2013 Citrix
Agenda
38
• Why we need recovery options• VM metadata backup and restore method• How to utilize the integrated Disaster Recovery (DR) Wizard in XenServer• Tips for a successful recovery• Resources
![Page 39: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/39.jpg)
© 2013 Citrix
Tips for a successful recovery
• Ensure that all the required SR’s are attached at the DR site before starting the failover
• Run monthly or quarterly “dry runs”• Have a regular backup policy in place
39
![Page 40: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/40.jpg)
© 2013 Citrix
Agenda
40
• Why we need recovery options• VM metadata backup and restore method• How to utilize the integrated Disaster Recovery (DR) Wizard in XenServer• Tips for a successful recovery• Resources
![Page 41: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/41.jpg)
Resources
![Page 42: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/42.jpg)
© 2013 Citrix
Resources
• XenServer 6.1 Admin Guide CTX134585• Metadata Restore process video CTX120590
• A more Open Xen = A Stronger Xen (Tom McCafferty)ᵒ http://blogs.citrix.com/2013/04/29/a-more-open-xen-a-stronger-xenserver/
• Xen Project now part of the Linux Foundationᵒ http://www.xenproject.org/
42
![Page 43: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/43.jpg)
Questions
![Page 44: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/44.jpg)
Work better. Live better.
![Page 45: Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d985503460f94a82742/html5/thumbnails/45.jpg)
© 2013 Citrix
Before you leave…
45
• Conference surveys are available online at www.citrixsynergy.com starting Friday, May 24 at 9:00 a.m. PTᵒ Provide your feedback by 4:00 p.m. PT that day and you’ll receive a $30 Amazon.com
gift card via email
• Download presentations starting Monday, June 3, from your My Conference Planning tool located within the My Account section