LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: LVS-DR problem, getting me not enough sleep ;)

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: LVS-DR problem, getting me not enough sleep ;)
From: Sebastiaan Veldhuisen <seppo@xxxxxxxxxx>
Date: Tue, 30 Mar 2004 15:20:59 +0200
Thanks for quick answer Dennis,


I did have a loot at the arp problem and applied

      #to activate the hidden feature
      echo 1 > /proc/sys/net/ipv4/conf/all/hidden
      #to make lo:0 not arp, put lo here
      echo 1 > /proc/sys/net/ipv4/conf/lo/hidden


to /etc/sysconfig/sysctl and even did it on bash.

I did the arp connection test on the link you provided. When the Director is disconnected from the network iget this:
ping VIP: No reply
arp -a: director.srvtest.leidenuniv.nl (132.229.42.163) at <incomplete> on eth0

Director connected:
ping VIP: reply
arp -a: director.srvtest.leidenuniv.nl (132.229.42.163) at 00:50:56:40:00:6A [ether] on eth0

00:50:56:40:00:6A is the mac address of eth0 in the director


So i don't know what's wrong everything looks ok to me

greetings,

Sebastiaan Veldhuisen






Dennis Kruyt wrote:

Mmm,

Sounds to me that you have the arp problem.

Did you have a look at:
http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.arp_problem.html

I use the hidden patch to solve this, is the best solution I think.

Regards,

Met vriendelijke groet,

Dennis Kruyt,
Managed Services

ZXFactory BV


-----Original Message-----
From: Sebastiaan Veldhuisen [mailto:seppo@xxxxxxxxxx] Sent: dinsdag 30 maart 2004 14:46
To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: LVS-DR problem, getting me not enough sleep ;)


Hi,

I'm new to LVS, but after 2 days of studying and testing i know my way around. I have succesfully build a LVS-NAT setup, however the actual system needs to be LVS-DR. And with the DR I have some problems. To simplify it I test with one realserver. My problem: when i connect on 132.229.42.163(https) i get a "page not displayed" in my browser. When i

watch the state of lvs with ipvsadm i see a number of inactive connections. I have tried a lot (late nights :D) but i can't see my mistake in this setup. My setup is:

loadbalancer:~ # uname -a
Linux loadbalancer 2.4.21-138-smp #1 SMP Fri Oct 31 00:51:31 UTC 2003 i686 unknown (SLES 8)

loadbalancer:~ # ipvsadm -L -n | head -1
IP Virtual Server version 1.0.10 (size=4096)

loadbalancer:~ # ipvsadm -h | head -1
ipvsadm v1.21 2002/07/09 (compiled with getopt_long and IPVS v1.0.6)

o Using LVS-DR, gatewaying method.
o Load balancing port 443 (https) non- persistent (production will be persistent)
       o Network Setup:

                       ________
                      |                |
                      | client       |
                      |________|
                          | CIP
                          |
                          |
                          |
                       (router)
                          |
                          |
                          |          __________
                          |  DIP |                    |
                          +------+ director     |
                          |  VIP |__________|
                          |
                          |
                          |
        +-----------
| | RIP1, VIP ____________ | | |real-server1 |
  |____________|


       CIP  = 132.229.58.103
       DIP  = 132.229.42.162      (eth0)
       VIP  = 132.229.42.163    (eth0:0 on director, lo:0 on
realserver)
       RIP1 = 132.229.42.16   (eth0)



Configuration on the director side:

loadbalancer:~ # ipvsadm -L -n
IP Virtual Server version 1.0.10 (size=4096)
Prot LocalAddress:Port Scheduler Flags
 -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  132.229.42.163:443 wlc
 -> 132.229.42.161:443           Route   1      0          0


loadbalancer:~ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:50:56:40:00:6A
inet addr:132.229.42.162 Bcast:132.229.42.255 Mask:255.255.255.128
         inet6 addr: fe80::250:56ff:fe40:6a/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:25618 errors:0 dropped:0 overruns:0 frame:0
         TX packets:6830 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:100
         RX bytes:1828843 (1.7 Mb)  TX bytes:1233621 (1.1 Mb)
         Interrupt:9 Base address:0x10c0

eth0:0    Link encap:Ethernet  HWaddr 00:50:56:40:00:6A
inet addr:132.229.42.163 Bcast:132.229.42.163 Mask:255.255.255.255
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         Interrupt:9 Base address:0x10c0

lo        Link encap:Local Loopback
         inet addr:127.0.0.1  Mask:255.0.0.0
         inet6 addr: ::1/128 Scope:Host
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:40 errors:0 dropped:0 overruns:0 frame:0
         TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:3528 (3.4 Kb)  TX bytes:3528 (3.4 Kb)

loadbalancer:~ # netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface 132.229.42.163 0.0.0.0 255.255.255.255 UH 0 0 0 eth0 132.229.42.128 0.0.0.0 255.255.255.128 U 0 0 0 eth0 0.0.0.0 132.229.42.129 0.0.0.0 UG 0 0 0 eth0



Configuration on the real server side:

imp2:~ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:50:56:40:00:62
inet addr:132.229.42.161 Bcast:132.229.42.255 Mask:255.255.255.128
         inet6 addr: fe80::250:56ff:fe40:62/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:23985 errors:0 dropped:0 overruns:0 frame:0
         TX packets:8640 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:100
         RX bytes:1587988 (1.5 Mb)  TX bytes:991930 (968.6 Kb)
         Interrupt:9 Base address:0x10c0

lo        Link encap:Local Loopback
         inet addr:127.0.0.1  Mask:255.0.0.0
         inet6 addr: ::1/128 Scope:Host
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:22 errors:0 dropped:0 overruns:0 frame:0
         TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:1832 (1.7 Kb)  TX bytes:1832 (1.7 Kb)

lo:0      Link encap:Local Loopback
         inet addr:132.229.42.163  Mask:255.255.255.255
         UP LOOPBACK RUNNING  MTU:16436  Metric:1


imp2:~ # netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface 132.229.42.163 0.0.0.0 255.255.255.255 UH 0 0 0 lo 132.229.42.128 0.0.0.0 255.255.255.128 U 0 0 0 eth0 0.0.0.0 132.229.42.129 0.0.0.0 UG 0 0 0 eth0






_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users

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