Hi all,
Back from holidays, I'm still looking why ha does not work on my nodes.
My ha.cf :
ucast eth1 192.168.4.3
debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility local7
keepalive 2
deadtime 10
warntime 6
initdead 60
node noeud1
node noeud2
auto_failback off
my haresources :
noeud1 IPaddr2::192.168.4.4 apache-preprod (where apache-preprod is a
link to /etc/init.d/apache-preprod which works fine with start and stop)
/etc/init.d/apache-preprod start (on node 1, node 2 is dead)
My log :
/heartbeat[23796]: 2008/09/02_10:26:54 info: Version 2 support: false
heartbeat[23796]: 2008/09/02_10:26:54 WARN: Logging daemon is disabled
--enabling logging daemon is recommended
heartbeat[23796]: 2008/09/02_10:26:54 info: **************************
heartbeat[23796]: 2008/09/02_10:26:54 info: Configuration validated.
Starting heartbeat 2.1.3
heartbeat[23797]: 2008/09/02_10:26:54 info: heartbeat: version 2.1.3
heartbeat[23797]: 2008/09/02_10:26:54 info: Heartbeat generation: 1217602467
heartbeat[23797]: 2008/09/02_10:26:54 info: glib: ucast: write socket
priority set to IPTOS_LOWDELAY on eth1
heartbeat[23797]: 2008/09/02_10:26:54 info: glib: ucast: bound send
socket to device: eth1
heartbeat[23797]: 2008/09/02_10:26:54 info: glib: ucast: bound receive
socket to device: eth1
heartbeat[23797]: 2008/09/02_10:26:54 info: glib: ucast: started on port
694 interface eth1 to 192.168.4.3
heartbeat[23797]: 2008/09/02_10:26:54 info: G_main_add_TriggerHandler:
Added signal manual handler
heartbeat[23797]: 2008/09/02_10:26:54 info: G_main_add_TriggerHandler:
Added signal manual handler
heartbeat[23797]: 2008/09/02_10:26:54 info: G_main_add_SignalHandler:
Added signal handler for signal 17
heartbeat[23797]: 2008/09/02_10:26:54 info: Local status now set to: 'up'
heartbeat[23797]: 2008/09/02_10:27:55 WARN: node noeud2: is dead
heartbeat[23797]: 2008/09/02_10:27:55 info: Comm_now_up(): updating
status to active
heartbeat[23797]: 2008/09/02_10:27:55 info: Local status now set to:
'active'
heartbeat[23797]: 2008/09/02_10:27:55 WARN: No STONITH device configured.
heartbeat[23797]: 2008/09/02_10:27:55 WARN: Shared disks are not protected.
heartbeat[23797]: 2008/09/02_10:27:55 info: Resources being acquired
from noeud2.
harc[23805]: 2008/09/02_10:27:55 info: Running /etc/ha.d/rc.d/status
status
mach_down[23833]: 2008/09/02_10:27:55 info:
/usr/share/heartbeat/mach_down: nice_failback: foreign resources acquired
mach_down[23833]: 2008/09/02_10:27:55 info: mach_down takeover
complete for node noeud2.
heartbeat[23797]: 2008/09/02_10:27:55 info: Initial resource acquisition
complete (T_RESOURCES(us))
heartbeat[23797]: 2008/09/02_10:27:55 info: mach_down takeover complete.
IPaddr2[23883]: 2008/09/02_10:27:55 INFO: Resource is stopped
heartbeat[23806]: 2008/09/02_10:27:55 info: Local Resource acquisition
completed.
harc[23944]: 2008/09/02_10:27:55 info: Running
/etc/ha.d/rc.d/ip-request-resp ip-request-resp
ip-request-resp[23944]: 2008/09/02_10:27:55 received ip-request-resp
IPaddr2::192.168.4.4 OK yes
ResourceManager[23965]: 2008/09/02_10:27:55 info: Acquiring resource
group: noeud1 IPaddr2::192.168.4.4 apache-preprod
IPaddr2[23992]: 2008/09/02_10:27:55 INFO: Resource is stopped
ResourceManager[23965]: 2008/09/02_10:27:55 info: Running
/etc/ha.d/resource.d/IPaddr2 192.168.4.4 start
IPaddr2[24080]: 2008/09/02_10:27:55 INFO: ip -f inet addr add
192.168.4.4/24 brd 192.168.4.255 dev eth0
IPaddr2[24080]: 2008/09/02_10:27:55 INFO: ip link set eth0 up
IPaddr2[24080]: 2008/09/02_10:27:55 INFO: /usr/lib64/heartbeat/send_arp
-i 200 -r 5 -p /var/run/heartbeat/rsctmp/send_arp/send_arp-192.168.4.4
eth0 192.168.4.4 auto not_used not_used
IPaddr2[24063]: 2008/09/02_10:27:55 INFO: Success
ResourceManager[23965]: 2008/09/02_10:27:55 info: Running
/etc/ha.d/resource.d/apache-preprod start
ResourceManager[23965]: 2008/09/02_10:27:55 ERROR: Return code 1 from
/etc/ha.d/resource.d/apache-preprod
ResourceManager[23965]: 2008/09/02_10:27:55 CRIT: Giving up resources
due to failure of apache-preprod
ResourceManager[23965]: 2008/09/02_10:27:55 info: Releasing resource
group: noeud1 IPaddr2::192.168.4.4 apache-preprod
ResourceManager[23965]: 2008/09/02_10:27:55 info: Running
/etc/ha.d/resource.d/apache-preprod stop
ResourceManager[23965]: 2008/09/02_10:27:56 info: Running
/etc/ha.d/resource.d/IPaddr2 192.168.4.4 stop
IPaddr2[24266]: 2008/09/02_10:27:56 INFO: killed previously running
send_arp for 192.168.4.4
IPaddr2[24266]: 2008/09/02_10:27:56 INFO: ip -f inet addr delete
192.168.4.4/24 dev eth0
IPaddr2[24266]: 2008/09/02_10:27:56 INFO: ip -o -f inet addr show eth0
IPaddr2[24249]: 2008/09/02_10:27:56 INFO: Success
heartbeat[23797]: 2008/09/02_10:28:05 info: Local Resource acquisition
completed. (none)
heartbeat[23797]: 2008/09/02_10:28:05 info: local resource transition
completed.
hb_standby[24335]: 2008/09/02_10:28:26 Going standby [foreign].
heartbeat[23797]: 2008/09/02_10:28:26 info: noeud1 wants to go standby
[foreign]
heartbeat[23797]: 2008/09/02_10:28:36 WARN: No reply to standby
request. Standby request cancelled.
/
eth0:0 is down so it can explain what's following :
/[EMAIL PROTECTED] resource.d]# ./apache-preprod stop
Arrêt de httpd : [ÉCHOUÉ]
[EMAIL PROTECTED] resource.d]# ./apache-preprod start
Démarrage de httpd :(99)Cannot assign requested address: make_sock:
could not bind to address 192.168.4.4:8000
no listening sockets available, shutting down
Unable to open logs
[ÉCHOUÉ]
[EMAIL PROTECTED] resource.d]# ifconfig eth0:0 192.168.4.4
[EMAIL PROTECTED] resource.d]# ./apache-preprod start
Démarrage de httpd :(98)Address already in use: make_sock: could not
bind to address 192.168.4.4:8000
no listening sockets available, shutting down
Unable to open logs
[ÉCHOUÉ]
[EMAIL PROTECTED] resource.d]# ifconfig eth0:0 down
[EMAIL PROTECTED] resource.d]# ./apache-preprod start
Démarrage de httpd :(99)Cannot assign requested address: make_sock:
could not bind to address 192.168.4.4:8000
no listening sockets available, shutting down
Unable to open logs
[ÉCHOUÉ]/
192.168.4.4 is the address IP set in my httpd.conf. Is it right ?
I don't understand what is wrong ????
Franck
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems