Citrix XenServer Recovery Guide. Version 8.2

Similar documents
Xen Recovery Guide. Version 8.2

Oracle VM Server Recovery Guide. Version 8.2

XenServer Release Notes

DM-Multipath Guide. Version 8.2

XenServer System Recovery Guide

1Y0-A26 Citrix XenServer 6.0 Practice Exam

Citrix XenServer 7.1 Virtual Machine User's Guide. Published November Edition

Xen Summit Spring 2007

How to add additional disks to XenServer host

The only open-source type-1 hypervisor

Citrix XenServer 7.0 Virtual Machine User's Guide. Published October Edition

Citrix XenServer 6.5 Virtual Machine User's Guide. Published Thursday, 15 January Edition

Citrix XenServer 7.3 Virtual Machine User's Guide. Published December Edition

HP integrated Citrix XenServer 5.0 Release Notes

Citrix XenServer 5.6 Administration

Vendor: Oracle. Exam Code: 1Z Exam Name: oracle VM 2 for x86 Essentials. Version: Demo

Implementation and. Oracle VM. Administration Guide. Oracle Press ORACLG. Mc Grauv Hill. Edward Whalen

PerfectMail XenServer Setup Guide

Acronis Backup & Recovery 11.5

Citrix XenDesktop 2.0. Michael Schmidt Country Manager Switzerland Citrix Systems International GmbH

Reboot the server and start the hypervisor from the boot menu (Xen amd64 / Debian GNU/Linux, kernel xen-amd64)

Citrix XenServer 7.2 Virtual Machine User's Guide. Published October Edition

Acronis Backup & Recovery 11.5

Bacula Systems Virtual Machine Performance Backup Suite

SteelEye Solutions Extend Citrix XenServer. Bob Williamson

IBM Security Access Manager Version 9.0 October Administration topics IBM

Upgrade Guide Release 6.2 Rev A July 2013

Acronis Backup Advanced Version 11.5 Update 6

Quick Start Guide for System Backup

GRID SOFTWARE. DU _v4.6 January User Guide

Configure Windows Server 2003 Release 2 Server Network File Share (NFS) as an authenticated storage repository for XenServer

(Ubuntu 10.04), the installation command is slightly different.

Citrix XenServer 7.1 Cumulative Update 1 Installation Guide. Published October Edition

Xen Project 4.4: Features and Futures. Russell Pavlicek Xen Project Evangelist Citrix Systems

Using SANDeploy iscsi SAN for Citrix XenServer

Shinetsu Isawa ITOCHU Techno-Solutions Corporation (CTC) Platform Products Promotion & Engineering Dept IT Engineering Division Tokyo, Japan

Originally prepared by Lehigh graduate Greg Bosch; last modified April 2016 by B. Davison

Acronis Backup Version 11.5 Update 6 INSTALLATION GUIDE. For Linux Server APPLIES TO THE FOLLOWING PRODUCTS

Guest OS Installation for vblades

ElasterStack 3.2 User Administration Guide - Advanced Zone

UCS-E160DP Double-wide E-Series Server, 6 core CPU, with PCIe

AIX System Recovery Guide. Version 8.2

How to increase XenServer virtual machine root or swap partition

Virtualization. Michael Tsai 2018/4/16

Citrix XenServer 6.5 Installation Guide. Published Monday, 12 January Edition

Citrix 1Y0-A09. 1Y0-A09 Implementing Citrix XenServer Enterprise Edition 5.0. Practice Test. Version

XenServer Demo/Evaluation System

Dell Compellent Storage Center. XenServer 6.x Best Practices

Oracle VM Workshop Applica>on Driven Virtualiza>on

CXS Citrix XenServer 6.0 Administration

xenopsd internal error: Packet.Error("EQUOTA")}} Resolved in v6.2

Course 55187B Linux System Administration

version 5.4 Installation Guide

SUSE Linux Enterprise Server

Measuring Disk Performance with Bonnie++ Application Benchmarks httperf: A Load Generator for HTTP Servers Another Application Benchmark: POV-Ray

Deploying Cisco UCS Central

Experiences with OracleVM 3.3

Exam LFCS/Course 55187B Linux System Administration

DELIVERING HIGH-PERFORMANCE REMOTE GRAPHICS WITH NVIDIA GRID VIRTUAL GPU. Andy Currid NVIDIA

