Xenserver pool master server for maintanance

Hi,

I have 3 xen servers in a pool. I am planning to upgraded al 3 server's memory. I planned to do one by one at a time. when i do for pool master (xen1) i will move all vm's into xen2 and xen2, then i will shutdown the pool master and upgrade the RAM and start the pool master server. Is it the right way.

My doubt is, If I down the pool master for memory upgrade, will VM's in other server work?

Thanks
kolathaya123Asked:
Who is Participating?
 
Ayman BakrConnect With a Mentor Senior ConsultantCommented:
First put your pool master into maintenance mode. Right click on the server, then select Enter Maintenance Mode. Alternatively you can issue the following commands from CLI:
xe host-list

Open in new window

note down the uuid of the pool master then issue
xe host-disable uuid=<host uuid>
xe host-evacuate uuid=<host uuid>

Open in new window

The <host uuid> will be the uuid you got from the previous command.

This will automatically migrate the VMs to other servers and trigger an election for another pool master.

After the upgrade and putting it up you need to go out of maintenance mode by right clicking on the server, then selecting Exit Maintenance Mode. Or alternatively issuing this from CLI:
xe host-enable uuid=<host uuid>

Open in new window


You will do this with the rest of the servers one by one. Hope this helps.
0
 
kolathaya123Author Commented:
Thanks a lot.

One more question.

I don't have full resource to move all vm's into other server's . only 50% of VM's I can move. In this case. first I can shutdown 50% of VM's in the pool master, the put the pool master in maintenance more, so other 50% VM's will move to other hosts and new pool master will be elected right. Then I will switch of pool master, upgrade memory, start pool master, exit maintenance mode.

Is this correct?
0
 
Ayman BakrSenior ConsultantCommented:
Yep, you are right. The idea is not to have any VM running on the xenserver you want to bring down. So whether you would like 100% migration, 50% migration or 0% migration of VMs, you need to ensure that the VMs are not running on that XenServer and thus you need to shut down those that are not migrated.

Then when you enter maintenance mode, you are telling the system to disable the XenServer from accepting any VM to start on it, migrate VMs if any exist to other XenServers, and if the XenServer is a pool master, trigger an election for another server to be the pool master.

Next you shut down, do the upgrade, bring it up, test that VMs can start on it, working fine and continue with the rest of the XenServers.
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
kolathaya123Author Commented:
Thank you very much..
0
 
kolathaya123Author Commented:
Hi,

One more question:

if my pool master is down due to power, I can restore the pool master role to another server in the pool using xe pool-emergency-transition-to-master. But how to bring the VM's from the dead pool master? will they come automatically into the new pool ?
0
 
Ayman BakrSenior ConsultantCommented:
The attached file should help you.

XenServer-System-Recovery-Guide-.pdf
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.