Introducing XenServer 2/2 Monforte Salvatore CCR – Virtualization Tutorial Catania 1-3 December 2010.

Slides:



Advertisements
Similar presentations
Copyright line. Maintaining an Active Directory Environment Exam Objectives Backup and Recovery Backup and Recovery Offline Maintenance Offline Maintenance.
Advertisements

Resource Shares Dynamic resource management
Tag line, tag line SnapDrive for Windows 6.2 Customer Technical Presentation November 2009.
What’s New: Windows Server 2012 R2 Tim Vander Kooi Systems Architect
 Management has become a multi-faceted complex task involving:  Storage Management  Content Management  Document Management  Quota Management.
11.1 © 2004 Pearson Education, Inc. Exam Planning, Implementing, and Maintaining a Microsoft Windows Server 2003 Active Directory Infrastructure.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Hands-On Microsoft Windows Server 2003 Administration Chapter 6 Managing Printers, Publishing, Auditing, and Desk Resources.
Collaboration Suite Business Process Management
Cambodia-India Entrepreneurship Development Centre - : :.... :-:-
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 11 Managing and Monitoring a Windows Server 2008 Network.
Installing software on personal computer
Nick Kieffer – XenServer Technical Lead Disaster Recover Best Practices for XenServer SUM411 May 2013.
Chapter 5 Configuring the RMAN Environment. Objectives Show command to see existing settings Configure command to change settings Backing up the controlfile.
Agenda  Overview  Configuring the database for basic Backup and Recovery  Backing up your database  Restore and Recovery Operations  Managing your.
Maintaining Windows Server 2008 File Services
Module 8 Implementing Backup and Recovery. Module Overview Planning Backup and Recovery Backing Up Exchange Server 2010 Restoring Exchange Server 2010.
Patch Management Module 13. Module You Are Here VMware vSphere 4.1: Install, Configure, Manage – Revision A Operations vSphere Environment Introduction.
Paper on Best implemented scientific concept for E-Governance Virtual Machine By Nitin V. Choudhari, DIO,NIC,Akola By Nitin V. Choudhari, DIO,NIC,Akola.
Elad Hayun Agenda What's New in Hyper-V 2012 Storage Improvements Networking Improvements VM Mobility Improvements.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 14: Problem Recovery.
1 Management Pain points now Existing tools: Do not map to virtual environments Provisioning Backup Health monitoring Performance monitoring / management.
1. Outline Introduction Virtualization Platform - Hypervisor High-level NAS Functions Applications Supported NAS models 2.
Microsoft ® Official Course Module 12 Monitoring, Managing, and Recovering AD DS.
Course 6425A Module 9: Implementing an Active Directory Domain Services Maintenance Plan Presentation: 55 minutes Lab: 75 minutes This module helps students.
9.1 © 2004 Pearson Education, Inc. Exam Planning, Implementing, and Maintaining a Microsoft Windows Server 2003 Active Directory Infrastructure.
Module 10 Configuring and Managing Storage Technologies.
Paper on Best implemented scientific concept for E-Governance projects Virtual Machine By Nitin V. Choudhari, DIO,NIC,Akola.
SYN407D: Image Management made easy with Provisioning Services 6.0
Module 13: Configuring Availability of Network Resources and Content.
11 SECURITY TEMPLATES AND PLANNING Chapter 7. Chapter 7: SECURITY TEMPLATES AND PLANNING2 OVERVIEW  Understand the uses of security templates  Explain.
© 2010 VMware Inc. All rights reserved Patch Management Module 13.
Hands-On Virtual Computing
Chapter 7 Making Backups with RMAN. Objectives Explain backup sets and image copies RMAN Backup modes’ Types of files backed up Backup destinations Specifying.
Chapter Fourteen Windows XP Professional Fault Tolerance.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Chapter 18: Windows Server 2008 R2 and Active Directory Backup and Maintenance BAI617.
Chapter 8 Implementing Disaster Recovery and High Availability Hands-On Virtual Computing.
Copyright © 2011 EMC Corporation. All Rights Reserved. MODULE – 6 VIRTUALIZED DATA CENTER – DESKTOP AND APPLICATION 1.
Implementing Hyper-V®
Module 9 Planning a Disaster Recovery Solution. Module Overview Planning for Disaster Mitigation Planning Exchange Server Backup Planning Exchange Server.
11 DISASTER RECOVERY Chapter 13. Chapter 13: DISASTER RECOVERY2 OVERVIEW  Back up server data using the Backup utility and the Ntbackup command  Restore.
Week #3 Objectives Partition Disks in Windows® 7 Manage Disk Volumes Maintain Disks in Windows 7 Install and Configure Device Drivers.
1 Week #10Business Continuity Backing Up Data Configuring Shadow Copies Providing Server and Service Availability.
Virtualization Infrastructure Administration Other Jakub Yaghob.
VMware vSphere Configuration and Management v6
Deploying Software with Group Policy Chapter Twelve.
Module 12: Configuring and Managing Storage Technologies
20409A 7: Installing and Configuring System Center 2012 R2 Virtual Machine Manager Module 7 Installing and Configuring System Center 2012 R2 Virtual.
70-412: Configuring Advanced Windows Server 2012 services
| nectar.org.au NECTAR TRAINING Module 9 Backing up & Packing up.
Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.
Hands-On Virtual Computing
3 Copyright © 2007, Oracle. All rights reserved. Using the RMAN Recovery Catalog.
Hands-On Microsoft Windows Server 2008 Chapter 7 Configuring and Managing Data Storage.
Unit 10 ITT TECHNICAL INSTITUTE NT1330 Client-Server Networking II Date: 2/24/2016 Instructor: Williams Obinkyereh.
Planning Server Deployments Chapter 1. Server Deployment When planning a server deployment for a large enterprise network, the operating system edition.
UFIT Infrastructure Self-Service. Service Offerings And Changes Virtual Machine Hosting Self service portal Virtual Machine Backups Virtual Machine Snapshots.
Guide to Operating Systems, 5th Edition
Patch Management Module 13.
Section 4 Block Storage with SES
Vytautas Traškevičius Software Engineering
Tivoli Storage Manager Product Family
Maintaining Windows Server 2008 File Services
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
20409A 7: Installing and Configuring System Center 2012 R2 Virtual Machine Manager Module 7 Installing and Configuring System Center 2012 R2 Virtual.
Guide to Operating Systems, 5th Edition
Disaster Recovery Done Dirt Cheap Founder Curnutt Data Solutions
Presentation transcript:

