LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

FOS problems

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: FOS problems
From: Deon van der Merwe <dvdm@xxxxxxxxxxxx>
Date: Tue, 03 Jul 2001 21:23:53 +0200
Hi All,

I have been able to get LVS up and running of the last week.  This
is on RedHat 6.2 using kernels 2.2.14 and 2.2.19.  what I need to
do is a simple FOS of 2 servers (currently apache).

- My config file is setup, and I can start "pulse" up on both machines.
- The server starts and I get the extra IP address on my first ethnet
    card.
  eth0      Link encap:Ethernet  HWaddr 00:20:ED:05:19:35
inet addr:192.168.200.18 Bcast:192.168.200.255 Mask:255.255.255.0
  ...
  eth0:1    Link encap:Ethernet  HWaddr 00:20:ED:05:19:35
inet addr:192.168.200.26 Bcast:192.168.200.255 Mask:255.255.255.0
  ...
  lo        Link encap:Local Loopback
            inet addr:127.0.0.1  Mask:255.0.0.0
  ...
- When I now kill the apache server on my primary machine, the backup
    takes over very nicely.
- The extra IP address is removed from the primary machine
- The apache server is started.
- The extra IP address is added (as above)

The problem now is that after the first time that the "nanny" on the
primary machine checks the fallback server, the extra IP address interface
disappears from the backup machine.

I have applied the latest patches for lvs to both the kernels that
I tested with.  Can anyone tell what I am doing wrong?

Here is my config file:
# SECTION 1 - GLOBAL SETTINGS
service = fos
primary = 192.168.200.18
backup = 192.168.200.19
backup_active = 1
heartbeat = 1
heartbeat_port = 1050
keepalive = 6
deadtime = 18

rsh_command = rsh

network = nat
nat_router = 192.168.200.1 eth1:2



# SECTION 2 - VIRTUAL SERVERS
virtual server1 {
        address = 207.175.44.253 eth0:1
        active = 0
  ...
}

# SECTION 3 - FAILOVER SERVICES
failover web1 {
     active = 1
     address = 192.168.200.26 eth0:1
     port = 80
     timeout = 10
     start_cmd = "/etc/rc.d/init.d/httpd start"
     stop_cmd = "/etc/rc.d/init.d/httpd stop"
}


Thanks in advance.





-Deon
------------------------------------------------------------------
Cellpoint SA (Pty) Ltd.   | GSM data communication solutions
http://www.cellpoint.com  | http://www.unwire.com
Voice: +27-(0)11-254-5100 | Fax: +27-(0)11-805-6076



<Prev in Thread] Current Thread [Next in Thread>
  • FOS problems, Deon van der Merwe <=