LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] more realserver ports question

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] more realserver ports question
From: "Raul da Silva {Sp4wn}" <sp4wn.root@xxxxxxxxx>
Date: Thu, 26 Nov 2009 13:05:23 -0300
I think the (lvs+piranha) all ports that you set up in lvs.cf on virtual
server needs to be the same port on real server.
This is the way that piranha+lvs works at RHEL 5, I don't know if new
releases solve this but until RHEL 5.2 this is the only way when you use
"direct routing",



....




2009/11/26 Kun Richárd <kun.richard@xxxxxxxxx>

> Hi,
>
> I tried to set up two virtualservers, with two realservers each, all
> service
> runs locally:
> virtual = 10.0.2.5:80
>        real = 10.0.2.10:80 gate 10
>        real = 10.0.2.11:80 gate 10
> and
> virtual = 10.0.2.6:80
>        real = 10.0.2.10:8080 gate 10
>        real = 10.0.2.11:8080 gate 10
>
> If I started the heartbeat, the ipvsadm list seem's like this:
> TCP  10.0.2.6:80 rr
>  -> 10.0.2.10:80                 Local   0      0          0
>  -> 10.0.2.11:80                 Route   0      0          0
> TCP  10.0.2.5:80 rr
>  -> 10.0.2.10:80                 Local   10     0          0
>  -> 10.0.2.11:80                 Route   10     0          0
>
> The ldirectord.log shows only this:
> [Thu Nov 26 12:03:47 2009|ldirectord.cf|9006] system(/sbin/ipvsadm -a -t
> 10.0.2.6:80 -r 10.0.2.10:8080 -g -w 10) failed:
>
> I think ldirectord can't setting up the realserver with the port 8080, but
> why? I tried different ports instead of 8080, but the result is the same.
> I need to use iptables to fowarding  packets, or other any idea?
>
>
> Thanks:
>
> --
> Üdv,
>  Ricsi
>
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>



-- 
Att,


--==========================--
Raul da Silva Leite
sp4wn.root@xxxxxxxxx
Linux Consultant / Red hat Brasil
RHCE / LPI-II / ITIL / RHCI / RHCA / RHCSS / RHCDS
+55 11 8504-3200
--==========================--
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

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