LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-16-2010, 11:27 PM   #1
chobong
Member
 
Registered: Jan 2010
Posts: 90

Rep: Reputation: 15
LVS-DR is not working


Hi all,

Im building a LVS system with 3 server, 1 for Load Balance Server and the others for Real Web server.
LB Server: 192.168.1.111
eal Server1: 192.168.1.112
Real Server2: 192.168.1.113

# echo "1" > /proc/sys/net/ipv4/ip_forward

# ipvsadm -L -n
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 192.168.1.111:80 rr
-> 192.168.1.112:80 Masq 1 0 0
-> 192.168.1.113:80 Masq 1 0 0

At Real Server1:
iptables –t nat –A PREROUTING –d 192.168.1.111 –p tcp –dport 80 –j REDIRECT –to-ports 80
At Real Server2
iptables –t nat –A PREROUTING –d 192.168.1.111 –p tcp –dport 80 –j REDIRECT –to-ports 80

But I can't connect to http://192.168.1.111.
Could you please let me know what i should do now?
Thank you so much!
 
Old 02-21-2011, 03:39 AM   #2
mahao
LQ Newbie
 
Registered: Dec 2010
Posts: 8

Rep: Reputation: 0
Any solution about this?

I'm stuck here too.

[root@localhost ~]# ipvsadm -ln
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 10.121.122.63:80 wlc persistent 30
-> 10.121.122.56:80 Route 1 0 0
-> 10.121.122.55:80 Route 1 0 0

I have stopped iptables.
But http://10.121.122.63 return can not connect.
 
Old 02-21-2011, 10:02 PM   #3
mahao
LQ Newbie
 
Registered: Dec 2010
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by mahao View Post
Any solution about this?

I'm stuck here too.

[root@localhost ~]# ipvsadm -ln
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 10.121.122.63:80 wlc persistent 30
-> 10.121.122.56:80 Route 1 0 0
-> 10.121.122.55:80 Route 1 0 0

I have stopped iptables.
But http://10.121.122.63 return can not connect.
This is my lvs.cf:

serial_no = 20
primary = 10.121.122.83
service = lvs
backup = 192.168.0.4
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = direct
debug_level = NONE
virtual mysql {
active = 1
address = 10.121.122.63 eth0:2
vip_nmask = 255.255.255.255
port = 80
persistent = 30
pmask = 255.255.255.255
send = "GET / HTTP/1.0\r\n\r\n"
expect = "HTTP"
use_regex = 0
load_monitor = none
scheduler = wlc
protocol = tcp
timeout = 6
reentry = 15
quiesce_server = 0
server real1 {
address = 10.121.122.55
active = 1
weight = 1
}
server real2 {
address = 10.121.122.56
active = 1
weight = 1
}
}
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Piranha LVS/TUN support OR alternative web interface for configuring LVS ajitabhpandey Red Hat 0 05-18-2009 10:37 PM
Lvs - Ipvsadm zmunawar Linux - Server 1 08-08-2008 11:57 AM
LVS-DR and Multiple HTTPS apache's not working DukeLeto Linux - Software 1 10-16-2007 08:40 PM
Regarding HA and LVS gurl4sh25 Linux - Software 2 06-09-2007 11:04 AM
LVS and HA on two servers? gurl4sh25 Linux - Software 0 06-08-2007 05:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration