Unable to Connect to High Availability Enabled XenSever Pool and All Servers in Pool are in Emergency Mode

Unable to Connect to High Availability Enabled XenSever Pool and All Servers in Pool are in Emergency Mode

book

Article ID: CTX131127

calendar_today

Updated On:

Description

This article provides resolution to connectivity issues to the pool in XenCenter. Following are some of the issues that you might experience:

  • Cannot connect to the pool in XenCenter

  • Cannot start or migrate the virtual machines, although the virtual machines are active and running.

  • All the servers are in an emergency mode

  • If you run the command cat /etc/xensource/pool.conf, the former pool master server points to one of the slave servers, and all the slave servers point to the pool master server.

  • The pool master server indicating it is a slave of itself.

    Resolution

    To resolve the preceding issue, complete the following procedure:

    1. Connect to the pool by using a utility such as PuTTY.

    2. Run the following command on all the servers in the pool:
      # xe host-emergency-ha-disable

    3. Run the following command:
      #xe-toolstack-restart

    4. If the servers in the pool do not restart, run the following command on any one of the servers, which you want to assign as the pool master:
      #xe pool-emergency-transition-to-master

    5. Run the following command:
      #xe pool-recover-slaves

    6. If the servers in the pool do not restart, run the following command:
      pool-emergency-reset-master master-address=<IP address of the new master from the previous command>

    7. On the master server, run the following command:
      #xe pool-recover-slaves
      The servers in the pool start.

    8. Re-enable High Availability by using XenCenter.


    Problem Cause

    When High Availability is disabled and the pool master and one or more of the slave servers in the pool self-fence or lose power at the same time, the other servers nominate a new master.

    After the old master server and the hosts start up again, the servers do not contain the updated details of the changed pool master server. These servers enter into an emergency mode and elect each other as the master server.

    If the master server fails when it starts again, it cannot communicate to any other machines in the pool, it displays itself as a slave and points to itself.

    Issue/Introduction

    This article provides resolution to connectivity issues to the pool in XenCenter.