XenServer Pool Replication: Disaster Recovery

Similar documents
Citrix XenServer-6.2 Administration Training

Citrix XenServer: VM Protection and Recovery Quick Start Guide

WHITE PAPER Citrix XenServer: Virtual Machine Backup. Citrix XenServer. Virtual Machine Backup.

Citrix XenServer Workload Balancing Quick Start. Published February Edition

Security. Environments. Dave Shackleford. John Wiley &. Sons, Inc. s j}! '**»* t i j. l:i. in: i««;

1Y0-A09. Implementing Citrix XenServer Enterprise Edition

Citrix XenServer 6 Administration

CXS Citrix XenServer 6.0 Administration

Installation Guide C-MOR Video Surveillance on XenServer from version 6.2

VMTurbo Operations Manager 4.5 Installing and Updating Operations Manager

Citrix XenServer 5.6 Feature Pack 1 Quick Start Guide. Published Monday, 17 January Edition

6422: Implementing and Managing Windows Server 2008 Hyper-V (3 Days)

Module 4 - Introduction to XenServer Storage Repositories

SPHOL205: Introduction to Backup & Restore in SharePoint Hands-On Lab. Lab Manual

Citrix XenServer 5.6 Administrator's Guide. Published June Edition

Quick Start Guide. Citrix XenServer Hypervisor. Server Mode (Single-Interface Deployment) Before You Begin SUMMARY OF TASKS

VELOCITY. Quick Start Guide. Citrix XenServer Hypervisor. Server Mode (Single-Interface Deployment) Before You Begin SUMMARY OF TASKS

Release Notes. Software Versions and Hardware Supported

Setting up Citrix XenServer for 2X VirtualDesktopServer Manual

SA Citrix Virtual Desktop Infrastructure (VDI) Configuration Guide

Intro to Virtualization

NETAPP WHITE PAPER USING A NETWORK APPLIANCE SAN WITH VMWARE INFRASTRUCTURE 3 TO FACILITATE SERVER AND STORAGE CONSOLIDATION

Using ESVA iscsi-host Storage with Citrix XenServer 5.6: Data Recovery Configurations

SA Citrix Virtual Desktop Infrastructure (VDI) Configuration Guide

If you re not using Citrix XenCenter 6.0, your screens may vary. Required Virtual Interface Maps to... mgmt0. virtual network = mgmt0 wan0

Citrix Lab Manager 3.6 SP 2 Quick Start Guide

Implementing and Managing Windows Server 2008 Hyper-V

How to Backup XenServer VM with VirtualIQ

Oracle VM Server Recovery Guide. Version 8.2

EMC AVAMAR INTEGRATION WITH EMC DATA DOMAIN SYSTEMS

MTA Course: Windows Operating System Fundamentals Topic: Understand backup and recovery methods File name: 10753_WindowsOS_SA_6.

Course 50273B: Planning and Designing Microsoft Virtualization Solutions. Level: 300. About this Course

VMware vsphere Data Protection 6.0

How to Create a Delegated Administrator User Role / To create a Delegated Administrator user role Page 1

RingStor User Manual. Version 2.1 Last Update on September 17th, RingStor, Inc. 197 Route 18 South, Ste 3000 East Brunswick, NJ

Citrix XenServer 7 Feature Matrix

Direct virtual machine creation from backup with BMR

StarWind iscsi SAN Software: Using with Citrix XenServer

How to Configure Intel X520 Ethernet Server Adapter Based Virtual Functions on Citrix* XenServer 6.0*

Citrix XenServer Emergency Network Reset. Published Wednesday, 29 February Edition

Consolidated Monitoring, Analysis and Automated Remediation For Hybrid IT Infrastructures. Goliath Performance Monitor Installation Guide v11.

Replication Overview

Consolidated Monitoring, Analysis and Automated Remediation For Hybrid IT Infrastructures. Goliath Performance Monitor Installation Guide v11.

Regional SEE-GRID-SCI Training for Site Administrators Institute of Physics Belgrade March 5-6, 2009

CMB 207 1I Citrix XenApp and XenDesktop Fast Track

Unitrends Virtual Backup Installation Guide Version 8.0

Citrix XenServer 6.5 Administrator's Guide. Published Wednesday, 21 January Edition

Synchronizer Installation

NETGEAR ReadyRECOVER Offsite Data Protection: Replication Overview and Configuration Guide

EMC Data Domain Management Center

SQL Server Solutions GETTING STARTED WITH. SQL Safe Backup

Monitoring Oracle Enterprise Performance Management System Release Deployments from Oracle Enterprise Manager 12c

High Availability for Citrix XenServer

Drobo How-To Guide. Use a Drobo iscsi Array as a Target for Veeam Backups

