Re: Confused Newbie.

ankush grover <[email protected]>
Newsgroups gmane.linux.highavailability.ultramonkey
Message-ID <[email protected]>
On 10/19/05, David <[email protected]> wrote:
>
> Hello,
>
> I have just installed hearbeat as per example
> http://www.ultramonkey.org/3/topologies/lb-eg.html
>
> The only change I have made is a VIP of 192.168.1.112<http://192.168.1.112>instead of
> 192.168.6.240 <http://192.168.6.240> because my private network that I am
> testing on is 192.168.1.0 <http://192.168.1.0>
>
> The config I have used is
>
> # Global Directives
> checktimeout=10
> checkinterval=2
> autoreload=no
> logfile="/var/log/ldirectord.log"
> logfile="local0"
> quiescent=yes
> # Virtual Server for HTTP
> virtual=192.168.1.112:80 <http://192.168.1.112:80>
> fallback=127.0.0.1:80 <http://127.0.0.1:80>
> real=192.168.7.4:80 <http://192.168.7.4:80> masq
> service=http
> scheduler=rr
> #persistent=600
> protocol=tcp
> checktype=negotiate
>
>
> the syslog messages when I start are
>
> Oct 19 10:52:31 temp ldirectord[1148]: Starting Linux Director
> v1.77.2.11 as daemon
> Oct 19 10:52:31 temp ldirectord[1150]: Added virtual server:
> 192.168.1.112:80 <http://192.168.1.112:80>
> Oct 19 10:52:31 temp ldirectord: Starting ldirectord succeeded
> Oct 19 10:52:31 temp ldirectord[1150]: Quiescent real server:
> 192.168.7.4:80 <http://192.168.7.4:80> mapped from 192.168.7.4:80<http://192.168.7.4:80>( x
> 192.168.1.112:80 <http://192.168.1.112:80>) (Weight
> set to 0)
>
> ipvsadm -L -n produces
>
> IP Virtual Server version 1.0.8 (size=65536)
> Prot LocalAddress:Port Scheduler Flags
> -> RemoteAddress:Port Forward Weight ActiveConn InActConn
> TCP 192.168.1.112:80 <http://192.168.1.112:80> rr
> -> 192.168.7.4:80 <http://192.168.7.4:80> Masq 0 0 0
>
>
> But when I point my browser at 192.168.1.112 <http://192.168.1.112> I get
> a "failed to connect"
> message and when I do a port scan, port 80 is not listed as open.
>
> Can someone tell me what I have missed or am doing wrong please?
>
>
> I'm using CentOS release 3.4 vmlinux-2.4.21-27.0.2.EL
>
> and have loaded the following rpms.
>
> heartbeat-1.2.3.cvs.20050404-1.rh.el.um.1.i386.rpm \
> heartbeat-ldirectord-1.2.3.cvs.20050404-1.rh.el.um.1.i386.rpm \
> heartbeat-pils-1.2.3.cvs.20050404-1.rh.el.um.1.i386.rpm \
> heartbeat-stonith-1.2.3.cvs.20050404-1.rh.el.um.1.i386.rpm \
> ipvsadm-1.21-1.rh.el.1.um.1.i386.rpm \
> libnet-1.1.2.1-1.rh.el.um.1.i386.rpm \
> perl-Authen-SASL-2.08-1.rh.el.um.1.noarch.rpm \
> perl-Convert-ASN1-0.18-1.rh.el.um.1.noarch.rpm \
> perl-IO-Socket-SSL-0.96-1.rh.el.um.1.noarch.rpm \
> perl-Mail-IMAPClient-2.2.9-1.rh.el.um.1.noarch.rpm \
> perl-Net-SSLeay-1.25-1.rh.el.um.1.i386.rpm \
> perl-Parse-RecDescent-1.94-1.rh.el.um.1.noarch.rpm \
> perl-XML-NamespaceSupport-1.08-1.rh.el.um.1.noarch.rpm \
> perl-XML-SAX-0.12-1.rh.el.um.1.noarch.rpm \
> perl-ldap-0.3202-1.rh.el.um.1.noarch.rpm
>
> Thanks.
>
> -David.
>
>
> hey,



Is the apache on your LVS & Real server running.If not start the apache on
both the servers.

This how you can access the Application running on Real Server from any
client.

Application running on Real Server named/testing path for testing
/var/www/html/testing

in your httpd.conf (on Real Server)

Listen should be set either to 192.168.7.4:80 <http://192.168.7.4:80> or
0.0.0.0:80 <http://0.0.0.0:80> or 192.168.1.112:80
<http://192.168.1.112:80>(Please test this out ,I am using
0.0.0.0:80 <http://0.0.0.0:80> in my httpd.conf)

On the client you can put this url to access the applicaiton

http://192.168.1.112/testing

Regards

Ankush Grover
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.