Thanks for your walkthrough, but I want to use LVS in Direct Routing mode instead of NAT mode, because it's the only way to have the real server on the same machines like the linux directors.
It's still a mystery to me, if this setup is possible in heartbeat v2 mode? And if thats possible, how I have to modify the cib.xml? > -----Original Message----- > From: watthanachai [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 31, 2008 1:38 PM > To: General Linux-HA mailing list; [EMAIL PROTECTED] > Subject: Re: [Linux-HA] ldirectord problem, monitor fails > > > 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): --- snip --- >> 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