simplify monitoring Consolidated Monitoring, Analysis and Automated Remediation For Hybrid IT Infrastructures

CA ARCserve Backup. UNIX and Linux Data Mover Guide. r16

Protecting SQL Server Databases Software Pursuits, Inc.

Backup and Restore with 3 rd Party Applications

Planning and Designing Microsoft Virtualization Solutions

Limitations of Managing VMware vsphere with MS System Center Virtual Machine Manager 2012

GRAVITYZONE HERE. Deployment Guide VLE Environment

Backing Up the CTERA Portal Using Veeam Backup & Replication. CTERA Portal Datacenter Edition. May 2014 Version 4.0

Citrix XenServer Backups with Xen & Now by SEP

INTRODUCTION TO CLOUD MANAGEMENT

XenDesktop Implementation Guide

How to Backup and Restore a VM using Veeam

Virtual desktops made easy

SnapManager 1.0 for Virtual Infrastructure Best Practices

Virtual Server Installation Manual April 8, 2014 Version 1.8

Citrix XenDesktop Backups with Xen & Now by SEP

Quick Start - Virtual Server idataagent (Microsoft/Hyper-V)

SEP sesam Backup & Disaster Recovery Overview

Uptime Infrastructure Monitor. Installation Guide

DiskBoss. File & Disk Manager. Version 2.0. Dec Flexense Ltd. info@flexense.com. File Integrity Monitor

Migrating to ESXi: How To

Visual Storage Intelligence TM

Quick Start - Virtual Server idataagent (Microsoft/Hyper-V)

High Availability for VMware GSX Server

Quick Start - NetApp File Archiver

Backup & Disaster Recovery Appliance User Guide

Citrix XenServer Backups with SEP sesam

LiteSpeed for SQL Server(7.5) How to Diagnose & Troubleshoot Backup

VMware vsphere Data Protection 5.8 TECHNICAL OVERVIEW REVISED AUGUST 2014

Drobo How-To Guide. Set Up and Configure a Drobo iscsi SAN as Shared Storage for Citrix XenServer. Topics. Initial Configuration STEP 1

With Red Hat Enterprise Virtualization, you can: Take advantage of existing people skills and investments

Backing Up CNG SAFE Version 6.0

Citrix XenClient 1.0

Citrix XenServer 6.0 Administrator's Guide. Published Friday, 02 March Edition

How To Use Vcenter Site Recovery Manager 5 With Netapp Fas/Vfs Storage System On A Vcenter Vcenter 5 Vcenter 4.5 Vcenter (Vmware Vcenter) Vcenter 2.

XenClient Enterprise Synchronizer Installation Guide

IMF Tune v7.0 Backup, Restore, Replication

Installation Guide for Citrix XenServer 5.5

CMB-207-1I Citrix XenApp and XenDesktop Fast Track

1 P a g e Delivering Self -Service Cloud application service using Oracle Enterprise Manager 12c

CLI Commands and Disaster Recovery System

Reader s Choice Preferred product

Virtual Managment Appliance Setup Guide

Transcription:

XenServer Pool Replication: Disaster Recovery Summary This article describes how to use Citrix XenServer to provide an easy-to-configure Disaster Recovery (DR) environment when using a Network-attached Storage (NAS) or Storage Area Network (SAN) storage solution. This enables organizations to increase the availability of their XenServer environment and restore (virtual) production systems quickly. Introduction From an architectural point of view, a XenServer virtual machine (VM) consists of two components: metadata describing the virtual machine environment, and the virtual disk image (VDI) that is being used by the virtual machine. The VM metadata is stored in a small database on the XenServer host, and the virtual disk images are stored on the configured Storage Repository, which in multiple-host deployments will be a NAS or SAN device. Figure 1: Conceptual overview of Virtual Machine data locations To provide effective DR, the metadata and the virtual disk images must be replicated from the production environment to a DR environment. This is easily accomplished by exporting the metadata from the production environment, and importing this data into the DR environment.

2 In XenServer 4.1, the export process creates a lightweight XML file that contains all VM metadata and can be copied from server to server, or opened or edited with a standard viewer. XenServer 5.0 dramatically simplifies the metadata export/import process. In XenServer 5.0, exporting metadata creates a new VDI on the Storage Repository that contains all the information about your virtual machines. Additionally, XenServer 5.0 allows for automated scheduling of metadata exports, ensuring that the most recent VM metadata is available at your DR site. For both releases, the replication of the virtual disk images is best handled by the storage solution this will vary from device to device, but any real-time or scheduled replication system will suffice. Examples include NetApp s SnapMirror technology or DataCore s SanMelody replication features. The Backup VDI created by the XenServer 5.0 export process can be replicated to the Disaster Recovery site together with the virtual machine VDIs. The following illustrations show the difference between XenServer 4.1 and 5.0: Figure 2: Conceptual overview of XenServer 4.1 disaster recovery Figure 3: NEW: Conceptual overview of XenServer 5.0 disaster recovery

