I use with Debian4+ipvs+HA
my lab in http://golfreeze.packetlove.com/smileboard/view.php?qID=4
Best regards,
###########################
Watthanachai KEKHUA
NTT Communication (Thailand) Co., Ltd
System Service Group
Office 02-6362707 ??? (3155)
Direct +66-(0)2637-6195
###########################
----- Original Message -----
From: "Stephan Berlet" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, January 31, 2008 6:21 PM
Subject: [Linux-HA] ldirectord problem, monitor fails
Hello,
First of all I want to excuse me for my bad english!
I'm intend to set up a load balanced cluster on 2 nodes, monitored
by heartbeat. Like this schema:
http://www.ultramonkey.org/3/topologies/sl-ha-lb-eg.html
I took some hints from this site:
http://www.jedi.com/obiwan/technology/ultramonkey-rhel4.html
Node1: defas1, RIP=172.30.4.150(eth0), VIP=172.30.4.170
Node2: defas2, RIP=172.30.4.160(eth0), VIP=172.30.4.170
The active linux director holds the VIP on eth0:0,
the passive linux director holds the VIP on lo:0.
So it should be. But either the ldirectord_monitor action fails
or the LVSSyncDaemonSwap_2_start / stop actions.
Here my configuration steps (on both nodes):
# cat /etc/sysctl.conf
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.conf.all.arp_ignore = 1 # new line
net.ipv4.conf.eth0.arp_ignore = 1 # new line
net.ipv4.conf.eth1.arp_ignore = 1 # new line
net.ipv4.conf.all.arp_announce = 2 # new line
net.ipv4.conf.eth0.arp_announce = 2 # new line
net.ipv4.conf.eth1.arp_announce = 2 # new line
net.ipv4.ip_forward = 1 # new line
kernel.msgmnb = 1000000
kernel.msgmni = 256
kernel.msgmax = 100000
# cat /etc/sysconfig/network-scripts/ifcfg-lo:0
DEVICE=lo:0
IPADDR=172.30.4.170
NETMASK=255.255.255.255
NETWORK=172.30.0.0
BROADCAST=172.30.0.255
ONBOOT=yes
NAME=loopback
# ifup lo
# ip addr sh lo
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet 172.30.4.170/32 brd 172.30.0.255 scope global lo:0
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
# cat /etc/ha.d/ha.cf
use_logd yes
crm on
keepalive 5
deadtime 15
warntime 10
initdead 45
udpport 694
bcast eth1
serial /dev/ttyS0
baud 115200
node defas1
node defas2
# cat /etc/ha.d/ldirectord.cf
checktimeout=5
checkinterval=10
autoreload=yes
logfile="/var/log/ldirectord.log"
quiescent=yes
virtual=172.30.4.170:80
fallback=127.0.0.1:80
real=172.30.4.150:80 gate 100
real=172.30.4.160:80 gate 55
service=http
request="alive.html"
receive="Ich lebe!"
scheduler=wlc
persistent=600
protocol=tcp
checktype=negotiate
The /var/lib/heartbeat/crm/cib.xml I created by conversion from a
haresources file like this:
# cat /root/haresources.temp
defas1 \
ldirectord::ldirectord.cf \
LVSSyncDaemonSwap::master \
172.30.4.170/16/eth0
# python /usr/lib/heartbeat/haresources2cib.py /root/haresources.temp
# /etc/init.d/heartbeat start (defas1 before defas2)
Then I added this line to the IPaddr primitive:
<nvpair id="IPaddr_eth_attr_3" name="lvs_support" value="true"/>
I also tried to change the class from the ldirectord from "heartbeat"
to "ocf" with no success.
With class="ocf" the ldirectord_1_monitor_120000 action failed with rc=1
in /var/log/messages: ERROR: (raexecocf.c:execra:173) execl failed for
/usr/lib/ocf/resource.d//hearbeat/ldirectord: No such file or directory
# crm_mon -1
============
Last updated: Thu Jan 31 10:44:46 2008
Current DC: defas2 (8d083aa4-14cc-4cca-9a8c-e7308fb2743c)
2 Nodes configured.
1 Resources configured.
============
Node: defas1 (6ca8e370-6b00-4b8c-85fe-a67da4c562ba): online
Node: defas2 (8d083aa4-14cc-4cca-9a8c-e7308fb2743c): online
Resource Group: group_1
ldirectord_1 (hearbeat::ocf:ldirectord)[ defas2 defas1 ]
LVSSyncDaemonSwap_2 (heartbeat:LVSSyncDaemonSwap): Stopped
IPaddr_eth (heartbeat::ocf:IPaddr): Stopped
Failed actions:
ldirectord_1_monitor_0 (node=defas2, call=2, rc=1): Error
ldirectord_1_stop_0 (node=defas2, call=5, rc=1): Error
ldirectord_1_monitor_0 (node=defas1, call=2, rc=1): Error
ldirectord_1_stop_0 (node=defas1, call=5, rc=1): Error
If I then try to stop heartbeat "/etc/init.d/heartbeat stop" it hangs.
With class="heartbeat" the LVSSyncDaemonSwap_2_start_0 actions fails:
Resource Group: group_1
ldirectord_1 (heartbeat:ldirectord): Started defas1 FAILED
LVSSyncDaemonSwap_2 (heartbeat:LVSSyncDaemonSwap): Started defas1
(unmanaged) FAILED
IPaddr_eth (heartbeat::ocf:IPaddr): Stopped
Failed actions:
LVSSyncDaemonSwap_2_start_0 (node=defas1, call=8, rc=255): Error
LVSSyncDaemonSwap_2_stop_0 (node=defas1, call=9, rc=255): Error
ldirectord_1_monitor_120000 (node=defas1, call=7, rc=7): complete
I had tried to add a second IPaddr with the VIP on loopback, and added
a constraint that this IP never runs where the VIP is active on eth.
<rsc_colocation id="ip_not_same" from="IPaddr_lo"
to="IPaddr_eth" score="-INFINITY"/>
But this didn't lead me to success, too.
I have attached both cib.xml with status from "cibadmin -Ql > local.xml"
and the output from "tail -f /var/log/messages" of both nodes.
Can somebody tell me, what could be wrong or
what I have to change to get this running?
I'm running heartbeat-2.1.2-3 under
CentOS release 4.5 (Final) 2.6.9-55.EL i686
By the way I have a question about upgrading heartbeat to 2.1.3:
Do I have to uninstall my old RPMs
(2.1.2-3 from http://mirror.centos.org/centos/4/extras/i386/RPMS/),
or can I just install the new RPMs
(2.1.3-2 from http://people.centos.org/~hughesjr/heartbeat/4/i386/)
over the current installation?
Do I have to backup some files or configs?
What things I have to look at specially?
Thanks in advance
Stephan Berlet
HELPING HEADS for Hard- and Software
-------------------------------------------------------------------------
Für Ihre Projekte entwickeln wir maßgeschneiderte Lösungen - schnell,
flexibel und direkt vor Ort. Unser eingespieltes Team an erfahrenen Hard-
und Software-Spezialisten unterstützt Sie dort, wo Sie uns brauchen.
--------------------------------------------------------------------------
SysDesign GmbH
Säntisstrasse 25
D-88079 Kressbronn am Bodensee
Geschäftsführer: Franz Kleiner, Achim Solle
Handelsregister: Ulm 632138
--------------------------------------------------------------------------
--------------------------------------------------------------------------------
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems