Citrix Systems 6.1.0 manual To update a pool of XenServer hosts using the xe CLI

Page 39

actions required are listed in the text box below. If you wish to save the listed actions to a text file for your reference, click Save to File.

Select Install update to proceed with the installation.

The Install Update wizard shows the progress of the update, printing the major operations that XenCenter performs while updating each host in the pool.

While the pool master is being updated, XenCenter will usually lose contact with the pool, temporarily.

9.Once the update is finished, select Finish to close the Install Update wizard.

10.If you chose to manually perform post-update actions, do so now.

To update a pool of XenServer hosts using the xe CLI:

1.Download the update file (.xsupdate file extension) to a known location on the computer running the xe CLI. Note the path to the file.

2.Upload the update file to the pool you wish to update by running the following:

xe -s <server> -u <username> -pw <password> patch-upload file-name=<filename>

Here, -srefers to the name of the pool master. XenServer assigns the update file a UUID, which this command prints. Note the UUID.

Tip:

Once an update file has been uploaded to a XenServer host, you can use the patch-listand patch-param-listcommands to view information about the file.

3.If XenServer detects any errors or preparatory steps that have not been taken (for example, VMs are running in the pool), it alerts you. Be sure to follow any guidance before continuing with the update.

If necessary, you can shut down or suspend any VMs on the host(s) that you wish to update by using the vm-shutdownor vm-suspendcommands.

To migrate specified VMs to specified hosts, use the vm-migratecommand. By using the vm-migratecommand, you will have full control over the distribution of migrated VMs to other hosts in the pool.

To automatically live migrate all VMs to other hosts in the pool, use the host-evacuatecommand. By using the host-evacuatecommand, you leave the distribution of migrated VMs to XenServer.

4.Update the pool, specifying the UUID of the update file, by running the following:

xe patch-pool-apply uuid=<UUID_of_file>

This applies the update or hotfix to all hosts in the pool.

Alternatively, if you need to update and restart hosts in a rolling manner, you can apply the update file to an individual host by running the following:

xe patch-apply host-uuid=<UUID_of_host>uuid=<UUID_of_file>

5.Verify that the update was applied by using the patch-listcommand. If the update has been successful, the hosts field contains the host UUID.

6.Perform any post-update operations, as necessary (such as, rebooting the hosts).

Note:

If you need to reclaim space on the pool master, large update files can be deleted from the disk by using the patch-cleancommand. The update information stored in the database of the master is always retained. If required, these files can be uploaded again using the patch- upload command.

34

Image 39
Contents Citrix XenServer 6.1.0 Installation Guide Trademarks Contents Using Scvmm and Scom with XenServer Boot From SAN Environments About This Document Benefits of Using XenServerAdministering XenServer WelcomeXenServer Editions New Features in XenServerGuest Enhancements XenServer DocumentationReferences System Requirements System RequirementsXenServer Host System Requirements Supported Guest Operating Systems XenCenter System RequirementsInstallation Media and Methods Installing XenServer and XenCenterTo install or upgrade the XenServer host Installing the XenServer HostPage Installing XenCenter To install XenCenterHost Partition Format To connect XenCenter to the XenServer host Connecting XenCenter to the XenServer HostBasic hardware requirements Installation and Deployment ScenariosHigh-level procedure XenServer Hosts with Local StorageXenServer Hosts with Shared NFS Storage Pools of XenServer Hosts with Shared StorageXenServer Hosts with Shared iSCSI Storage Configuring your iSCSI storageConfiguring an iSCSI IQN for each XenServer host Xe pool-param-set uuid=pooluuid default-SR=iscsisharedsruuid Enabling on Host Installation XenServer and IntelliCacheIntelliCache Deployment Converting an Existing Host to Use Thin Provisioning To enable local caching, enter the following commandsImplementation Details and Troubleshooting VM Boot BehaviorXe sr-list params=local-cache-sr,uuid,name-label Using Scvmm and Scom with XenServer How to install the Integration Suite Supplemental PackIntegration Requirements for Scvmm Integration Requirements for Scom Upgrading XenServer Rolling Pool UpgradesPage Before You Upgrade Upgrading XenServer Hosts Using the xe CLI Before you begin your rolling pool upgradeTo upgrade a pool of XenServer hosts using the xe CLI Before You Upgrade a Single XenServer Host Upgrading a Single XenServer Host Using the xe CLIUpgrading a Single XenServer Host Using the xe CLI To empty the CD/DVD drive of a VM using the xe CLITo upgrade a single XenServer host using the xe CLI Page Upgrading LVM Storage from XenServer 5.0 or Earlier Upgrading LVM-based SRs using the xe CLIApplying Updates and Hotfixes to XenServer Before You Apply an Update or HotfixBefore you begin updating To update individual hosts using XenCenter To update individual hosts using the xe CLIUpdating Individual XenServer Hosts Updating a Pool of XenServer Hosts To update a pool of hosts using XenCenterTo update a pool of XenServer hosts using the xe CLI Licensing XenServer Activating a Free XenServer ProductTo activate a free XenServer product To license XenServer Advanced editions and higher Licensing XenServer EditionsTo configure licensing for XenServer hosts using XenCenter To configure licensing for XenServer hosts using the xe CLIAdditional Licensing Information Grace Period To capture and save the log file Appendix A. TroubleshootingAppendix B. Boot From SAN Environments Appendix C. PXE Boot Installations Configuring your PXE Environment for XenServer InstallationTo configure your Tftp server Preparing the destination system Creating an answer file for unattended PXE installationElement Description Required? Element Description Required? Element Proto dhcp or static