LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: configuring LVS-DR on FC3

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: configuring LVS-DR on FC3
From: ankush grover <ankushgrover1711@xxxxxxxxx>
Date: Thu, 22 Sep 2005 12:30:09 +0530
On 9/22/05, Horms <horms@xxxxxxxxxxxx> wrote:
>
> On Thu, Sep 22, 2005 at 11:27:42AM +0530, ankush grover wrote:
> > hey,
> >
> > I did put these entries in /etc/sysctl.conf of real servers,but still I
> am
> > not able to access the application running on apache on real servers.
> >
> >
> > Entries in /etc/sysctl.conf
> > net.ipv4.conf.eth0.arp_ignore = 1
> > net.ipv4.conf.eth0.arp_announce = 2
> > net.ipv4.conf.all.arp_ignore = 1
> > net.ipv4.conf.all.arp_announce = 2
>
> You also need to run sysctl -p, or reboot the box,
> to effect the change.
>
> You can check the status by echoing the relevant proc values
>
> e.g.
>
> echo /proc/sys/net/ipv4/conf/eth0.arp_ignore
>
> > My Scenario is such
> >
> > LVS 192.168.1.42 <http://192.168.1.42> <http://192.168.1.42>
> > Real Server 1 192.168.1.67 <http://192.168.1.67> <http://192.168.1.67>
> > Real Server 2 192.168.1.68 <http://192.168.1.68> <http://192.168.1.68>
> >
> > Apache application is running on both the real servers and can be
> accessed
> > by giving the http://ipaddress/his.
> >
> > the /etc/ha.d/ldirectord.cf file is as such
> >
> > Global Directives
> > checktimeout=10
> > checkinterval=2
> > #fallback=127.0.0.1:80 <http://127.0.0.1:80> <http://127.0.0.1:80>
> > autoreload=no
> > #logfile="/var/log/ldirectord.log"
> > logfile="local0"
> > quiescent=yes
> >
> > # Virtual Server for HTTP
> > virtual=192.168.1.42:80 <http://192.168.1.42:80> <http://192.168.1.42:80
> >
> > fallback=127.0.0.1:80 <http://127.0.0.1:80> <http://127.0.0.1:80>
> > real=192.168.1.67:80 <http://192.168.1.67:80> <http://192.168.1.67:80>
> gate
> > real=192.168.1.68:80 <http://192.168.1.68:80> <http://192.168.1.68:80>
> gate
> > service=http
> > request="index.html"
> > receive="Test Page"
> > scheduler=rr
> > #persistent=600
> > protocol=tcp
> > checktype=negotiate
> >
> >


Do I have put <http://192.168.1.68:80> in
ldirectord.cf<http://ldirectord.cf>instead of
192.168.1.68:80 <http://192.168.1.68:80>.



>
> Try running it with the -d (debug) flag to see what it thinks
> is going on.
>
> ldirectord -d ldirectord.cf <http://ldirectord.cf> start


There was some problem in the network.Now the real servers are getting added
.

But still i am not able to access the application running on Real
Servers.DoI have to give an entry for the service running on apache(on
real servers)
in httpd.conf file of LVS servers.

When i tried to access the <http://ipaddressoflvs/his> from a machine within
the Lan it gave me error.Do I have to configure something on the LVS to make
it work like iptables entries or any other entry.

I have not configured Iptables on any of the machine and the default gateway
on real servers is not LVS server.

Moreover I have not configured any alias loopback interface or any alias
ethernet interface on real servers.


Thanks for your earlier reply.

Thanks & Regards

Ankush Grover

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