LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

errors in heartbeat logs on FC3

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: errors in heartbeat logs on FC3
From: ankush grover <ankushgrover1711@xxxxxxxxx>
Date: Thu, 20 Oct 2005 10:13:22 +0530
hey friends,

I am trying to configure StreamLine High Availability and Load
Balancing.Ihave 2 pcs both running FC3.
The pc linux.sunupdelhi.net <http://linux.sunupdelhi.net/> is the primary
one and cluster1.sunupdelhi.net <http://cluster1.sunupdelhi.net/> is the
standy linux-director.

I am getting these errors in ha-log

heartbeat: 2005/10/19_14:33:44 info: remote resource transition completed.
heartbeat: 2005/10/19_14:33:44 ERROR: Both machines own our resources!
heartbeat: 2005/10/19_14:33:44 ERROR: Both machines own foreign resources!
heartbeat: 2005/10/19_14:33:44 ERROR: Both machines own our resources!
heartbeat: 2005/10/19_14:33:44 ERROR: Both machines own foreign resources!
heartbeat: 2005/10/19_14:33:55 ERROR: Both machines own our resources!
heartbeat: 2005/10/19_14:33:55 ERROR: Both machines own foreign resources!

When I ran this command on both the Servers

/etc/ha.d/resource.d/LVSSyncDaemonSwap master status

on both the servers it showed master is running.

I have not mentioned any Server as Primary/Active or Fallback Server.


I have added this line in haresources on both the servers


linux.sunupdelhi.net <http://linux.sunupdelhi.net/> ldirectord::
ldirectord.cf <http://ldirectord.cf/>   LVSSyncDaemonSwap::master IPaddr2::
192.168.1.59/24/eth0/192.168.1.255 <http://192.168.1.59/24/eth0/192.168.1.255>


in /etc/ha.d/ha.cf file



I have disabled

serial    /dev/ttyS0    # Linux



enabled



bcast    eth0        # Linux

node    linux.sunupdelhi.net <http://linux.sunupdelhi.net/>

node    cluster1.sunupdelhi.net <http://cluster1.sunupdelhi.net/>

ping 192.168.1.1 <http://192.168.1.1/> (Gateway)

udpport 694

warntime 10

deadtime 30

keepalive 2




I am using arp_ignore and apr_announce in /etc/sysctl.conf as FC3 supports
these parameters.

I am using lo:0 for VIP on both the Servers.

DEVICE=lo:0
IPADDR=192.168.1.59 <http://192.168.1.59/>
NETMASK=255.255.255.255 <http://255.255.255.255/>
NETWORK=192.168.1.0 <http://192.168.1.0/>
BROADCAST=192.168.1.255 <http://192.168.1.255/>
ONBOOT=yes
NAME=loopback

eth0 on First LVS server

DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.1.255 <http://192.168.1.255/>
IPADDR=192.168.1.42 <http://192.168.1.42/>
NETMASK=255.255.255.0 <http://255.255.255.0/>
NETWORK=192.168.1.0 <http://192.168.1.0/>
ONBOOT=yes
TYPE=Ethernet


eth0 on Second LVS server

DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.1.255 <http://192.168.1.255/>
IPADDR=192.168.1.68 <http://192.168.1.68/>
NETMASK=255.255.255.0 <http://255.255.255.0/>
NETWORK=192.168.1.0 <http://192.168.1.0/>
ONBOOT=yes
TYPE=Ethernet


a) 1st LVS server : RIP 192.168.1.42 <http://192.168.1.42/> on eth0
VIP 192.168.1.59 <http://192.168.1.59/> on lo:0
2) 2nd LVS Server: RIP 192.168.1.68 <http://192.168.1.68/> on eth0
VIP 192.168.1.59 <http://192.168.1.59/> on lo:0

the ldirectord .cf
# Global Directives
checktimeout=10
checkinterval=2
#fallback=127.0.0.1:80 <http://127.0.0.1/>
autoreload=yes
logfile="/var/log/ldirectord .log"
#logfile="local0"
quiescent=yes
#autofallback
# Virtual Server for HTTP
virtual=192.168.1.59:80 <http://192.168.1.59/>
fallback=127.0.0.1:80 <http://127.0.0.1/>
real=192.168.1.42:80 <http://192.168.1.42/> gate
real=192.168.1.68:80 <http://192.168.1.68/> gate
service=http
request="index.html"
receive="Test Page"
scheduler=wlc
persistent=600 ( persistent is enabled on both the Servers)
protocol=tcp
checktype=negotiate

in /etc/ha.d/authkeys I have changed this

2 sha1 sunupdelhi

Thanks & Regards

Ankush Grover

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