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.rich...@kirzen.hu>

> 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@LinuxVirtualServer.org
> Send requests to lvs-users-requ...@linuxvirtualserver.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>



-- 
Att,


--==========================--
Raul da Silva Leite
sp4wn.r...@gmail.com
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@LinuxVirtualServer.org
Send requests to lvs-users-requ...@linuxvirtualserver.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

Reply via email to