LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] lvs-direct..stumped: arp or not to arp?

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] lvs-direct..stumped: arp or not to arp?
From: "William Ottley" <williamottley@xxxxxxxxx>
Date: Fri, 28 Dec 2007 13:04:31 -0500
Hello all,
I've read the how-tos, and i'm still confused. I have a really simple
setup, yet, i can't get my lvs up and running. I'll paste my lvs.cf
below, and i'm hoping someone can let me know where I goofed up?

I have the director (LVS) inside a firewall. So I have the firewall
sending all port 80 activity to the VIP: 192.168.2.100, and nothing
works.
I know there is an ARP issue, when I use LVS-Direct and the Real
Servers are inside the network, BUT, my understanding is that it
doesn't apply to me, because the client is outside, and is being
connected directly to the VIP (192.168.2.100), is this correct?

I used PIRANHA to set it up for me.
I can ping .3.10 and .4.10 without an issue (when i'm on the LVS machine)
I can confirm that the web servers are up and running, and when I do a
"service pulse restart":

Dec 28 09:04:19 lb1 pulse[2739]: STARTING PULSE AS MASTER
Dec 28 09:04:37 lb1 pulse[2739]: partner dead: activating lvs
Dec 28 09:04:37 lb1 lvs[2754]: starting virtual service offsites active: 80
Dec 28 09:04:37 lb1 nanny[2759]: starting LVS client monitor for
192.168.2.100:80
Dec 28 09:04:37 lb1 lvs[2754]: create_monitor for offsites/offsitea
running as pid 2759
Dec 28 09:04:37 lb1 nanny[2760]: starting LVS client monitor for
192.168.2.100:80
Dec 28 09:04:37 lb1 lvs[2754]: create_monitor for offsites/offsitea
running as pid 2760
Dec 28 09:04:37 lb1 nanny[2759]: making 192.168.3.10:80 available
Dec 28 09:04:37 lb1 nanny[2760]: making 192.168.4.10:80 available
Dec 28 09:04:42 lb1 pulse[2756]: gratuitous lvs arps finished


and piranah gives me:

 root 2739 0.0 0.1 1864 348 ? Ss 09:04 0:00 pulse
root 2754 0.0 0.2 1856 604 ? Ss 09:04 0:00 /usr/sbin/lvsd --nofork -c
/etc/sysconfig/ha/lvs.cf
root 2759 0.0 0.2 1832 640 ? Ss 09:04 0:00 /usr/sbin/nanny -c -h
192.168.3.10 -p 80 -s GET / HTTP/1.0rnrn -a 15 -I /sbin/ipvsadm -t 6
-w 1 -V 192.168.2.100 -M g -U none --lvs
root 2760 0.0 0.2 1832 668 ? Ss 09:04 0:00 /usr/sbin/nanny -c -h
192.168.4.10 -p 80 -s GET / HTTP/1.0rnrn -a 15 -I /sbin/ipvsadm -t 6
-w 1 -V 192.168.2.100 -M g -U none --lvs

anyone can help me?
Thanks!
William

/etc/sysconfig/ha/lvs.cf:

serial_no = 96
primary = 192.168.2.10
service = lvs
backup_active = 0
backup = 0.0.0.0
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = direct
debug_level = NONE
virtual offsites {
     active = 1
     address = 192.168.2.100 eth0:1
     vip_nmask = 255.255.255.0
     port = 80
     send = "GET / HTTP/1.0rnrn"
     use_regex = 0
     load_monitor = none
     scheduler = lc
     protocol = tcp
     timeout = 6
     reentry = 15
     quiesce_server = 0
     server offsitea {
         address = 192.168.3.10
         active = 1
         weight = 1
     }
     server offsitea {
         address = 192.168.4.10
         active = 1
         weight = 1
     }
}

-- 
---------------
Morpheus: After this, there is no turning back. You take the blue pill
- the story ends, you wake up in your bed and believe whatever you
want to believe. You take the red pill - you stay in Wonderland and I
show you how deep the rabbit-hole goes.


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