[Linux-cluster] Lars' method???
William Ottley
williamottley at gmail.com
Thu Jan 3 00:58:41 UTC 2008
Hello all,
I'm hoping that this layout here will make it easy for anyone to
figure out what booboo i've done?
I'm attempting to use Lars' method, since i really don't know how to
setup with only 1 (gateways have confused me)
i just can't get anything working...
client: 192.168.2.10 -> 192.168.2.1 via crossover cable (ping OK)
web browser is pointed to 192.168.2.100
LVS (centos 5.1, pulse, piranha):
eth0: 192.168.2.1/gw {none}
eth1: 192.168.0.111/gw 192.168.0.1
eth0:1 - 192.168.2.100 {VIP}
echo 1 > /proc/sys/net/ipv4/ip_forward
no iptables is running, httpd default port is 8080, and piranha_GUI is
listening at 3636
RIP1:
eth0: 192.168.0.15 / gw 192.168.0.1
/etc/sysconfig/network-scripts/lo:0
lo:0 - 192.168.2.100
ifup lo:0
ping 192.168.2.100 and 192.168.0.111 {OK}
echo 1 > /proc/sys/net/ipv4/ip_forward
RIP2:
eth0: 192.168.0.11 / gw 192.168.0.1
/etc/sysconfig/network-scripts/lo:0
lo:0 - 192.168.2.100
ifup lo:0
ping 192.168.2.100 and 192.168.0.111 {OK}
echo 1 > /proc/sys/net/ipv4/ip_forward
/etc/sysconfig/ha/lvs.cf:
serial_no = 19
primary = 192.168.2.1
service = lvs
backup = 0.0.0.0
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = nat
nat_router = 192.168.0.111 eth1
nat_nmask = 255.255.255.0
debug_level = NONE
virtual all-web {
active = 1
address = 192.168.2.100 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 = rr
protocol = tcp
timeout = 6
reentry = 15
quiesce_server = 0
server offsite1 {
address = 192.168.0.11
active = 1
weight = 1
}
server offsite2 {
address = 192.168.0.15
active = 1
weight = 1
}
}
[root at localhost ha]# ipvsadm
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn
InActConn/etc/init.d/pulse start
TCP 192.168.2.100:http rr
localhost pulse[4676]: STARTING PULSE AS MASTER
-> 192.168.0.15:http Masq 1 0 0
localhost pulse[4676]: partner dead: activating lvs
-> 192.168.0.11:http Masq 1 0 0
localhost lvs[4678]: starting virtual service all-web active: 80
localhost nanny[4684]: starting LVS client monitor for 192.168.2.100:80
localhost lvs[4678]: create_monitor for all-web/offsite1 running as pid 4684
localhost nanny[4685]: starting LVS client monitor for 192.168.2.100:80
localhost lvs[4678]: create_monitor for all-web/offsite2 running as pid 4685
localhost kernel: eth1: setting full-duplex.
localhost pulse[4681]: gratuitous lvs arps finished
localhost nanny[4684]: making 192.168.0.11:80 available
localhost nanny[4685]: making 192.168.0.15:80 available
PIRANHA CONFIGURATION TOOL
CURRENT LVS ROUTING TABLE
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 192.168.2.100:80 rr
-> 192.168.0.15:80 Masq 1 0 0
-> 192.168.0.11:80 Masq 1 0 0
CURRENT LVS PROCESSES
root 4676 0.0 0.0 1868 448 ? Ss 14:42 0:00 pulse
root 4678 0.0 0.1 1848 620 ? Ss 14:42 0:00 /usr/sbin/lvsd --nofork -c
/etc/sysconfig/ha/lvs.cf
root 4684 0.0 0.1 1836 668 ? Ss 14:42 0:00 /usr/sbin/nanny -c -h
192.168.0.11 -p 80 -s GET / HTTP/1.0\r\n\r\n -x HTTP -a 15 -I
/sbin/ipvsadm -t 6 -w 1 -V 192.168.2.100 -M m -U none --lvs
root 4685 0.0 0.1 1832 664 ? Ss 14:42 0:00 /usr/sbin/nanny -c -h
192.168.0.15 -p 80 -s GET / HTTP/1.0\r\n\r\n -x HTTP -a 15 -I
/sbin/ipvsadm -t 6 -w 1 -V 192.168.2.100 -M m -U none --lvs
--
---------------
Morpheus: After this, there is no turning back. You take the blue pill
- the story ends, you wake up in your bed and believe whatever you
want to believe. You take the red pill - you stay in Wonderland and I
show you how deep the rabbit-hole goes.
More information about the Linux-cluster
mailing list