To recover VMs from Failed Xenserver host:

1). First you have to figure out which server in the environment has failed. To do this, you’ll want to run the command,

 xe host-list params=uuid,name-label,host-metrics-live

  Any servers that come back with “host-metrics-live = false” have failed. Take note of the UUID of any failed servers

2) Then try to restart the service for the failed host by executing this command on the failed host using Putty

 service xapi restart

 3) Second, you must determine which VM’s were running on that failed server. You can do this by running the command,

 xe vm-list is-control-domain=false resident-on=UUID_of_failed_host 

4) Once you’ve determined which VM’s were running, you need to reset their power state in order to get them to move onto another server. To do this, run the command,

 xe vm-reset-powerstate uuid=UUID_of_failed_vm –force –multiple


You should see the VM’s in question now show up as halted in the Xencenter console. Restart each of the VM’s, and they should now boot up onto surviving pool member servers.

Note:


To do this, the VMs should be in shared storage.

No comments:

Post a Comment