XenServer – Sometimes you just have to force an issue.

XenServer pool consisting of 2 machines in HA mode.  Server 2 goes down.  Server 2 happens to be our “pool master”.  Citrix Admin can’t get into XenCenter to manage the system.  Server 2 comes backup but HA won’t start.  Server 2 reports it’s in emergency mode.  Server 1 says it’s not in emergency mode and HA is running.  Citrix Admin still can’t use XenCenter to manage system.

Now keep in mind we are on a quest to remove XenServer from our environment.  I could go into the reasons why but I won’t.  Let’s just say it’s a decision, and it was made, and IMO it’s good for us.  I have nothing against XenServer – It’s just not my cup of tea, if you will.

Shutdown Server 2 then on Server 1:

xe host-emergency-ha-disable force=true

I had tried to be nice and just do a normal HA disable but the server was having none of it so I forced the issue.  After this I forced Server 1 to become the master

xe pool-emergency-transition-to-master

You have to be out of HA mode to do this so now it worked.  After this, and with much pleasure, I told Server 2 where to stick it.

xe host-list

This gets the list of hosts in my case:

uuid ( RO) : 302af1e8-90c1-4e79-93a2-ba8a5d08c5f3
name-label ( RW): XenServ1
name-description ( RW): Default install of XenServer

uuid ( RO) : 4ff4f070-7d73-40cb-b543-52dbaba8d608
name-label ( RW): XenServ2
name-description ( RW): Default install of XenServer

Removing Server 2 from the pool forever.  BEGONE!

xe host-forget uuid=4ff4f070-7d73-40cb-b543-52dbaba8d608

Not the most elegant of solutions but very effective.


One thought on “XenServer – Sometimes you just have to force an issue.

  1. I have been using the free XenCenter and had a pool master go out on me. the slave happened to have the email system on it so i was kinda freaking out. All i needed was “xe pool-emergency-transition-to-master” and everything was working. Thankf for the info 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s