3 Understanding VM Metadata The metadata for a VM contains information about the VM (such as the name, description, and Universally Unique Identifier (UUID)), VM configuration (such as the amount of virtual memory and the number of virtual CPUs), and information about the use of resources on the host or Resource Pool (such as Virtual Networks, Storage Repository, ISO Library, and so on). Most metadata configuration data is written when the VM is created and is updated if you make changes to the VM configuration. This means that it is not always necessary to perform daily exports of all the VM metadata. Adding a metadata export command to your change-control checklist will ensure that this information is available if needed.

4 XenServer 5.0 Pool Replication Exporting Metadata In XenServer, exporting or importing metadata can be done from the new text-based console menu. On the physical console this console menu is loaded by default. To start the console menu through the host console screen in XenCenter, type xsconsole from the command line. To export the VM metadata: 1. Select Backup, Restore and Update from the menu. 2. Select Backup Virtual Machine Metadata. 3. If prompted, log on with root credentials. 4. Select the Storage Repository where the VMs you want to back up are stored. 5. After the metadata backup is done, verify the successful completion on the summary screen. 6. In XenCenter, on the Storage tab of the SR selected in step 3, a new VDI should be created named Pool Metadata Backup. Figure 4: Backup, Restore and Update option in the Console Menu Importing Metadata A prerequisite of running the import command in your DR environment is that you set up/re-attach the Storage Repository on which the replicated virtual disk images are located. Also make sure that your Virtual Networks are set up correctly by using the same names in the production and DR environment.

5 After the SR is attached, we are ready to restore the metadata backup. From the console menu: 1. Select Backup, Restore and Update from the menu. 2. Select Restore Virtual Machine Metadata. 3. If prompted, log on with root credentials. 4. Select the Storage Repository to restore from. 5. Select the Metadata Backup you want to restore. 6. Select if you want to restore only VMs on this SR or all VMs in the pool. 7. After the metadata restore is done, verify the summary screen for errors. 8. Your VMs are now available in XenCenter and can be started at the new site. Figure 5: Restore Summary Screen For more details on prerequisites and how to work with multiple Storage Repositories refer to the Full metadata backup and disaster recovery section in the XenServer Administrator's Guide. Scheduled Metadata Backups The third option available from the console menu is Schedule Virtual Machine Metadata. This option allows you to automate the export of metadata on a daily, weekly, or monthly basis. By default this option is disabled, which would require to do the backup manually, for example as part of a change management procedure.

6 XenServer 4.1 Pool Replication Exporting Metadata Exporting and importing metadata is a simple process. To export, run the xe vm-export command from the XenServer Command Line Interface (CLI) with additional parameters. To export the metadata for a single VM, the command is: xe vm-export filename=<filename> uuid=<uuid of vm to export> metadata=true To export the metadata for all VMs within the resource pool, the command is: xe vm-export filename=<filename> --multiple metadata=true This command generates a numbered list of files called filename, filename2, filename3, and so on, that can be copied and imported to the DR environment. Once the export process finishes, you can transfer the files from the host on which the export was performed to a location in the DR environment. The metadata export takes only a few seconds for each virtual machine. Importing Metadata Importing metadata is slightly different from exporting because XenServer only allows importing of one machine s metadata at a time. A prerequisite of running the import command in your DR environment is that you setup/re-attach the Storage Repository on which the replicated virtual disk images are located. After the SR is attached, simply import the metadata files. If the Storage Repository is set as the default, the following CLI command can be run from the XenServer host to where the exported files were transferred to: xe vm-import filename=<filename> metadata=true If the above-described Storage Repository it is not set as the default, you also need to include the UUID of the Storage Repository: xe vm-import filename=<filename> sr-uuid=<uuid for SR with replicated VDIs> metadata=true After this, the VMs will be available in the XenCenter console in a halted state in your DR environment; they only need to be started.

7 Scripting and Automation Opportunities Using basic Windows or Linux scripting tools, it is possible to automatically import and export your VM metadata, and even automatically copy these XML files between your production and DR sites. You can create scheduled tasks (cron jobs) to automatically export and import this data on a regular basis. Note that xe commands can be sent from either the XenServer console or the XenCenter workstation. Example 1: To import multiple metadata files into a pool: importscript.sh Imports multiple numbered VM Metadata files Usage:./importscript.sh filename echo Importing $1 xe vm-import filename=$1 metadata=true i=2 while [ -f $1$i ] do echo Importing $1$i xe vm-import filename=$1$i metadata=true i=`expr $i + 1` done