Introducing XenServer 2/2 Monforte Salvatore CCR – Virtualization Tutorial Catania 1-3 December 2010

XenServer Backups Backups it might be very useful to backup your VMs running on a Citrix XenServer Host/Pool there are several ways to perform VMs backups ▫ at a very high-level there are basically two categories of backups  cold backups ▫ VMs should be offline before taking the backup  hot backups ▫ VMs can be backed up without incurring in any downtime In addition XenServer provides commands for backing-up/restore ▫ host configuration ▫ pool configuration xe pool-dump-database file-name= xe pool-restore-database file-name= --dry-run xe host-backup file-name= xe host-restore file-name=

XenServer Backups Cold VM Backups Ensure that the VM to be backed up is offline Run the command ▫ this backup also backs up all of the VM's data  when importing a VM, you can specify the storage mechanism to use for the backed up ▫ this process backs up all of the VM data  it can take some time to complete In addition it is possible to backup only VM metadata ▫ Running the command xe vm-export vm= file-name= xe vm-export vm= file-name= --metadata

XenServer Backups Full metadata backup and disaster recovery Full metadata backups are based on the concept of Portable Storage Repositories (Portable SRs) ▫ contain all of the information necessary to recreate all the Virtual Machines (VMs) with Virtual Disk Images (VDIs) stored on the XenServer hosts and resource pools SR after re-attaching the SR to a different host or pool Portable SRs work by creating a dedicated metadata VDI within the specified SR ▫ this metadata VDI is used to store  copies of the pool and host database  metadata describing each VM's configuration ▫ as a result the SR becomes fully self-contained, or portable, allowing it to be detached from one host and re-attached to another as a new SR.  once the SR is re-attached a restore process is used to recreate all of the VMs on the SR from the metadata VDI For disaster recovery the metadata backup can be scheduled to run regularly to ensure the metadata SR is updated periodically

