LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] Dual homed LVS-DR

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [lvs-users] Dual homed LVS-DR
From: "Chad Morland" <cmorland@xxxxxxxxx>
Date: Wed, 26 Mar 2008 07:46:47 -0400
I am trying to get LVS-DR working in a dual home setup.

Everything seems to be working fine for VIP1 but requests are timing out on
VIP2. I can see the requests being distributed to the real server by LVS but
the response never reaches the user as if arp tables was not configured
correctly. Any ideas?

VIP1 = 10.10.1.180
VIP2 = 10.10.2.38 (Not enabled in DNS yet)

On the director:
TCP  10.10.1.180:80 rr
  -> 10.10.1.210:80               Route   1      18         636
  -> 10.10.1.203:80               Route   1      19         637
TCP  10.10.2.38:80 rr
  -> 10.10.2.36:80                Route   1      0          5
  -> 10.10.2.37:80                Route   1      0          6

On the realserver:
#/sbin/arptables -L -v -n
Chain IN (policy ACCEPT 19M packets, 529M bytes)
 pkts bytes target     in     out     source-ip
destination-ip       source-hw          destination-hw     hlen   op
hrd        pro
34655  970K DROP       *      *       0.0.0.0/0            10.10.1.180
00/00              00/00              any    0000/0000  0000/0000  0000/0000

    0     0 DROP       *      *       0.0.0.0/0            10.10.2.38
00/00              00/00              any    0000/0000  0000/0000  0000/0000


Chain OUT (policy ACCEPT 930K packets, 26M bytes)
 pkts bytes target     in     out     source-ip
destination-ip       source-hw          destination-hw     hlen   op
hrd        pro
 8982  251K mangle     *      eth0    10.10.1.180          0.0.0.0/0
00/00              00/00              any    0000/0000  0000/0000  0000/0000
--mangle-ip-s 10.10.1.210
    0     0 mangle     *      eth1    10.10.2.38           0.0.0.0/0
00/00              00/00              any    0000/0000  0000/0000  0000/0000
--mangle-ip-s 10.10.2.36

# ip addr sh
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
    inet 10.10.1.180/32 brd 10.10.1.180 scope global lo:0
    inet 10.10.2.38/32 brd 10.10.2.38 scope global lo:1
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:13:72:61:2e:bc brd ff:ff:ff:ff:ff:ff
    inet 10.10.1.210/24 brd 10.10.1.255 scope global eth0
    inet6 fe80::213:72ff:fe61:2ebc/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:13:72:61:2e:bd brd ff:ff:ff:ff:ff:ff
    inet 10.10.2.36/24 brd 10.10.2.255 scope global eth1
    inet6 fe80::213:72ff:fe61:2ebd/64 scope link
       valid_lft forever preferred_lft forever

# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
10.10.2.0       0.0.0.0         255.255.255.0   U         0 0          0
eth1
10.10.1.0       0.0.0.0         255.255.255.0   U         0 0          0
eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0
eth1
0.0.0.0         10.10.1.1       0.0.0.0         UG        0 0          0
eth0

-CM

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