Howdy
I am not too familiar with them old setup scripts, but I assume that your
Realservers are not responding to any
arp requests for 192.168.2.50. They shouldn't if you use the DR scheme. In
your drawing I can not see the
VIP assigned to the Realservers. If it is not your Realservers will not
process any packet with a destination address of
192.168.2.50 but discard it. If all of fhis sounds strange you better check
http://www.linuxvirtualserver.org/~julian/hidden.txt
and read up on the HOWTO concerning DR again.
If all is set what is the exact error. Is the Webserver responding with
some error message or are you getting a timeout.
If you have Virtualhosts defined in your Webserver config they should point
to the VIP address e.g.
NameVirtualHost 192.168.2.50
<VirtualHost 192.168.2.50>
DocumentRoot /usr/local/......
ServerName....
.....
</VirtualHost>
Best regards
Robert Gehr
"A ship in a harbour is safe, but that's not what ships are built for"
========================================
web2CAD AG
Emailfabrikstrs. 12
92224 Amberg / Germany
visit: http://www.web2cad.com
Stefan Knollmueller
<stefan.knollmueller@tronic An:
lvs-users@xxxxxxxxxxxxxxxxxxxxxx
planet.de> Kopie: (Blindkopie:
Robert Gehr/GENIUS/DE)
Thema: configuration
problems
20.11.2001 14:10
Bitte antworten an
lvs-users
hello,
i am trying to set up a LVS using one dirctor and two real servers.
the real servers are webservers but when trying to connect to the virtual
address no website gets delivered.
my setup:
# ________
# | |
# | client |
# |________|
# | CIP=eth0 192.168.2.x/24
# |
# | __________
# | | |
# |------| director |
# | |__________|
# | VIP=eth0:0 192.168.2.50/24
# this one is the address i want the realservers to respond to
# |
# | DIP=eth0 192.168.2.46/24
# this one is the address of the director
# |
# |
# -------------------
# | |
# | |
# ______________ ______________
# | | | |
# | realserver1 | | realserver2 |
# |______________| |______________|
# RIP1=eth0 RIP2=eth0
# 192.168.2.41 192.168.2.42
my lvs config:
#----------lvs_dr.conf----------------------------------------
LVSCONF_FORMAT=1.1
LVS_TYPE=VS_DR
INITIAL_STATE=on
CLEAR_IPVS_TABLES=yes
#VIP line format - device[:alias] IP netmask broadcast
#To help avoid namespace collisions with other VIPs, I set alias=last
number of
#note: for VS-DR, VS-Tun, the IP is in a /32 network
VIP=eth0:0 192.168.2.50 255.255.255.0 192.168.2.50
#DIP line format - device[:alias] IP network netmask broadcast
DIP=eth0 192.168.2.46 192.168.2.0 255.255.255.0 192.168.2.255
#no DIRECTOR_GW for VS-DR or VS-Tun
#DIRECTOR_GW=
#SERVICE line format - proto port scheduler IP[,weight] [IP[,weight]]
#SERVICE=t telnet rr sneezy bashfull
#SERVICE=t ftp rr sneezy,1 bashfull,2
SERVICE=t http rr 192.168.2.41 192.168.2.42
SERVER_VIP_DEVICE=lo:0
SERVER_NET_DEVICE=eth0
#SERVER_GW - packets with src_addr=VIP, dst_addr=0/0 are sent to SERVER_GW
#to be forwarded to the outside world.
#For standard VS-DR,VS-Tun, this must _NOT_ be the director.
#For Julian's martian modification (see the HOWTO), it will be the
director.
#If you don't know about the martian modification, you aren't using it.
#The script will not neccesarily set up the SERVER_GW as the
real-servers's def
SERVER_GW=192.168.2.46
#----------end lvs_dr.conf------------------------------------
what is the error in this setup? i get it running and when watching
ipvsadm i can see that the director is sending the first request to the
first server, the next to the second, but i get no data to my client.
anyone knows what to do?
--
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users
|