[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-ha
Subject:    [Linux-HA] active/active configuration question, urgent,
From:       Jiang <bearie66 () gmail ! com>
Date:       2006-06-27 9:17:41
Message-ID: d6e10810606270217q53e85bd2g6d86cb4b363672ef () mail ! gmail ! com
[Download RAW message or body]

Hi

I am now trying to run several services on two nodes.

The setup is as below:
VIP1: 10.226.193.230
VIP2: 10.226.193.250

Real IP 1: 10.226.193.189
Real IP 2: 10.226.193.190

Service 1 is running on both Node1 and Node 2, monitored by ldirectord.

And I have a problem when trying to configure more services, eg.
serviceA running on node 1
serviceB running on node 2

My haresources is configured like this:
*************************************************
node1 \
       10.226.193.230 \
       10.226.193.250 \
       ldirectord::/etc/ha.d/ldirectord.cf #service 1 is
loadbalancing inside ldirectord.cf

node1 serviceA
node2 serviceB
*************************************************

During my test, whenever I shutdown heartbeat on one node, I will get
error msg on the other node:
*****************************************************
Jun 27 15:33:20 ctestsrv1 heartbeat: info: Running
/etc/ha.d/resource.d/ldirectord /etc/ha.d/ldirectord.cf start
Jun 27 15:33:21 ctestsrv1 heartbeat: ERROR: Return code 1 from
/etc/ha.d/resource.d/ldirectord
Jun 27 15:33:21 ctestsrv1 heartbeat[9249]: ERROR:
/usr/lib/heartbeat/ResourceManager takegroup 10.226.193.230
10.226.193.250 ldirectord::/etc/ha.d/ldirectord.cf  returned 256
Jun 27 15:33:21 ctestsrv1 heartbeat[9249]: info: local HA resource
acquisition completed (standby).
*****************************************************

and arptable was also not fully released:
*****************************************************
Chain IN (policy ACCEPT 116K packets, 3242K bytes)
 pkts bytes target     in     out     source-ip
destination-ip       source-hw          destination-hw     hlen   op
     hrd        pro
   0     0 DROP       *      *       0.0.0.0/0
10.226.193.190       00/00              00/00              any
0000/0000  0000/0000  0000/0000

Chain OUT (policy ACCEPT 12647 packets, 354K bytes)
 pkts bytes target     in     out     source-ip
destination-ip       source-hw          destination-hw     hlen   op
     hrd        pro
   0     0 mangle     *      eth0    10.226.193.190       0.0.0.0/0
        00/00              00/00              any    0000/0000
0000/0000  0000/0000 --mangle-ip-s 10.226.193.189
   0     0 mangle     *      eth1    10.226.193.190       0.0.0.0/0
        00/00              00/00              any    0000/0000
0000/0000  0000/0000 --mangle-ip-s 172.16.1.1
*****************************************************

Can you guys pls advice normally what is the right way to configure
haresource for my situation?

Thanks!!


--
Regards,
Jiang
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic