Reference Xen

  • View
    20

  • Download
    0

Embed Size (px)

Text of Reference Xen

  • XenServer Administrator's Guide5.0.0Published September 20081.0 Edition

  • XenServer Administrator's Guide: Release 5.0.0Published September 2008Copyright 2008 Citrix Systems, Inc.

    Xen, Citrix, XenServer, XenCenter and logos are either registered trademarks or trademarks of Citrix Systems, Inc. in the United Statesand/or other countries. Other company or product names are for informational purposes only and may be trademarks of their respective owners.

    This product contains an embodiment of the following patent pending intellectual property of Citrix Systems, Inc.:

    1. United States Non-Provisional Utility Patent Application Serial Number 11/487,945, filed on July 17, 2006, and entitled Using Writeable PageTables for Memory Address Translation in a Hypervisor Environment.

    2. United States Non-Provisional Utility Patent Application Serial Number 11/879,338, filed on July 17, 2007, and entitled Tracking Current Timeon Multiprocessor Hosts and Virtual Machines.

  • Table of Contents1. Overview ....................................................................................................................... 1

    XenServer hosts and resource pools ............................................................................... 1Networking ............................................................................................................... 1Storage ..................................................................................................................... 1Monitoring and managing XenServer ............................................................................. 1Command Line Interface ............................................................................................. 2How this Guide relates to other documentation ................................................................ 2

    2. XenServer hosts and resource pools ................................................................................... 3Requirements for creating resource pools ........................................................................ 3Creating a resource pool .............................................................................................. 4Adding shared storage ................................................................................................. 5Installing and managing VMs on shared storage ............................................................... 5Removing a XenServer host from a resource pool ............................................................ 6High Availability (HA) ................................................................................................ 7

    Requirements for configuration ............................................................................. 7Restart priorities ................................................................................................. 8

    Enabling HA on a XenServer pool ................................................................................ 9Enabling HA using the CLI .................................................................................. 9Removing HA protection from a VM using the CLI .................................................. 9Host Fencing ..................................................................................................... 9Recovering an unreachable host ........................................................................... 10Shutting down a host when HA is enabled ............................................................ 10Shutting down a VM when it is protected by HA .................................................... 10

    Backups .................................................................................................................. 10Full metadata backup and disaster recovery ................................................................... 11

    Moving SRs between hosts and Pools ................................................................... 13VM Snapshots .......................................................................................................... 16

    Regular Snapshots ............................................................................................. 16Quiesced Snapshots ........................................................................................... 16Taking a VM snapshot ...................................................................................... 17VM Rollback ................................................................................................... 17

    Coping with machine failures ...................................................................................... 18Member failures ............................................................................................... 18Master failures ................................................................................................. 18Pool failures .................................................................................................... 19Coping with Failure due to Configuration Errors .................................................... 19Physical Machine failure .................................................................................... 19

    3. Storage ........................................................................................................................ 21Overview ................................................................................................................. 21

    Storage repositories (SRs) .................................................................................. 21Virtual Disk Images (VDI) ................................................................................. 21Managing Storage ............................................................................................. 22

    Storage Repository Types ........................................................................................... 23Local Disks .................................................................................................... 24Local hotplug devices ........................................................................................ 24Shared Network Attached Storage using NFS ........................................................ 24Shared iSCSI Storage ....................................................................................... 25Shared LVM storage over FC or iSCSI hardware HBAs .......................................... 26Shared NetApp Storage ...................................................................................... 27Shared EqualLogic Storage ................................................................................. 29

    Storage configuration examples ................................................................................... 29

  • XenServer Administrator's Guide iv

    Creating Storage Repositories ............................................................................. 30Probing an SR .................................................................................................. 30Creating a local LVM SR (lvm) .......................................................................... 33Creating a local EXT3 SR (ext) ........................................................................... 33Creating a shared NFS SR (nfs) ......................................................................... 34Creating a shared LVM over iSCSI SR using the software iSCSI initiator (lvmoiscsi)....................................................................................................................... 34Creating a shared LVM over Fibre Channel or iSCSI HBA SR (lvmohba) ................... 34Creating a shared NetApp SR over iSCSI .............................................................. 37Creating a shared EqualLogic SR ........................................................................ 38Storage Multipathing ......................................................................................... 39

    Managing Storage Repositories .................................................................................. 40Destroying or forgetting a SR ............................................................................ 40Introducing an SR ............................................................................................ 40Converting local Fibre Channel SRs to shared SRs ................................................. 41Moving Virtual Disk Images (VDIs) between SRs .................................................. 41Managing VDIs in a NetApp SR ........................................................................ 42Taking VDI snapshots with a NetApp SR ............................................................. 43Adjusting the disk IO scheduler for an LVM-based SR ........................................... 43

    Managing Host Bus Adapters (HBAs) ......................................................................... 43Sample QLogic iSCSI HBA setup ...................................................................... 43Removing HBA-based FC or iSCSI device entries ................................................. 44Enabling Virtual HBA support ............................................................................ 44

    Virtual disk QoS settings (Enterprise Edition only) ......................................................... 444. Networking .................................................................................................................. 46

    XenServer networking concepts ................................................................................... 46Network objects .......................................................................