Installation guide
19
Appendix B. Maintenance Procedures
This chapter documents some miscellaneous procedures for maintaining XenServer Hosts.
B.1. Preparing XenServer Hosts for maintenance operations
Before performing maintenance operations on a XenServer Host that is part of a resource pool,
you should disable it (which prevents any VMs from being started on it), then migrate its VMs
to another XenServer Host in the pool. This can most readily be accomplished by placing the
XenServer Host into Maintenance Mode using XenCenter. See the XenCenter Help for details.
Procedure B.1. To prepare a XenServer Host in a pool for maintenance
operations via the CLI
1. Use the command
xe host-evacuate uuid=<UUUID of XenServer Host>
This will disable the XenServer Host and then migrate any running VMs to other XenServer
Hosts in the pool.
2. Perform the desired maintenance operation.
3. Once the maintenance operation is completed, enable the XenServer Host:
xe host-enable
then restart any halted VMs and/or resume any suspended VMs.
Before performing maintenance operations on a XenServer Host that is not part of a resource
pool, you should disable it (which prevents any VMs from being started on it), then either shut-
down or suspend its VMs.
Procedure B.2. To prepare an unpooled XenServer Host for maintenance
operations via the CLI
1. Disable the XenServer Host:
xe host-disable
2. Shut down or suspend any running VMs using the xe vm-shutdown or xe vm-suspend
commands.
3. Perform the desired maintenance operation.
4. Once the maintenance operation is completed, enable the XenServer Host: