[Linux-HA] error in starting or stopping httpd

Usman Ahmad usmanamalik at gmail.com
Wed Sep 6 07:37:05 MDT 2006


I am running HA-2.0.7 compiled on two nodes running Scientific Linux,
I see the errors,
========================
Running /etc/init.d/httpd  stop
ResourceManager[13273]: 2006/09/06_15:14:57 ERROR: Return code 1 from
/etc/init.d/httpd
ResourceManager[13273]: 2006/09/06_15:14:58 info: Retrying failed stop
operation [httpd]
ResourceManager[13273]: 2006/09/06_15:14:58 info: Running /etc/init.d/httpd
stop
ResourceManager[13273]: 2006/09/06_15:14:58 ERROR: Return code 1 from
/etc/init.d/httpd
ResourceManager[13273]: 2006/09/06_15:14:59 info: Retrying failed stop
operation [httpd]
ResourceManager[13273]: 2006/09/06_15:14:59 info: Running /etc/init.d/httpd
stop
ResourceManager[13273]: 2006/09/06_15:14:59 ERROR: Return code 1 from
/etc/init.d/httpd
ResourceManager[13273]: 2006/09/06_15:14:59 ERROR: Resource script for httpd
probably not LSB-compliant.
ResourceManager[13273]: 2006/09/06_15:14:59 WARN: it (httpd) MUST succeed on
a stop when already stopped
ResourceManager[13273]: 2006/09/06_15:14:59 WARN: Machine reboot narrowly
avoided!
=======================

The HB is not able to stop/start the httpd service, may i know which uid is
used for this purpose, and can I specify one?

The haresources file is a one liner: same on both nodes
============================
lnx4021.mydomain.com 192.168.89.214 httpd
============================

The ha.cf is as follows:
============================
use_logd off
logfile /var/log/ha-log
debugfile /var/log/ha-debug
#serial /dev/ttyS0
watchdog /dev/watchdog
bcast eth0
compression bz2
compression_threshold 2
#conn_logd_time 60
#crm true
deadping 20
debug 5
#hbgenmethod file
keepalive 2
warntime 10
deadtime 30
initdead 50
hopfudge 1
baud 19200
udpport 694
auto_failback on
node lnx4023.mydomain.com lnx4021.mydomain.com
respawn hacluster /usr/lib/heartbeat/ipfail
ping 192.168.203.15
traditional_compression false
============================

eth0 private, eth1 is LAN on both machines
I have tried this, the 4021 node is master and start the httpd and heartbeat
service by hand, I unplug the eth1, 4023 starts the httpd locally and takes
over,
When I plug the eth1 back, auto_failback should run and take resource back,
but I see a lot of errors regarding start and stop of httpd, and it never
starts...

Can someone help, I am ne wto this?

Regards
Usman


More information about the Linux-HA mailing list