LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: configuration problems

To: "lvs-users@xxxxxxxxxxxxxxxxxxxxxx" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: configuration problems
From: Stefan Knollmueller <stefan.knollmueller@xxxxxxxxxxxxxxx>
Date: Tue, 20 Nov 2001 15:01:39 +0100 (CET)
output of ./configure lvs.conf:

warning: ./configure has not been tested with kernel version 2.4.13-xfs
Notice: you haven't set the variable $router_forwards
in the user configurable section.
When you run the rc.lvs script on a real-server
(after running it on the director first),
the output will tell you whether to set $router_forwards to Y|N.
More information is available with perldoc in the configure documentation.




#######################################################################
output of ./rc.lvs start on director:

ooking for standard utilities
$ECHO=/bin/echo
$PING=/bin/ping -U -c 1
testing ping
$FPING=/usr/sbin/fping
using /usr/sbin/fping for ping
$IFCONFIG=/sbin/ifconfig
$NETSTAT=/bin/netstat
$ROUTE=/sbin/route
$AWK=/bin/awk
$AWK=/usr/bin/awk
$GREP=/bin/grep
$GREP=/usr/bin/grep
$HOSTNAME_CMD=/bin/hostname
$UNAME_CMD=/bin/uname
$CAT=/bin/cat
$CUT=/usr/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
$TR=/usr/bin/tr
$EXPR=/usr/bin/expr
$CHMOD=/bin/chmod
$MV=/bin/mv
$RM=/bin/rm
$MKDIR=/bin/mkdir
$SSH=/usr/bin/ssh
Notice: optional executable ntpd not found
ntp is available from http://www.ntp.org
ntp will keep your servers and director synchronised to within 3msec.
Notice: optional executable ip not found
ip is a part of iproute2
at ftp://ftp.inr.ac.ru/ip_routing
future versions of config will require ip
rc.lvs version 0.9.2 Aug 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 terra

find_System_map
System.map
$SYSTEM_MAP=/usr/src/linux/System.map

Notice: kernel version dependant executable iptables not found
$LSMOD=/sbin/lsmod
$RMMOD=/sbin/rmmod
$INSMOD=/sbin/insmod
number nics on director 1
LVS director

find_kernel_function_name_2_4
find_kernel_name_2_4: parameter ip_vs
check_function_in_kernel
function ip_vs_init not in kernel
find_module_name_2_4
find_module_name_2_4: parameter ip_vs
module name ip_vs is ip_vs
attempting to load module: ip_vs
module ip_vs already loaded
searching for ipchains
ipchains not loaded, good
loading ip_tables module
find_kernel_function_name_2_4
find_kernel_name_2_4: parameter ip_tables
check_function_in_kernel
function ipt_tables not in kernel
find_module_name_2_4
find_module_name_2_4: parameter ip_tables
module name ip_tables is ip_tables
attempting to load module: ip_tables
module ip_tables already loaded
setting default policy to ACCEPT for LVS devices
clearing iptables/ipchain rules
showing iptables nat rules
showing iptables 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

director is not gw for realservers: leave icmp redirects on.
setting icmp redirects (1 on, 0 off)
/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

device eth0:0 has VIP 192.168.2.50
new VIP device == old VIP device, don't reinstall
device eth0:0 has VIP 192.168.2.50 and is UP
removing 192.168.2.50 from eth0:0

adding ethernet device and routing for VIP 192.168.2.50
listing ifconfig info for VIP 192.168.2.50
eth0:0    Protokoll:Ethernet  Hardware Adresse 00:02:B3:5F:84:68
          inet Adresse:192.168.2.50  Bcast:192.168.2.50
Maske:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:9

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


clearing ipvsadm table
installing LVS services with ipvsadm
initialising persistence for 192.168.2.50 to N
persistence for 192.168.2.50 N
non-persistent service on 192.168.2.50:http
illegal real server address[:port] specified
checking realserver radius.int.tronicplanet.de reachable from director -
director starting in ON state
checking realserver 192.168.2.42 reachable from director - 192.168.2.42 is
alive
director starting in ON state

displaying ipvsadm settings
IP Virtual Server version 0.8.2 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port             Forward Weight ActiveConn InActConn
TCP  192.168.2.50:http rr
  -> 192.168.2.42:http              Route   1      0          0

checking for valid server_gw for vs-dr LVS.
director_vip_device=eth0:0, server_gw=192.168.2.1
default gw for the vs-dr servers is NOT on director, good
DIRECTOR_GW not set, good.
DIRECTOR_GW=
installing default gw  for vs-dr
not installing a default gw for LVS_TYPE vs-dr
DIRECTOR_GW=
masquerading handled by LVS code.
not adding filter rules.

mon is running - restarting
ntpd not running, won't be restarted

The location of the output files rc.lvs, mon.cf and ntp.conf is the
default = ./
You can change this by editing the variables $rc_lvs_home, $rc_mon_home,
$rc_ntp_home

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

This script will use ssh to do this for you if you run it with
./configure lvs_xx.conf -i




###########################################################################
output of ./rc.lvs start on a real server:

looking for standard utilities
$ECHO=/bin/echo
$PING=/bin/ping -U -c 1
testing ping
$FPING=/usr/sbin/fping
using /usr/sbin/fping for ping
$IFCONFIG=/sbin/ifconfig
$NETSTAT=/bin/netstat
$ROUTE=/sbin/route
$AWK=/bin/awk
$AWK=/usr/bin/awk
$GREP=/bin/grep
$GREP=/usr/bin/grep
$HOSTNAME_CMD=/bin/hostname
$UNAME_CMD=/bin/uname
$CAT=/bin/cat
$CUT=/usr/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
$TR=/usr/bin/tr
$EXPR=/usr/bin/expr
$CHMOD=/bin/chmod
$MV=/bin/mv
$RM=/bin/rm
$MKDIR=/bin/mkdir
$SSH=/usr/bin/ssh
Notice: optional executable ntpd not found
ntp is available from http://www.ntp.org
ntp will keep your servers and director synchronised to within 3msec.
Notice: optional executable ip not found
ip is a part of iproute2
at ftp://ftp.inr.ac.ru/ip_routing
future versions of config will require ip
rc.lvs version 0.9.2 Aug 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 radius

find_System_map
System.map
$SYSTEM_MAP=/usr/src/linux/System.map

Notice: kernel version dependant executable iptables not found
$LSMOD=/sbin/lsmod
$RMMOD=/sbin/rmmod
$INSMOD=/sbin/insmod
number nics on director 1
LVS realserver type vs-dr
installing default gw 192.168.2.1 for vs-dr
deleting current default gw 192.168.2.1
setting default gw to 192.168.2.1
showing routing table

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
92.168.2.0     0.0.0.0         255.255.255.0   U        40 0          0
eth0
0.0.0.0         192.168.2.1     0.0.0.0         UG       40 0          0
eth0

checking if DEFAULT_GW 192.168.2.1 is reachable - 192.168.2.1 is alive
good
set_realserver_ip_forwarding to OFF (1 on, 0 off).
proc/sys/net/ipv4/ip_forward 0

searching for ipchains
ipchains not loaded, good
loading ip_tables module
find_kernel_function_name_2_4
find_kernel_name_2_4: parameter ip_tables
check_function_in_kernel
function ipt_tables not in kernel
find_module_name_2_4
find_module_name_2_4: parameter ip_tables
module name ip_tables is ip_tables
attempting to load module: ip_tables
function ip_tables not in kernel, attempt to load module
setting default policy to ACCEPT for LVS devices
clearing iptables/ipchain rules
showing iptables nat rules
showing iptables rules
correct VIP entry in /etc/iproute2/rt_tables: 200 VIP
correct RIP entry in /etc/iproute2/rt_tables: 201 RIP
ip rules (RIP and VIP tables should be empty)
route table name<->id translation table:
200 VIP
201 RIP

clearing priority routing table
deleting table VIP
ip route table VIP already empty
routing table VIP should be empty:
deleting table RIP
ip route table RIP already empty
routing table RIP should be empty:
192.168.2.50 not found on any network devices, good


looking for DIP 192.168.2.46
192.168.2.46 is alive
found, good
not local, good

looking for VIP on director from realserver

looking for VIP on director from realserver
director is accepting packets on VIP 192.168.2.50, device eth0:0
No VIP on real-server, VIP will be on director.

pinging VIP 192.168.2.50 from RIP
server gw not on director
OK is vs-dr
VIP is in the same network as the RIP
VIP 192.168.2.50 should be pingable
192.168.2.50 is alive
good.
LVS_TYPE = vs-dr, VIP device installed
lo is not a tunl device, OK
lo:0 is local, up'ing lo.
install_realserver_vip: configuring Linux 2.4.4
ifconfig output
lo:0      Link encap:Local Loopback
          inet addr:192.168.2.50  Mask:255.255.255.255
          UP LOOPBACK RUNNING  MTU:16436  Metric:1

installing route for VIP 192.168.2.50 on device lo:0
listing routing info for VIP 192.168.2.50
192.168.2.50    0.0.0.0         255.255.255.255 UH       40 0          0
lo
hiding interface lo:0, will not arp

iproute2 not available: not installing priority routing
ntpd not running, won't be restarted
not adding filter rules.
The location of the output files rc.lvs, mon.cf and ntp.conf is the
default = ./
You can change this by editing the variables $rc_lvs_home, $rc_mon_home,
$rc_ntp_home


Errors: 3
Some of these errors are from tests that failed.
If you're experimenting, it's possible that the LVS will work.
If you're doing production, you can't assume that the LVS will work.

Your LVS may not be setup properly.




#################
that is all i got...
-- 



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