Dear All
I have setup LVS setup of apache with 3 machines (RHEL-5.2). One is LVS and two
are Real servers. I have configured through piranha.I have been facing the
following problems.
* when Iam trying to When Iam trying to telnet on port 80, It gives following
error
#telnet 10.129.150.160 80
Trying 10.129.150.160...
telnet: connect to address 10.129.150.160: Connection timed out
* If Iam trying to browse the 10.129.150.60, following error occured
"The connection has timed out
The server at 10.129.150.160 is taking too long to respond."
> Here Iam giving my complete setup details. Please help me out.
LVS1
----
eth0 inet addr:10.129.150.158 Bcast:10.129.150.255 Mask:255.255.255.0
(Public)
eth0:1 inet addr:10.129.150.160 Bcast:10.129.150.255 Mask:255.255.255.0
(VIP-Public)
eth1 inet addr:192.168.89.10 Bcast:192.168.89.255 Mask:255.255.255.0
(Private)
eth1:1 inet addr:192.168.89.15 Bcast:192.168.89.255 Mask:255.255.255.0
(VIP-Private or NAT gateway)
Real Server rs1
-----------
Interface:eth1
IP:192.168.89.1
Mask:255.255.255.0
Gw: 192.168.89.15
Real Server rs2
-----------
Interface:eth1
IP:192.168.89.2
Mask:255.255.255.0
Gw: 192.168.89.15
LVS configurational file
-------------------------
[root@lvs1 ~]# cat /etc/sysconfig/ha/lvs.cf
serial_no = 84
primary = 10.129.150.158
service = lvs
backup = 0.0.0.0
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = nat
nat_router = 192.168.89.15 eth1:1
nat_nmask = 255.255.255.0
debug_level = NONE
virtual vrs {
active = 1
address = 10.129.150.160 eth0:1
vip_nmask = 255.255.255.0
port = 80
send = "GET / HTTP/1.0\r\n\r\n"
expect = "HTTP"
use_regex = 0
load_monitor = none
scheduler = wrr
protocol = tcp
timeout = 6
reentry = 15
quiesce_server = 0
server rs1 {
address = 192.168.89.1
active = 1
weight = 1
}
server rs2 {
address = 192.168.89.2
active = 1
weight = 1
}
}
The following commands has been executed on LVS
------------------------------------------------
# /sbin/iptables -t mangle -A PREROUTING -p tcp -d 10.129.150.160/32 --dport 80
-j MARK --set-mark 80
# /sbin/iptables -t nat -A POSTROUTING -p tcp -s 192.168.89.0/24 --sport 80 -j
MASQUERADE
ipvsadm output
-----------------
[root@lvs1 ~]# ipvsadm -l
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP lvs1pp.locuz.org:http wrr
-> rs2.locuz.org:http Masq 1 0 0
-> rs1.locuz.org:http Masq 1 0 1
Thanking you
laxman
_________________________________________________________________
Plug in to the MSN Tech channel for a full update on the latest gizmos that
made an impact.
http://computing.in.msn.com/
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
|