Re: ipvsadm :- Getting real server weight as “0” : Cannot access the real server home page

"Ian Walker" <[email protected]> Thu, 17 Aug 2006 13:52:13 +0200
Newsgroups gmane.linux.highavailability.ultramonkey
Message-ID <[email protected]>
Try changing your service=http to service=none.  I had the same when I had
service=ftp, and changed it to none, and it started working.


Ian

On 14/08/06, John Joseph <[email protected]> wrote:
>
>
> Hi
>    Thanks  Andersson , for clearing the doubts
> I had started trying out the configurations from the
> url
> http://www.ultramonkey.org/3/topologies/ha-lb-eg.html
>    Since I am just starting , I thought  I will try to
> cluster only port 80
>    Commands "ip addr sh" shows results simillar to the
> documents ,
>
> ldirectord status shows as
> # /etc/ha.d/resource.d/ldirectord ldirectord.cf status
> ldirectord for /etc/ha.d/ldirectord.cf is running with
> pid: 2445
>
>                       But my   "ipvsadm -L -n "
> results  shows some problem . It  gives the weight as
> 0 for the real servers
>
>      [root@Director-ONE ha.d]# ipvsadm -L -n
> IP Virtual Server version 1.2.0 (size=4096)
> Prot LocalAddress:Port Scheduler Flags
>   -> RemoteAddress:Port           Forward Weight
> ActiveConn InActConn
> TCP  192.168.6.240:80 rr
>   -> 192.168.7.5:80               Masq    0      0
>      0
>   -> 192.168.7.4:80               Masq    0      0
>      0
>   -> 127.0.0.1:80                 Local   1      0
>      0
>
>       Also , my http request is not redirected to the
> real server , I get the "Director-Machine "  web pages
> only
>         Please let me know , what all other parameters
> I have to check . I am using CentOS ( 2.6.9-34) .
> Guidance requested . The configurations details are
> given below
>                          Thanks
>                               Joseph John
>
>
> I have two Linux -Directors  and Two Real Servers
> *****************************************
> Linux Director – One  has IP
>         Eth0  => 192.168.6.2
>         Eth1  => 192.168.7.2
> Linux Director – TWO has IP
>         Eth0  => 192.168.6.3
>         Eth1  =>  192.168.7.3
> *******
> I have iptables set on my Linux Director and the
> listing shows
>
> [root@Director-ONE ha.d]# iptables -L -n -t nat
> Chain PREROUTING (policy ACCEPT)
> target     prot opt source               destination
>
> Chain POSTROUTING (policy ACCEPT)
> target     prot opt source               destination
> MASQUERADE  all  --  192.168.7.0/24       0.0.0.0/0
>
> Chain OUTPUT (policy ACCEPT)
> target     prot opt source               destination
>
> *****************************************
> And my Real Servers  have
>
> Real Server One
>              Eth0 => 192.168.7.4
> Real Server Two
>              Eth1 => 192.168.7.5
> *********************************
> in My Linux Directors I have the following
> configurations
>
>    cat /etc/ha.d/ha.cf
> debugfile /var/log/ha-debug
> logfile /var/log/ha-log
> logfacility     local0
> mcast eth0 225.0.0.1 694 1 0
> mcast eth1 225.0.0.1 694 1 0
> auto_failback off
> node    Real-One.cluster
> node    Real-Two.cluster
> node    Director-ONE.cluster
> node    Director-TWO.cluster
> respawn hacluster /usr/lib/heartbeat/ipfail
> apiauth ipfail gid=haclient uid=hacluster
>
> **********
> cat /etc/ha.d/haresources
>
> Real-One.cluster \
>         LVSSyncDaemonSwap::master \
>         ldirectord::ldirectord.cf \
>         IPaddr2::192.168.6.240/24/eth0 \
>         IPaddr2::192.168.7.240/24/eth1
>
> **********
> cat /etc/ha.d/ldirectord.cf
>
> checktimeout=10
> checkinterval=2
> autoreload=no
> logfile="/var/log/ldirectord.log"
> logfile="local0"
> quiescent=yes
>
> virtual=192.168.6.240:80
>         fallback=127.0.0.1:80
>         real=192.168.7.4:80 masq
>         real=192.168.7.5:80 masq
>         service=http
>         request="index.html"
>         receive="Test Page"
>         scheduler=rr
>         #persistent=600
>         protocol=tcp
>         checktype=negotiate
>
>
>
>
> ___________________________________________________________
> Try the all-new Yahoo! Mail. "The New Version is radically easier to use"
> – The Wall Street Journal
> http://uk.docs.yahoo.com/nowyoucan.html
>
>
> --
> Ultra Monkey - http://www.ultramonkey.org/
> To UNSUBSCRIBE, email to [email protected], with a body:
> unsubscribe ultramonkey-users [email protected]
> where "[email protected]" is YOUR email address.
>
>