[Linux-cluster] lvs, lvs router as real server

jimmy.nimo at pranical.com jimmy.nimo at pranical.com
Thu Nov 8 15:58:28 UTC 2007


hello, thanks for all the help but know I have another problem

I want to put the director Lvs Router as one of the Real server, I configure the
Piranha to take the ip of the director as one of the real server and he do that
pretty well, here is a model of my cluster:

To the Intranet
  |
  |
  |
Eth0 172.16.247.130
Eth0:1 172.16.247.150
LVS Router
Eth1: 10.11.12.9
Eth1:1 10.11.12.10
   (To the Real servers)
  |                 |
  |                 |
  |                 |
Node 2              Node 3
Eth0: 10.11.12.11   Eth0: 10.11.12.12


here is my lvs.cf

serial_no = 164
primary = 172.16.247.130
primary_private = 10.11.12.9
service = lvs
backup_active = 0
backup = 172.16.247.131
backup_private = 10.11.12.11
heartbeat = 1
heartbeat_port = 539
keepalive = 3
deadtime = 10
network = nat
nat_router = 10.11.12.10 eth1:1
nat_nmask = 255.255.255.0
debug_level = NONE
monitor_links = 0
virtual http {
     active = 1
     address = 172.16.247.150 eth0:1
     vip_nmask = 255.255.255.0
     port = 80
     send = "GET /file2.html HTTP/1.0\r\n\r\n"
     expect = "1"
     use_regex = 1
     load_monitor = none
     scheduler = rr
     protocol = tcp
     timeout = 5
     reentry = 5
     quiesce_server = 0
     server dos {
         address = 10.11.12.11
         active = 1
         weight = 1
     }
     server tres {
         address = 10.11.12.12
         active = 1
         weight = 1
     }
     server uno {
         address = 10.11.12.9
         active = 1
         weight = 1
     }

}

and here is my ipvsadm, he put the Lvs router as a real server in the category
of  "local".

[root at node1 ~]# ipvsadm -Ln
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  172.16.247.150:80 rr
  -> 10.11.12.9:80                Local   1      0          1
  -> 10.11.12.12:80               Masq    1      0          1
  -> 10.11.12.11:80               Masq    1      0          1

I have the Lvs working in round robin and he give the pages ok,  but when is the
turn of the 10.11.12.9 (the Lvs router) it crask with "Firefox can't establish a
connection to the server at 172.16.247.150." any hints?.

here is my route of the lvs router just in case is need it

[root at node1 ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.11.12.0      0.0.0.0         255.255.255.0   U     0      0        0 eth1
172.16.247.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.11.12.10     0.0.0.0         UG    0      0        0 eth1

Thanks again for the help






-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 1340 bytes
Desc: Clave PGP p?blica
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20071108/61701960/attachment.bin>


More information about the Linux-cluster mailing list