XenServer Backups The text console on the XenServer host provides the Backup, Update and Restore menu ▫ you can use these menu items to perform 3 operations  Schedule a regular metadata backup to the default pool SR, either daily, weekly or monthly ▫ regularly rotate metadata backups and ensure that the latest metadata is present for that SR without any user intervention  Trigger an immediate metadata backup to the SR of your choice ▫ will create a backup VDI if necessary, attach it to the host and backup all the metadata to that SR  use this option if you have made some changes which you want to see reflected in the backup immediately  Perform a metadata restoration operation  prompt you to choose an SR to restore from ▫ restoring only VM records associated with that SR ▫ all the VM records found

XenServer Backups Create and move a portable SR using Local Console and XenCenter ▫ On the source host or pool, within the Local Console  select the Backup, Restore, and Update menu option  select the Backup Virtual Machine Metadata option  select the desired SR ▫ within XenCenter  shutdown all running VMs with VDIs on the SR to be moved  select the SR to be moved and detach it  select forget to remove the SR record from the source host or pool  select the destination host/pool  create and reattach the storage ▫ within the Local Console on the destination host  select the Backup, Restore, and Update menu option  select the Restore Virtual Machine Metadata option  select the newly re-attached SR

XenServer Backups Hot VM Backups Basically XenServer provides two methods for creating hot VM backups ▫ manual snapshots / exports  through XenCenter or CLI ▫ scripted snapshots / exports  through XenAPI or CLI Snapshot are templates containing storage information and VM configuration ▫ two types of VM snapshots are supported  regular ▫ crash consistent and can be performed on all VM types, including Linux VMs  quiesced ▫ take advantage of the Windows Volume Snapshot Service (VSS) for services that support it, so that a supported application can flush data to disk

XenServer Snapshots Hot VM Backups via Snapshot Basically XenServer provides two methods for creating hot VM backups ▫ manual snapshots / exports  through XenCenter or CLI ▫ scripted snapshots / exports  through XenAPI or CLI ▫ requires additional knowledge of XenAPI and CLI Snapshot contains storage information and VM configuration ▫ two types of VM snapshots are supported  regular ▫ crash consistent and can be performed on all VM types, including Linux VMs.  quiesced ▫ take advantage of the Windows Volume Snapshot Service (VSS) for services that support it, so that a supported application can flush data to disk

XenServer Snapshots There are two possible locations where we can execute our scripts ▫ on the administration workstation with XenCenter installed ▫ VB Script for the logic ▫ Scheduled Tasks for the automation  the workstation should be always on to execute scripts  a network connection to the storage is required ▫ on the XenServer host ▫ Shell or Python scripts for the logic ▫ Linux CRONs for automation  the XenServer is (in most cases) always on  network connection to the storage is already in place

XenServer Snapshots Creating Hot VM Backups via Snapshot using the CLI Create the Snapshot ▫ with quiesce ▫ regular Remove the template flag from the Snapshot Export the Snapshot to backup share Delete Snapshot from XenServer host to save space on the SR xe vm-snapshot-with-quiesce vm= new-name-label= xe vm-unistall uuid= force=true xe vm-snapshot vm= new-name-label= xe template-param-set is-a-template=false uuid= xe vm-export uuid= filename=.xva

XenServer Snapshots Backups / Snapshot automation Before getting crazy start coding have a look to what the Citrix Community provides ▫ the first interesting scripts is from Jeff Riechers  Visual Basic Script  published on the Citrix Community Forun ▫  very good documented and is configurable with parameters ▫ second script comes from Andy Burton  shell script  can be downloaded at the following URL ▫  very well documented and configurable using a configuration file  there are a lot of enhancements to this script on the Citrix Community Forum ▫ third scripts from Mark (?)  shell script  can be downloaded at the following URL ▫ backup-script.html  very well documented configurable using both configuration files and custom fields

