LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

keep getting split brain problem

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: keep getting split brain problem
From: Jiang <bearie66@xxxxxxxxx>
Date: Wed, 14 Jun 2006 18:48:28 +0800
Hi,

I have problem in my HA test. But I think it might relate to LVS. I have two
nodes, they are both LDs and real servers.

my ha.cf configuration is as below:
**************************************************************
logfacility     local0
ucast eth1 172.16.1.2
ucast eth3 172.16.2.2
auto_failback off
node    ICUCP1
node    ICUCP2
ping 10.226.200.254
respawn hacluster /usr/lib/heartbeat/ipfail
**************************************************************

I am running web servers on both nodes for testing purpose.

When I disconnected network cables from node 1, I noticed that node 2
became active. But when I restored network connections for node 1, it
failed to go back to be slave, ipvsadm -ln shows on both nodes are like:

Node 1:
***********************************************************************
[root@ICUCP1 root]# ipvsadm -Ln
IP Virtual Server version 1.0.8 (size=65536)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  10.226.200.210:8070 rr
-> 10.226.200.211:8070          Local   0      0          0
-> 10.226.200.213:8070          Route   0      0          0
TCP  10.226.200.210:80 rr
-> 10.226.200.213:80            Route   1      0          0
-> 10.226.200.211:80            Local   1      0          0
***********************************************************************

Node 2:
***********************************************************************
[root@ICUCP2 init.d]# ipvsadm -ln
IP Virtual Server version 1.0.8 (size=65536)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  10.226.200.210:8070 rr
-> 10.226.200.211:8070          Route   0      0          0
-> 10.226.200.213:8070          Local   0      0          0
TCP  10.226.200.210:80 rr
-> 10.226.200.213:80            Local   1      0          0
-> 10.226.200.211:80            Route   0      0          0
***********************************************************************

And we couldn't access the web service through VIP.

Can anybody pls enlight me what has gone wrong or maybe just guide me
where to check on?

Thanks!

<Prev in Thread] Current Thread [Next in Thread>