Hi all,

I've the following problem :

heartbeat[21036]: 2008/08/05_15:13:17 info: Version 2 support: false
heartbeat[21036]: 2008/08/05_15:13:17 WARN: Logging daemon is disabled --enabling logging daemon is recommended
heartbeat[21036]: 2008/08/05_15:13:17 info: **************************
heartbeat[21036]: 2008/08/05_15:13:17 info: Configuration validated. Starting heartbeat 2.1.3
heartbeat[21037]: 2008/08/05_15:13:17 info: heartbeat: version 2.1.3
heartbeat[21037]: 2008/08/05_15:13:17 info: Heartbeat generation: 1217925528 heartbeat[21037]: 2008/08/05_15:13:17 info: glib: UDP Broadcast heartbeat started on port 694 (694) interface eth0 heartbeat[21037]: 2008/08/05_15:13:17 info: glib: UDP Broadcast heartbeat closed on port 694 interface eth0 - Status: 1 heartbeat[21037]: 2008/08/05_15:13:17 info: G_main_add_TriggerHandler: Added signal manual handler heartbeat[21037]: 2008/08/05_15:13:17 info: G_main_add_TriggerHandler: Added signal manual handler heartbeat[21037]: 2008/08/05_15:13:17 info: G_main_add_SignalHandler: Added signal handler for signal 17
heartbeat[21037]: 2008/08/05_15:13:17 info: Local status now set to: 'up'
heartbeat[21037]: 2008/08/05_15:13:18 info: Link avil003.sylvea.fr:eth0 up.
heartbeat[21037]: 2008/08/05_15:14:18 WARN: node noeud1: is dead
heartbeat[21037]: 2008/08/05_15:14:18 info: Comm_now_up(): updating status to active heartbeat[21037]: 2008/08/05_15:14:18 info: Local status now set to: 'active'
heartbeat[21037]: 2008/08/05_15:14:18 WARN: No STONITH device configured.
heartbeat[21037]: 2008/08/05_15:14:18 WARN: Shared disks are not protected.
heartbeat[21037]: 2008/08/05_15:14:18 info: Resources being acquired from noeud1. harc[21046]: 2008/08/05_15:14:18 info: Running /etc/ha.d/rc.d/status status mach_down[21075]: 2008/08/05_15:14:18 info: /usr/share/heartbeat/mach_down: nice_failback: foreign resources acquired mach_down[21075]: 2008/08/05_15:14:18 info: mach_down takeover complete for node noeud1.
heartbeat[21037]: 2008/08/05_15:14:18 info: mach_down takeover complete.
heartbeat[21037]: 2008/08/05_15:14:18 info: Initial resource acquisition complete (mach_down)
IPaddr[21122]:  2008/08/05_15:14:18 INFO:  Resource is stopped
heartbeat[21047]: 2008/08/05_15:14:18 info: Local Resource acquisition completed. harc[21171]: 2008/08/05_15:14:18 info: Running /etc/ha.d/rc.d/ip-request-resp ip-request-resp ip-request-resp[21171]: 2008/08/05_15:14:18 received ip-request-resp IPaddr::192.168.4.3 OK yes ResourceManager[21192]: 2008/08/05_15:14:18 info: Acquiring resource group: avil003.sylvea.fr IPaddr::192.168.4.3 apache
IPaddr[21219]:  2008/08/05_15:14:18 INFO:  Resource is stopped
ResourceManager[21192]: 2008/08/05_15:14:18 info: Running /etc/ha.d/resource.d/IPaddr 192.168.4.3 start IPaddr[21293]: 2008/08/05_15:14:18 INFO: Using calculated nic for 192.168.4.3: eth0 IPaddr[21293]: 2008/08/05_15:14:18 INFO: Using calculated netmask for 192.168.4.3: 255.255.255.0 IPaddr[21293]: 2008/08/05_15:14:18 INFO: eval ifconfig eth0:2 192.168.4.3 netmask 255.255.255.0 broadcast 192.168.4.255
IPaddr[21276]:  2008/08/05_15:14:18 INFO:  Success
apache[21415]:  2008/08/05_15:14:18 INFO: apache not running
apache[21404]:  2008/08/05_15:14:18 INFO:  Resource is stopped
ResourceManager[21192]: 2008/08/05_15:14:18 info: Running /etc/ha.d/resource.d/apache start
apache[21487]:  2008/08/05_15:14:19 INFO: apache not running
apache[21487]: 2008/08/05_15:14:19 INFO: waiting for apache /usr/local/apache/conf/httpd.conf to come up

--------- here is the problem ---------------

apache[21487]: 2008/08/05_15:14:20 ERROR: command failed: sh -c wget -O- -q -L --bind-address=127.0.0.1 http://192.168.4.3:80 | tr '\012' ' ' | grep -Ei "</ *body *>[[:space:]]*</ *html *>" >/dev/null
apache[21476]:  2008/08/05_15:14:20 ERROR:  Generic error
ResourceManager[21192]: 2008/08/05_15:14:20 ERROR: Return code 1 from /etc/ha.d/resource.d/apache ResourceManager[21192]: 2008/08/05_15:14:20 CRIT: Giving up resources due to failure of apache ResourceManager[21192]: 2008/08/05_15:14:20 info: Releasing resource group: avil003.sylvea.fr IPaddr::192.168.4.3 apache ResourceManager[21192]: 2008/08/05_15:14:20 info: Running /etc/ha.d/resource.d/apache stop
apache[21610]:  2008/08/05_15:14:21 INFO: Killing apache PID 21520
apache[21610]:  2008/08/05_15:14:21 INFO: apache stopped.
apache[21599]:  2008/08/05_15:14:21 INFO:  Success
ResourceManager[21192]: 2008/08/05_15:14:21 info: Running /etc/ha.d/resource.d/IPaddr 192.168.4.3 stop
IPaddr[21701]:  2008/08/05_15:14:21 INFO: ifconfig eth0:2 down
IPaddr[21684]:  2008/08/05_15:14:21 INFO:  Success
heartbeat[21037]: 2008/08/05_15:14:28 info: Local Resource acquisition completed. (none) heartbeat[21037]: 2008/08/05_15:14:28 info: local resource transition completed.
hb_standby[21746]:      2008/08/05_15:14:51 Going standby [foreign].
heartbeat[21037]: 2008/08/05_15:14:51 info: avil003.sylvea.fr wants to go standby [foreign] heartbeat[21037]: 2008/08/05_15:15:01 WARN: No reply to standby request. Standby request cancelled.


So heartbeat is unable to launch my virtual IP <javascript:void(0)> (192.168.4.3) and apache.

Here is my ha.cf :

bcast         eth0

debugfile     /var/log/ha-debug
logfile       /var/log/ha-log
logfacility   local0

keepalive     2
deadtime      10
warntime      6
initdead      60

udpport       694
node          noeud1
node            avil003
auto_failback on

my haresources
avil003 IPaddr::192.168.4.3 apache-preprod

I modified /usr/lib/ocf/resource.d/heartbeat/apache-preprod (which is a copy of the apache binary)
HTTPDLIST="/usr/local/apache-preprod/bin/httpd $IBMHTTPD"

I copied /etc/ha.d/resource.d/apache to apache-preprod.

If I launch IPadr, apache-preprod manually, everything is ok.


Any help will be really appreciated ...


Thanks in advance

Franck

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to