Few months back, I had an issue with one of the xen server, we had 2 servers (Server1 & Server2) in a pool. server1 is down and unable to bring it up due to hardware issue.
- Not able to connect SERVER2 with Xen center
- Login to -> Putty to SERVER2 , issued the command to su – To change shell to super user mode
- Issue the command xe vm-list & xe host-list -> Check server is displaying VM’s or host , if not execute below commands
- Issue the command xe-tool-stack-restart -> To display the VM’s & host, by issuing this command VM’s & server will not have any impact
- After issuing above command , all xen server commands are working and able to see host & VM list
- Currently SERVER2 is a slave , issue the below command to force SERVER2 as a master
- xe pool-emergency-transition-to-master
- Now the SERVER2 is a master, issue the below command to know the which xen servers are false or live and to know UID’s
xe host-list params=uuid,name-label,host-metrics-live
- Collected the Xen Server UID from above screenshot and issue the below command to know which VM’s are running on the failed server
xe vm-list is-control-domain=false resident-on=fdd15cbc-42ce-4154-8731-9a469ce04976 (Format : xe vm-list is-control-domain=false resident-on=UUID_of_failed_server)
- It displayed all VM;’s which are running on failed server , collect the VM UID and issue the VM power reset command as below
Format : xe vm-reset-powerstate uuid=<UUID_of_the_VM_to_recover> –force
- xe vm-reset-powerstate uuid= 26177b43-eb3e-5d49-ee09-a93bfdca1bbc–force
- xe vm-reset-powerstate uuid= cb3f18ac-846c-ae46-1bbe-3c6e2ea6560a–force
- By issuing above commands, VM’s registered in Xencenter and it is visible, powered on each VM.
Above POST created based on personal experience & knowledge for personal reuse.
In case, if you wish you to use the above article, use the above steps upon proper testing and reader will be responsible for any outcome.