XenServer Snapshots Understanding Snapshots Snapshot behavior and storage consumption is determined by the type of storage repository (SR) used ▫ Volume-based  iSCSI and Hardware HBA Fiber Channel and local disks ▫ File-based  NFS Snapshot on Volume-based Storage Repositories ▫ Consider a 20GB iSCSI storage repositories ▫ Create a Linux VM with one 5 GB disk  in the iSCSI SR the entire 5 GB of space required by the VDI is consumed at the time it is provisioned

XenServer Snapshots ▫ After the snapshot is performed the storage consumption is reported as follows ▫ After deleting the snapshot the storage consumption does not change

XenServer Snapshots 5GB A UUID: 01D4… 1.2 GB A baseB 5GB UUID: 01D4… active C 0 GB snapshot After VM creation, the VM has one VDI of 5 GB ▫ VDI is thick provisioned and is assigned a UUID After snapshot is created, the following steps occur ▫ VDI A contains data up to the point of the snapshot  this VDI is deflated to conserve space ▫ UUID remapping from A to B occurs ▫ VDI B becomes the active node ▫ VDI C is empty  except for VHD header information After the snapshot is deleted, the following steps occur ▫ VDI C is deleted ▫ VDI A does not change  continues to have data up to the point of the snapshot  even though the snapshot was technically deleted ▫ VDI B continues to be used for writes 1.2 GB A base B 5GB UUID: 01D4… active

XenServer Snapshots Snapshot on File-based Storage Repositories ▫ Consider a 20GB NFS storage repository ▫ Create a Linux VM with one 5 GB disk  in the NFS SR the 5 GB of space required by the VDI is thin provisioned

XenServer Snapshots ▫ After the snapshot is performed the storage consumption is reported as follows ▫ After deleting the snapshot the storage consumption returns back to what it was before the snapshot was taken

XenServer Snapshots 176 MB A UUID: 2E1F… 176 MB A base B UUID: 2E1F… active C 0 GB snapshot After VM creation, the VM has one VDI of 5 GB ▫ VDI is thin provisioned and is assigned a UUID  only the space required is actually allocated After snapshot is created, the following steps occur ▫ VDI A contains data up to the point of the snapshot ▫ VDI B and C are empty  except for VHD header information ▫ UUID remapping from A to B occurs After the snapshot is deleted, the following steps occur ▫ VDI C is deleted ▫ VDI A does not change  continues to have data up to the point of the snapshot  even though the snapshot was technically deleted ▫ VDI B continues to be used for writes  will grow over time 176 MB A base B 5GB UUID: 2E1F… active

XenServer SnapshotsA base C snapshot Coalescing scenarios XenServer includes the ability to collapse VDI chains ▫ eliminate redundant nodes that result from creation and deletion of snapshots This process is known as coalescing ▫ occurs as a background process Consider a VM having two snapshot ▫ VDI C and VDI E When snapshot C is deleted ▫ parent B is no longer required  will be coalesced into A B base D active snapshot E A base B D active snapshot E A+B base D active snapshot E

XenServer Snapshots If the remaining snapshot E is deleted ▫ VDI B and coalesced VDI A+B remains When snapshot G is subsequently taken ▫ parent D is coalesced into A+B  three VDIs will exist for the VM at this A+B base D active A+B base F active D base snapshot G A+B+D base F active snapshot G

XenServer SDKs SDKs XenServer includes a XML-RPC based API ▫ providing programmatic access to the extensive set of XenServer management features and tools XenServer API can be called from a remote system as well as local to the XenServer host ▫ remote calls are generally made securely over HTTPS There are five SDKs available, one for each of C, C#, Java, PowerShell, and Python ▫ provided under an open-source license  LGPL or GPL with the common linking exception  this allows use (unmodified) in both closed-and open-source applications ▫ There are also several example code samples also provided for download ▫ demonstrate creating a VM ▫ running VM power operations ▫ and watching for events

XenServer SDKs XAPI objects class diagram