LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RedHat High Availability Server

To: <kbarrett@xxxxxxxxxx>
Subject: RedHat High Availability Server
Cc: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
From: "Scott Sherman" <scott@xxxxxxxxxxxxx>
Date: Wed, 13 Sep 2000 19:38:04 +0100
Thanx for the offer, Keith. I had actually already typed a message asking
for advice and saved it.  Here it is (in slightly altered form).


I have:

1. Installed RedHat 6.2
2. Installed all Errata
3. Upgraded the kernel to 2.2.16-4 (Also have 2.2.16-3 on machine).
4. Upgraded to the following:
ipvsadm-1.11-4.i386.rpm
piranha-0.4.16-3.i386.rpm
piranha-gui-0.4.16-3.i386.rpm
piranha-docs-0.4.16-3.i386.rpm
5.  Put the following line in /etc/rc.d/rc.local:  ipchains -A forward -j
MASQ -s 192.168.0.0/24 -d 0.0.0.0/0

I have done this on two machines: They are as follows.



lb1
-----------------------
eth0:   195.50.89.219
eth1:   192.168.0.219

External floating address: 195.50.89.225
Internal floating address:   192.168.0.250


lb2
------------------------
eth0:   195.50.89.220
eth1:   192.168.0.220

victim (web server)
---------------------------
eth0:192.168.0.31


Note:  In reality, Load balancer 1 is currently being used for Ultra
Monkey....  So its just lb2 for the time being.  I have set up lb2 as the
active router.



Both have identical lvs.cf files in the /etc/sysconfig/ha/ directory. Apache
is running on port 5080 on each as well.   Pulse seems to work ok (lb2 goes
down, lb1 takes over its floating IP addresses).  However,  when I  type the
Virtual Server address into a web browser using port 80, nothing comes up.
If I use port 5080, I get lb2's index page.

Everything looks ok with ipvsadm -L -n:


[root@lb2 /root]# ipvsadm -L -n
IP Virtual Server version 0.9.14 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port          Forward Weight ActiveConn InActConn
TCP  195.50.89.225:80 wlc persistent 300
  -> 192.168.0.31:80             Masq    100    0          0


Not really sure why it won't work. After messing with it for a few days I
ditched it to go and try Ultra Monkey. All I would like is a working
cluster...

Thanks in advance for any help.

Sincerely,

Scott


(configuration files follow)


/etc/lvs.cf

primary = 195.50.89.220
service = lvs
rsh_command = ssh
backup_active = 0
backup = 195.50.89.219
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = nat
nat_router = 192.168.0.250 eth1:1
virtual [cluster1] {
     active = 1
     address = 195.50.89.225 eth0:1
     port = 80
     persistent = 300
     send = "GET / HTTP/1.0\r\n\r\n"
     expect = "HTTP"
     load_monitor = ruptime
     scheduler = wlc
     protocol = tcp
     persistent = 300
     timeout = 6
     reentry = 15
     server [victim] {
         address = 192.168.0.31
         active = 1
         weight = 100
     }



/etc/sysctl.conf

# Disables packet forwarding
net.ipv4.ip_forward = 1
# Enables source route verification
net.ipv4.conf.all.rp_filter = 1
# Disables automatic defragmentation (needed for masquerading, LVS)
net.ipv4.ip_always_defrag = 1
# Disables the magic-sysrq key
kernel.sysrq = 0


Output of ifconfig with pulse running:

eth0      Link encap:Ethernet  HWaddr 00:50:DA:21:CF:C3
          inet addr:195.50.89.220  Bcast:195.50.89.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11583 errors:0 dropped:0 overruns:1 frame:0
          TX packets:1084 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          Interrupt:10 Base address:0xc000

eth0:1    Link encap:Ethernet  HWaddr 00:50:DA:21:CF:C3
          inet addr:195.50.89.225  Bcast:195.50.89.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:10 Base address:0xc000

eth1      Link encap:Ethernet  HWaddr 00:01:29:00:05:2C
          inet addr:192.168.0.220  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13512 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4651 errors:0 dropped:0 overruns:0 carrier:0
          collisions:20 txqueuelen:100
          Interrupt:11 Base address:0xc400 Memory:e0041000-e0041900

eth1:1    Link encap:Ethernet  HWaddr 00:01:29:00:05:2C
          inet addr:192.168.0.250  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:11 Base address:0xc400 Memory:e0041000-e0041900

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:93 errors:0 dropped:0 overruns:0 frame:0
          TX packets:93 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0


-----Original Message-----
From: kbarrett@xxxxxxxxxx [mailto:kbarrett@xxxxxxxxxx]
Sent: Wednesday, September 13, 2000 4:21 PM
To: Scott Sherman
Cc: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Webmonkey / Ldirectord difficulties. Please advise.


Scott Sherman wrote:
>
> After struggling with RedHat High Availability Server for a week to no
> avail,

Could you send me specifics on where you were having problems? There
aren't any bugzilla entries by you and I would love to be able to
address problems. I need more information.

Thanks

--

Keith Barrett
Red Hat Inc. HA Team
kbarrett@xxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
  • RedHat High Availability Server, Scott Sherman <=