How to change the pool master in a XenServer farm

From time to time, you might need to change the pool master in your XenServer farm.

XenServer pool master


Here is a quick guide on how to do it from the CLI of the XenServer. (I do this from the current pool master, just to be sure.)

First you have to disable HA on the pool, if you are using it:

#xe pool-ha-disable

Then we need to list the hosts in the pool, to find all the uuids of the xenservers in the pool

#xe host-list

Let’s Promote a new pool master

# xe pool-designate-new-master host-uuid=<type the uuid of the new master>

You should now have a new pool master, if not run the following commands:

Please Note: If the pool master is not available, then a switch has to be enforced to succeed.

#xe pool-emergency-transition-to-master

re-establish connectio to the slave hosts

#xe pool-recover-slave

You should now have a new pool master for your XenServer farm.