Citrix XenServer 7.3 Installation Guide. Published December Edition

VIRTUAL GPU SOFTWARE. DU _v5.0 through 5.2 Revision 05 March User Guide

Ensure that the server where you install the Primary Server software meets the following requirements: Item Requirements Additional Details

Citrix Connector 7.5 for Configuration Manager. Using Provisioning Services with Citrix Connector 7.5 for Configuration Manager

Operating system hardening

Backup Edition Comparison OVERVIEW

XenServer Administrator's Guide

Linux System Recovery Guide. Version 8.2

Hyper-V Rapid Recovery - Recovery in Place

Novell SLES 10/Xen. Roadmap Presentation. Clyde R. Griffin Manager, Xen Virtualization Novell, Inc. cgriffin at novell.com.

Oracle VM. 1 Introduction. Release Notes Release for x86

HP integrated Citrix XenServer Online Help

Designing high-availability for Xen Virtual Machines with HP Serviceguard for Linux

Citrix XenServer Installation Guide. Published Friday, 06 September Edition

A. Use a specified server pool as the default for all commands requiring a server pool argument.

Virtualizing Oracle 11g/R2 RAC Database on Oracle VM: Methods/Tips

Acronis Backup & Recovery 11

Fedora 12 Essentials

What is Cloud Computing? Cloud computing is the dynamic delivery of IT resources and capabilities as a Service over the Internet.

XenServer Master Class Networking

Practical No.5. XenCenter

Web Interface Installation Guide. Version 8.2

SEP Software. About SEP. Key Features ONE BACKUP & DISASTER RECOVERY SOLUTION FOR THE ENTIRE ENTERPRISE

Changing user login password on templates

Build your own NAS with OpenMediaVault

Storware vprotect: How to backup Red Hat Virtualization to EMC Data Domain Boost File System plug-in. by Marcin Kubacki & Łukasz Błocki, Storware

Overview. Compatibility Requirements and Caveats. XenServer-Nutanix Integration Guide. December 2017

At course completion. Overview. Audience profile. Course Outline. : 55187B: Linux System Administration. Course Outline :: 55187B::

Oracle VM Template for MySQL Enterprise Edition =========================================================================== ===

Backup Solution Testing on UCS B-Series Server for Small-Medium Range Customers (Disk to Tape) Acronis Backup Advanced Suite 11.5

Backup Solution Testing on UCS B and C Series Servers for Small-Medium Range Customers (Disk to Tape) Acronis Backup Advanced Suite 11.

Amazon EC2 Deep Dive. Michael #awssummit

QuickSpecs. HP Integrated Citrix XenServer. Overview. Retired

Complete Data Protection & Disaster Recovery Solution

Adding a block devices and extending file systems in Linux environments

Citrix XenServer 6.0 Administration

StarVault Cloud Backup PRO v7 Microsoft Hyper-V Guest Virtual Machine Backup & Restore

LifeKeeper Single Server Protection. v Release Notes

Cloning and Repartitioning sessionmgr Disks

Enhancing Oracle VM Business Continuity Using Dell Compellent Live Volume

Acronis Backup Advanced 11.7 Update 1

Transcription:

Citrix XenServer Recovery Guide Version 8.2

Citrix XenServer Recovery Guide The purpose of this document is to provide the steps necessary to perform system recovery when using Citrix XenServer and to define the aspects of system recovery that are and are not supported. This guide does not include all the features and options available with SBAdmin, but is intended to be used as an addendum to the SBAdmin User Guide and the SBAdmin Linux System Recovery Guide. SBAdmin provides support for Citrix XenServer versions 5.6 and 6.0. System Backup and Restore of Citrix XenServer (dom0) Citrix XenServer is based on Xen virtualization technology. Therefore, you will see the server referred to as dom0 in this and other documents. The virtualized guest machines that run on the server are referred to as domu systems. Performing a system backup of the Citrix XenServer(dom0) is done much in the same manner as any other Linux system. Refer to the SBAdmin User Guide for additional details. However, the following considerations deserve mention because they are specific to Citrix XenServer dom0 systems: Including domu Systems in dom0 Full System Backup You may perform a full system backup of the Citrix XenServer (dom0) that will include all virtualized (domu) systems. However, it is good practice to either shutdown the domu systems or use the SBAdmin snapshot backup feature on the logical volumes that store the domu images. This will ensure the domu systems are in a stable state at the time of the backup. To include the domu systems in a system backup, it is necessary to understand how the domu systems are stored on dom0. When the domu is created, a logical volume will be created on the dom0. While the domu is running this logical volume will be available to the dom0. However, the dom0 never mounts any file systems for the domu. To include the data for the domu it is necessary to ensure that raw logical volumes are included in the backup. This option is configured in the profile, note the option to include raw logical volumes is NOT configured by default. To include domu systems that are not running at the time of the backup, it may be necessary to activate the logical volumes that contain domu data. To determine the logical volume on the dom0 associated with the data for the domu. Use the xe vm-disk-list command. The output will be similar to the following. # xe vm-disk-list Disk 0 VDI: uuid ( RO) : 477479e2-e5b5-4e3e-bf99-ad82e5263c67 name-label ( RW): Red Hat Enterprise Linux 6 (64-bit) (experimental) (1) 0 sr-name-label ( RO): Local storage virtual-size ( RO): 8589934592 Storix System Backup Administrator 2 Citrix XenServer Recovery Guide

Here we can see the uuid used to identify the disk. Using the lvdisplay command we can see all logical volumes on the dom0 system. # lvdisplay --- Logical volume --- LV Name /dev/vg_xenstorage-f8d9b6cb-6a94-5340-0cc9-5182785b1391/vhd- 477479e2-e5b5-4e3e-bf99-ad82e5263c67 VG Name LV UUID LV Write Access LV Status VG_XenStorage-f8d9b6cb-6a94-5340-0cc9-5182785b1391 1TJBQp-7qML-SY3T-Oz8j-b6nk-O5DE-y3wgOR read/write NOT available Activate the volume with the following command. # lvchange -ay /dev/vg_xenstorage-f8d9b6cb-6a94-5340-0cc9-5182785b1391/vhd-477479e2- e5b5-4e3e-bf99-ad82e5263c67 After the backup completes, the logical volume can be restored to its original state as follows. # lvchange -an /dev/vg_xenstorage-f8d9b6cb-6a94-5340-0cc9-5182785b1391/vhd-477479e2-e5b5-4e3e-bf99-ad82e5263c67 Further information about backup profiles and snapshot backups can be found in the SBAdmin User Guide Making CDROM type bootmedia on dom0 When creating CDROM type boot media it is necessary to have either the mkisofs or genisoimage command available on the system creating the boot media. By default Citrix XenServer (dom0) does not ship with this installed. It is possible to get the command by enabling the Centos base repositories and using yum to install the command. To enable the repository edit the file /etc/yum.repos.d/centos-base.repo change the option from enabled=0 to enabled=1. Then use the following command to install mkisofs. # yum install mkisofs For further information about creating boot media please refer to the SBAdmin User Guide. Determining Hypervisor File Used by dom0 (multiboot file) The SBAdmin process to create a system backup of dom0 requires knowing the Xen hypervisor file dom0 is running under. You may also see the Xen hypervisor file referred to as the multiboot file. It will be required that the user manually specify the file. Note that this file must also be updated if the hypervisor is changed with system updates. To manually determine the hypervisor that was used to boot dom0, it will be necessary to know which EXTLINUX entry was chosen at boot time. You will need to determine the stanza found in the file /boot/extlinux.conf that was used to boot the system. Within the stanza there will be a line similar to the following which identifies the Xen hypervisor file: Storix System Backup Administrator 3 Citrix XenServer Recovery Guide

