LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-28-2011, 11:43 AM   #1
Cerephim
Member
 
Registered: Mar 2005
Location: Dayton, Ohio
Distribution: CentOS
Posts: 49

Rep: Reputation: 0
Piranha: can't ping realserver when pulse daemon started.


Hi Folks,

RedHat rhel5.6

I'm trying desperately to get ipvs load balancing up and running using the RedHat Piranha utility.
I'll post my config files later in the message.
In order to simplify things, I've only got one LVS director running (no backup director), and I've only got one realserver running.

I can ping the realserver static ip from the LVS director when the pulse daemon is NOT started. About one minute after I start the pulse daemon, I can no longer ping the realserver static ip.

I can ping the realserver static ip from any other box on the subnet.

The LVS app requires that the LVS director be able to ping (or CONNECT) the realserver as a sanity check to make sure the realserver(s) is/are still alive.

/var/log/messages entries:
Jul 28 10:49:21 emclb98 pulse[11281]: STARTING PULSE AS MASTER
Jul 28 10:50:51 emclb98 pulse[11281]: partner dead: activating lvs
Jul 28 10:50:51 emclb98 lvs[11293]: starting virtual service Test_Web_Server active: 80
Jul 28 10:50:51 emclb98 nanny[11298]: starting LVS client monitor for 90.21.26.128:80 -> 90.21.26.32:80
Jul 28 10:50:51 emclb98 lvs[11293]: create_monitor for Test_Web_Server/emcds032 running as pid 11298
Jul 28 10:50:51 emclb98 avahi-daemon[3072]: Registering new address record for 90.21.26.128 on eth0.
Jul 28 10:50:51 emclb98 avahi-daemon[3072]: Withdrawing address record for 90.21.26.128 on eth0.
Jul 28 10:50:51 emclb98 avahi-daemon[3072]: Registering new address record for 90.21.26.128 on eth0.
Jul 28 10:50:51 emclb98 nanny[11298]: [ active ] making 90.21.26.32:80 available
Jul 28 10:50:56 emclb98 pulse[11300]: gratuitous lvs arps finished
Jul 28 10:51:03 emclb98 nanny[11298]: CONNECT to 90.21.26.32:80 timed out
Jul 28 10:51:03 emclb98 nanny[11298]: [inactive] shutting down 90.21.26.32:80 due to connection failure
Jul 28 10:51:15 emclb98 nanny[11298]: CONNECT to 90.21.26.32:80 timed out


The LVS director is host emclb98 (90.21.26.98)
The realserver is host emcds032 (90.21.26.32)
The Virtual (floating) ip is 90.21.26.128

Here is my lvs.cf:
[root@emclb98 ~]# cat /etc/sysconfig/ha/lvs.cf
serial_no = 74
primary = 90.21.26.98
service = lvs
backup_active = 0
backup = 90.21.26.99
heartbeat = 1
heartbeat_port = 539
keepalive = 30
deadtime = 90
network = direct
debug_level = NONE
monitor_links = 1
syncdaemon = 1
virtual Test_Web_Server {
active = 1
address = 90.21.26.128 eth0:1
vip_nmask = 255.255.255.0
port = 80
send = "GET / HTTP/1.0\r\n\r\n"
expect = "HTTP"
use_regex = 0
load_monitor = none
scheduler = wrr
protocol = tcp
timeout = 6
reentry = 15
quiesce_server = 0
server emcds032 {
address = 90.21.26.32
active = 1
weight = 100
}
}

I'm using the arptables_jf solution described in the RedHat LVS installation guide:

ifconfig eth0:1 90.21.26.128 netmask 255.255.255.0 broadcast 90.21.26.255 up
arptables -A IN -d 90.21.26.128 -j DROP
arptables -A OUT -d 90.21.26.128 -j mangle --mangle-ip-s 90.21.26.32
service arptables_jf save
chkconfig arptables_jf on

Does anyone see anything glaring?

Thanks,
Cerephim
 
Old 07-29-2011, 01:11 PM   #2
Cerephim
Member
 
Registered: Mar 2005
Location: Dayton, Ohio
Distribution: CentOS
Posts: 49

Original Poster
Rep: Reputation: 0
I figured it out...
My netmask wasn't right on my Virtual (floating) IP.
Once I got that sorted out, things started working.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pulse counter or frequency of incoming pulse train jayhorizon Programming 15 10-29-2010 04:29 AM
HAL daemon cannot be started anymore zerberus Fedora 15 03-16-2007 04:58 PM
can't get a daemon to start - says it's already started Avatar Linux - Software 7 12-19-2006 12:02 PM
Checking a daemon has started SteveGodfrey Linux - Software 1 06-01-2004 04:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration