problem with FOS setup.

"monger perl" <[email protected]>
Newsgroups gmane.linux.redhat.piranha
Message-ID <[email protected]>
Hi

I am configuring FOS setup between two servers with 
IP 192.168.0.221(Master/abel) and IP 192.168.0.222(Slave/cain).

The virtual IP is 192.168.0.253.

	Linux     - Redhat 7.2
	Piranha   - 0.7.0 
	IPVSADM   - v1.18 2001/03/18 (compiled with popt and IPVS v0.8.1)
	Heartbeat - 0.4.9.1

The service setup is Apache/HTTP on port 80.
It works in following cases:

#1. If I shutdown the master, the slave takes over the virtual IP and 
starts the 
HTTP service.

#2. If I kill the pulse running in the master, the slave takes over the 
virtual IP and starts the HTTP service.

#3. If I pull the network cable attached to the master, the slave takes 
over the virtual IP and starts the HTTP service.

However,

#4. If I shutdown the HTTP daemon on the master manually, the slave won't 
take over the vip nor starts the HTTP service.  

The slave server reports following in /var/log/messages.

>> Jan 21 14:55:02 cain nanny[1171]: Exiting due to connection failure of 
192.168.0.253:80
>> Jan 21 14:55:02 cain fos[1157]: Monitor for service 192.168.0.253:80 
exited. This is a failover condition!
>> Jan 21 14:55:02 cain fos[1157]: will now exit to notify pulse...
>> Jan 21 14:55:02 cain fos[1273]: Stopping local services (if any)
>> Jan 21 14:55:02 cain fos[1273]: Shutting down local service 
192.168.0.253:80
>> Jan 21 14:55:02 cain httpd: httpd shutdown failed
>> Jan 21 14:55:02 cain fos[1273]: Warning; shutdown of local service 
192.168.0.253:80 returned error 1
>> Jan 21 14:55:02 cain fos[1273]: Starting monitor for 192.168.0.253:80 
running as pid 1273
>> Jan 21 14:55:02 cain nanny[1287]: Failover service monitor for 
192.168.0.221:80 started
>> Jan 21 14:55:02 cain nanny[1287]: No service active & available...
>> Jan 21 14:55:08 cain nanny[1287]: Timeout waiting for remote service -- 
triggering failover!
>> Jan 21 14:55:08 cain fos[1273]: Monitor for service 192.168.0.253:80 
exited. This is a failover condition!
>> Jan 21 14:55:08 cain fos[1273]: will now exit to notify pulse...
>> Jan 21 14:55:08 cain pulse[808]: fos process exited -- checking network 
connectivity
>> Jan 21 14:55:08 cain pulse[808]: remote service unavailable; gateway 
unavailable
>> Jan 21 14:55:08 cain pulse[808]: I SEEM TO HAVE A NETWORK FAULT!
>> Jan 21 14:55:12 cain pulse[808]: Network fault seems to be fixed
>> Jan 21 14:55:12 cain fos[1290]: Stopping local services (if any)
>> Jan 21 14:55:12 cain fos[1290]: Shutting down local service 
192.168.0.253:80
>> Jan 21 14:55:12 cain httpd: httpd shutdown failed
>> Jan 21 14:55:12 cain fos[1290]: Warning; shutdown of local service 
192.168.0.253:80 returned error 1
>> Jan 21 14:55:12 cain fos[1290]: Starting monitor for 192.168.0.253:80 
running as pid 1290
>> Jan 21 14:55:12 cain nanny[1304]: Failover service monitor for 
192.168.0.221:80 started
>> Jan 21 14:55:12 cain nanny[1304]: No service active & available...
>> Jan 21 14:55:18 cain nanny[1304]: Timeout waiting for remote service -- 
triggering failover!
>> Jan 21 14:55:18 cain fos[1290]: Monitor for service 192.168.0.253:80 
exited. This is a failover condition!
>> Jan 21 14:55:18 cain fos[1290]: will now exit to notify pulse...
>> Jan 21 14:55:18 cain pulse[808]: fos process exited -- checking network 
connectivity
>> Jan 21 14:55:18 cain pulse[808]: remote service unavailable; gateway 
unavailable
>> Jan 21 14:55:18 cain pulse[808]: I SEEM TO HAVE A NETWORK FAULT!

following is the contents of configuration files.


--[lvs.cf]----------------------------------------------------------
serial_no = 81
primary = 192.168.0.221
service = fos
backup_active = 1
backup = 192.168.0.222
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = direct
reservation_conflict_action = preempt
debug_level = DEBUG
failover apache {
     address = 192.168.0.253 eth0:0
     vip_nmask = 255.255.255.0
     active = 1
     port = 80
     timeout = 6
     send = "GET / HTTP/1.0\r\n\r\n"
     expect = "HTTP"
     start_cmd = "/etc/rc.d/init.d/httpd start"
     stop_cmd = "/etc/rc.d/init.d/httpd stop"
}
--------------------------------------------------------------------


--[ha.cf]-----------------------------------------------------------
debugfile   /var/log/ha-debug
logfile     /var/log/ha-log
logfacility local0
keepalive   2
deadtime    10
initdead    120
serial      /dev/ttyS0
baud        19200
udpport     539
udp         eth0

node        abel
node        cain
--------------------------------------------------------------------


--[haresources]-----------------------------------------------------
abel        192.168.0.253
--------------------------------------------------------------------


If anybody know any idea, please help me out.
TIA


Takayuki YOSHIDA


_________________________________________________________________
 MSN   http://shopping.msn.co.jp/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.