XenServer: Server won’t exist maintenance mode, Cannot forward messages because the server cannot be contacted

XenServer: Server won’t exist maintenance mode, Cannot forward messages because the server cannot be contacted



If you ever find that, in XenServer, your server won’t exist maintenance mode after a power failure, or even just normally you may have a corrupt state.db file.

The error message you may get while trying to make a change on the node is:

Cannot forward messages because the host cannot be contacted.  The host may be switched off or there may be network connectivity problems.

If this is in fact a state.db corruption in a pool, you can try the following steps to fix the issue:

  1. cd /var/xapi
  2. ls -al  -> check the results of this, usually the state.db will have an old time stamp – the time at which is became corrupted.
  3. mv state.db state.db_bak
  4. service xapi restart

If this does not fix the issue, I’ve heard of users opening state.db with an xml editor (its just an xml file) and fixing the errors in the xml file. Some other users have mentioned that the cause of the issue could be that the config in the node that is down in maintenance mode could have the incorrect config in /etc/xensource/pool.conf. The format should be “slave:[masterip]”.

 

 

 


Categories

  • Pingback: Crucial Paradigm Web Solutions()

  • edwin

    another option is: make another host the master
    xe pool-emergency-transition-to-master
    and then xe pool-recover-slaves to see the slaves.

  • miguel

    Muchas gracias por la ayuda.