Hi,
I can't set up the Directly Routing LVS. I used the standard piranha in
Redhat 6.2 to setup the LVS, but I can't start the deamon in the piranha's
GUI. Anyways, I can start the deamon in console by typing 'lvs -n'. However,
when i type in the ip of the virtual in the browser, it can't get access to
my expected real server (it is also a Redhat 6.2). Attached are my log file
produced by 'lvs -nt > testlog' and the lvs.cf. FYI...in the Virtual Server,
there are two eth devices both with ip alias. All of the four ips are the
real ip. The ip of the real server is also a real ip.
Please note that the ips in the file are not the actual ips i used. Thanks!
:)
Content of the file lvs.cf
*********************
primary = 202.81.240.109
network = direct
service = lvs
virtual HKVHost02 {
address = 202.81.240.106 eth1:1
active = 1
load_monitor = ruptime
server HKWeb01 {
address = 202.81.240.112 active = 1
}
}
***********************
Content of the file testlog produced by >lvs -nt > testlog
************************
lvs: running command "/usr/sbin/ipvsadm" "-C"
lvs: running command "/usr/sbin/ipvsadm" "-C"
lvs: starting virtual service HKVHost02 active: 0
lvs: running command "/usr/sbin/ipvsadm" "-A" "-t" "202.81.240.106:80" "-s"
"wlc"
lvs: running command "/usr/sbin/ipvsadm" "-C"
lvs: starting virtual service HKVHost02 active: 0
lvs: running command "/usr/sbin/ipvsadm" "-A" "-t" "202.81.240.106:80" "-s"
"wlc"
lvs: running command "/usr/sbin/nanny" "-c" "-h" "202.81.240.112" "-p" "80"
"-a" "180" "-I" "/usr/sbin/ipvsadm" "-t" "10" "-w" "1" "-V" "202.81.240.106"
"-M" "g" "-U" "ruptime" "--nodaemon"
lvs: shutting down due to signal 15 lvs: shutting down virtual service
HKVHost02
lvs: running command "/usr/sbin/ipvsadm" "-D" "-t" "202.81.240.106:80"
lvs: running command "/usr/sbin/ipvsadm" "-C"
lvs: starting virtual service HKVHost02 active: 0
lvs: running command "/usr/sbin/ipvsadm" "-A" "-t" "202.81.240.106:80" "-s"
"wlc"
lvs: running command "/usr/sbin/nanny" "-c" "-h" "202.81.240.112" "-p" "80"
"-a" "180" "-I" "/usr/sbin/ipvsadm" "-t" "10" "-w" "1" "-V" "202.81.240.106"
"-M" "g" "-U" "ruptime" "--nodaemon"
lvs: shutting down due to signal 15
lvs: shutting down virtual service HKVHost02
lvs: running command "/usr/sbin/ipvsadm" "-D" "-t" "202.81.240.106:80"
**************************
|