Article ID: 123123, created on Oct 10, 2014, last review on Oct 10, 2014

  • Applies to:
  • Virtuozzo 6.0

Symptoms

shamand service fails to start with a similar error:

 # /etc/init.d/shamand start
 Starting shamand-monitor:                                  [  OK  ]
 Waiting 600 seconds for shaman-monitor to start : error 1[FAILED]
 Shutting down shamand-monitor: 
                                                            [  OK  ]

The following entries can be found in /var/log/messages:

Aug 27 17:13:53 node shamand-monitor[39249]: Monitor started
Aug 27 17:13:53 node shamand-monitor[39251]: Starting /usr/sbin/shaman-monitor --quiet ...
Aug 27 17:13:53 node shamand-monitor[39273]: /usr/sbin/shaman-monitor exited with code 2
Aug 27 17:13:58 node shamand-monitor[39280]: Will restart /usr/sbin/shaman-monitor
Aug 27 17:13:58 node shamand-monitor[39281]: Starting /usr/sbin/shaman-monitor --quiet ...
Aug 27 17:13:58 node shamand-monitor[39301]: /usr/sbin/shaman-monitor exited with code 2
Aug 27 17:14:03 node shamand-monitor[39318]: Will restart /usr/sbin/shaman-monitor
Aug 27 17:14:03 node shamand-monitor[39319]: Starting /usr/sbin/shaman-monitor --quiet ...
Aug 27 17:14:03 node shamand-monitor[39339]: /usr/sbin/shaman-monitor exited with code 2
Aug 27 17:14:08 node shamand-monitor[39345]: Will restart /usr/sbin/shaman-monitor

Cause

The wrong host ID is specified - the folder for this server is absent or host_id file was modified/corrupted:

# cat /etc/pstorage/host_id
d9fe3759246544ab
# ls -1d /pstorage/pcscluster/.shaman/md*
/pstorage/pcscluster/.shaman/md.2369ab7eccfd42ce
/pstorage/pcscluster/.shaman/md.64aab38d792545c6/ 
/pstorage/pcscluster/.shaman/md.a2371f582644408c/

Resolution

Run the following command to recreate the folder and afterwards start the service:

# shaman join <CLUSTER_NAME>
# service shamand start

Search Words

shaman join

exited with code 2

/usr/sbin/shaman-monitor exited with code 2

Starting shamand-monitor failed

c62e8726973f80975db0531f1ed5c6a2 2897d76d56d2010f4e3a28f864d69223 0dd5b9380c7d4884d77587f3eb0fa8ef

Email subscription for changes to this article
Save as PDF