append /boot/xen-3.4.2.gz dom0_mem=752m lowmem_emergency_pool=1m crashkernel=64m@32m console= vga=mode-0x0311 --- /boot/vmlinuz-2.6.32.12-0.7.1.xs5.6.100.307.170586xen root=/dev/sda1 xencons=hvc quiet vga=785 splash --- /boot/initrd-storix-sda1.img To specify the hypervisor to SBAdmin, create the file /storix/config/multibootfile (assuming /storix is your Storix data directory). Within this file, specify the path to the Xen hypervisor. In this case it would be as follows. /boot/xen-3.4.2.gz You may now create a system backup. System Backup of Citrix XenServer virtualized guests(domu) Performing a system backup of a Citrix XenServer virtual machine (domu) is done much in the same manner as any other Linux system. Refer to the SBAdmin User Guide for additional details. Creating Boot Media In order to perform system recovery of a Citrix XenServer virtual machine (domu), you will need a SBAdmin system backup and SBAdmin boot media. The boot media is used to provide the system you wish to recover with an environment and interface to perform the recovery. Boot media type supported for performing recovery of domu is CDROM. Performing hard disk or network boot (PXE) of a domu is not supported. When creating CDROM boot media on an exiting domu it will be necessary to edit the following configuration files so that the boot media will recognize the cdrom device. The first step is to make a copy of device_info into the SBAdmin install directory, this will make changes persist through software updates. # cp /opt/storix/config/device_info /storix/config/device_info (Note, the destination will be the SBAdmin data directory, change /storix/ in the destination accordingly) The next step is to edit the /storix/config/device_info file changing the following line. #cdrom:xvd:a-h:xen Virtual Block Device CDROM to cdrom:xvd:a-h:xen Virtual Block Device CDROM Finally, for paravirtualized guests, boot media must be created using the ISOLINUX boot loader. The following command will create CDROM boot media named guest.iso in the /tmp directory. Note, boot media may only be made from the command line. It is not possible to do this from the Web or GUI interfaces. # stmakeboot -t cdrom -S -b ISOLINUX -o /tmp/guest.iso For more information on creating SBAdmin boot media please refer to the SBAdmin User Guide Storix System Backup Administrator 4 Citrix XenServer Recovery Guide

System Recovery of Citrix XenServer virtualized guests(domu) The steps to perform system recovery of a Citrix XenServer virtual machine (domu) using SBAdmin are very similar to the steps for any other Linux system. Refer to the SBAdmin Linux System Recovery Guide for additional details. However, the following considerations deserve mention because they are specific to Citrix XenServer: Determining virtualization type Citrix XenServer is capable of doing both HVM and PV virtualization. HVM (hardware virtual machine) technology is similar to a system running on real hardware. PV (paravirtualization) technology is a type of virtualization specific to Xen. This type of virtualization requires the guest kernel to be modified to run in the virtual machine. The type of virtualization used is set at the time the virtual machine is created (please refer to Citrix documentation for further information on creating new virtual machines). The profile used to create the virtual machine will determine which type of virtualization is used. This is not immediately clear when using the XenServer graphical interface. The type of virtualization technolgy used by the domu, can be determined by logging into the XenServer and running the following command. #xe vm-list params=hvm-boot-policy,uuid,name-label You will see output similar to the following: uuid ( RO) : 8f7f2b5c-57d1-ff53-c4b5-d9b0a716cdd4 name-label ( RW) : Red Hat Enterprise Linux 5 HVM-boot-policy ( RW): uuid ( RO) name-label ( RW) HVM-boot-policy ( RW) : 732588a6-f7e7-11f0-484a-d7c4100b19da : Custom Linux : BIOS order The output indicates that the virtual machine named Custom Linux is using HVM because the HVM-bootpolicy is set to BIOS order. The machine named Red hat Enterprise Linux 5 is using PV. When restoring a backup to a new virtual machine (domu), the newly created virtual machine must use the same type of virtualization as the system that was backed up. Booting a paravirtualized domu When booting a paravirtualized domu there are two boot loader options pygrub and eliloader. Pygrub is used to boot from a harddisk device and eliloader is used to boot from a cdrom. When recovering a domu that had been previously installed it may be necessary to change this option before booting the SBAdmin boot media. To determine which boot loader is in use, the following command may be run on the XenServer. Replacing the uuid for the domu to be booted. #xe vm-list params=pv-bootloader uuid=94012487-6bfa-306d-6e92387682eb9b0f Storix System Backup Administrator 5 Citrix XenServer Recovery Guide

You will see output similar to the following. PV-bootloader (RW) : pygrub You can change the boot loader with the following command. Replacing the uuid for the domu. #xe vm-list param-set uuid=94012487-6bfa-306d-6e92387682eb9b0f PV-bootloader=eliloader Once the bootloader has been set, the domu can be booted to the SBAdmin boot media and recovery can take place. Further information about system recovery can be found in the SBAdmin Linux System Recovery Guide. Storix System Backup Administrator 6 Citrix XenServer Recovery Guide