LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Everything installed, but doesn't work

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>, Joseph Mack <mack.joseph@xxxxxxx>
Subject: Re: Everything installed, but doesn't work
From: Mike Warwick <mwarwick@xxxxxxxxx>
Date: Fri, 18 May 2001 23:30:10 -0400
Joseph,

Thanks for your reply.  I made the changes you suggested to lvs_dr.conf,
re-ran the configure script, bounced all of the servers, and ran the new
rc.lvs_dr scripts on each.  I'm still seeing the same problem of failure to
connect to the VIP using a browser.  I do see that ipvsadm reports incoming
connections in the "InActConn" column, but nothing ever makes it over to the
real servers.  Do you have any other ideas?  Below is the output of the
rc.lvs_dr script on my LinuxDirector if it helps at all.

-------------------------------------------------------------
[root@www1 configure-0.8]# ./rc.lvs_dr
looking for standard utilities
$ECHO=/bin/echo
$IPCHAINS=/sbin/ipchains
$FPING=/usr/sbin/fping
$PING=/bin/ping -c 1
$IFCONFIG=/sbin/ifconfig
$NETSTAT=/bin/netstat
$ROUTE=/sbin/route
$AWK=/bin/awk
$AWK=/usr/bin/awk
$NTPD=/usr/sbin/ntpd
$IP=/sbin/ip
$IPTABLES=/sbin/iptables
$GREP=/bin/grep
$HOSTNAME_CMD=/bin/hostname
$UNAME_CMD=/bin/uname
$CAT=/bin/cat
$CUT=/bin/cut
$TAIL=/usr/bin/tail
$XARGS=/usr/bin/xargs
$PS=/bin/ps
$KILL=/bin/kill
$WC=/usr/bin/wc
$TRACEROUTE=/usr/sbin/traceroute
$ARP=/sbin/arp
$ROUTE=/sbin/route
$LSMOD=/sbin/lsmod
$RMMOD=/sbin/rmmod
$INSMOD=/sbin/insmod
$TR=/usr/bin/tr
$EXPR=/usr/bin/expr
$CHMOD=/bin/chmod
using /usr/sbin/fping for fping
rc.lvs version 0.8 Apr 2001
(C) 2000-2001 Joseph Mack jmack@xxxxxxxx, distributed under GPL license
This file is part of the LVS project http://www.linuxvirtualserver.org
setting up www1


LVS director 

loading ip_vs module
ip_vs already loaded
searching for ipchains
ipchains not loaded, good
loading ip_tables module
ip_tables already loaded
clearing iptables/ipchain rules
set_director_ip_forwarding on vs-dr director (1 on, 0 off).
set ip_forward OFF for vs-dr director (1 on, 0 off).
proc/sys/net/ipv4/ip_forward 0

Not a 1 net VS-NAT.
Turning on icmp redirects (1 on, 0 off)
(incase were turned off in a previous installation).
/proc/sys/net/ipv4/conf/all/send_redirects 1
/proc/sys/net/ipv4/conf/default/send_redirects 1
/proc/sys/net/ipv4/conf/eth0/send_redirects 1
/proc/sys/net/ipv4/conf/eth1/send_redirects 1
/proc/sys/net/ipv4/conf/lo/send_redirects 1

device eth0:1 has VIP 209.116.71.36


adding ethernet device and routing for VIP 209.116.71.36
listing ifconfig info for VIP 209.116.71.36
eth0:1    Link encap:Ethernet  HWaddr 00:B0:D0:DE:60:8B
          inet addr:209.116.71.36  Bcast:209.116.71.255
Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 Base address:0xecc0

checking VIP 209.116.71.36 is reachable from self (director): 209.116.71.36
is a
live
listing routing info for VIP 209.116.71.36
209.116.71.36   0.0.0.0         255.255.255.255 UH       40 0          0
eth0

 
clearing ipvsadm table
installing LVS services with ipvsadm
initialising persistence for 209.116.71.36 to N
persistence for 209.116.71.36 N
non-persistent service on 209.116.71.36:http
checking realserver 209.116.71.38 reachable from director - 209.116.71.38 is
alive
director starting in ON state
checking realserver 209.116.71.39 reachable from director - 209.116.71.39 is
alive
director starting in ON state
 
displaying ipvsadm settings
IP Virtual Server version 0.2.7 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port             Forward Weight ActiveConn InActConn
TCP  209.116.71.36:http rr
  -> 209.116.71.39:http             Route   1      0          0
  -> 209.116.71.38:http             Route   1      0          0

masquerading handled by LVS code.
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
installing default gw
not installing a default gw for LVS_TYPE vs-dr
ntpd not running, won't be restarted

remember to run this rc.lvs script on the real-servers too.
-------------------------------------------------------------



on 5/18/01 9:46 AM, Joseph Mack at mack.joseph@xxxxxxx wrote:

> Mike Warwick wrote:
>> 
>> #----------lvs_dr.conf--------------------------------------------------
>> LVSCONF_FORMAT=1.0
>> LVS_TYPE=VS_DR
>> INITIAL_STATE=on
>> CLEAR_IPVS_TABLES=yes
>> VIP=eth0:1 209.116.71.36 255.255.255.240 209.116.71.47
> netmask is wrong, try
> 
> 209.116.71.36 255.255.255.255 209.117.71.36
> 
>> DIRECTOR_INSIDEIP=eth0 209.116.71.37 209.116.71.32 255.255.255.240
>> 209.116.71.47
> you have an extra entry here, try instead
> 209.116.71.37 255.255.255.240 209.116.71.47
> 
> 
>> SERVICE=t http rr 209.116.71.38:80 209.116.71.39:80
>> SERVER_NET_DEVICE=eth0
>> SERVER_VIP_DEVICE=lo:1
>> SERVER_GW=209.116.71.33
>> #----------end lvs_dr.conf-----------------------------------------------
> 
> Joe



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