Hi all,
First I'm french so sorry in advance for my English...

I have to use Heartbeat for High Availability between 2 Tomcat 5.5 servers 
under Linux RedHat 5.3. The first server is active, the other one is passive. 
The master is called servappli01, with IP address 186.20.100.40, the slave is 
called servappli02, with IP address 186.20.100.39.
I configured a virtual IP 186.20.100.41. Each Tomcat is not launched when 
server is started, this is Heartbeat which starts Tomcat when it's running.
My problem is : When heartbeat is started on the first server, then on the 
second server, the VIP is assigned to the 2 servers ! also, Tomcat is started 
on each server, and each node see the other node as "dead" !

Here is my configuration :

ha.cf file (the same on each server) :

logfile /var/log/ha-log

debugfile /var/log/ha-debug

logfacility none

keepalive 2

warntime 6

deadtime 10

initdead 90

bcast eth0

node servappli01 servappli02

auto_failback yes

respawn hacluster /usr/lib/heartbeat/ipfail

apiauth ipfail gid=haclient uid=hacluster


haresources file (the same on each server) :

servappli01 IPaddr::186.20.100.41/24/eth0 tomcat


Result of ifconfig command on the first server (servappli01) :

eth0      Link encap:Ethernet  HWaddr 00:1E:0B:BB:C2:38

          inet adr:186.20.100.40  Bcast:186.20.100.255  Masque:255.255.255.0

          adr inet6: fe80::21e:bff:febb:c238/64 Scope:Lien

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:14404996 errors:0 dropped:0 overruns:0 frame:0

          TX packets:6580505 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 lg file transmission:1000

          RX bytes:3858322223 (3.5 GiB)  TX bytes:2694953468 (2.5 GiB)

          Interruption:177 Memoire:fa000000-fa012100



eth0:0    Link encap:Ethernet  HWaddr 00:1E:0B:BB:C2:38

          inet adr:186.20.100.41  Bcast:186.20.100.255  Masque:255.255.255.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interruption:177 Memoire:fa000000-fa012100

Result of ifconfig command on the second server (servappli02) at the same time :

eth0      Link encap:Ethernet  HWaddr 00:1E:0B:77:C9:0C

          inet adr:186.20.100.39  Bcast:186.20.100.255  Masque:255.255.255.0

          adr inet6: fe80::21e:bff:fe77:c90c/64 Scope:Lien

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:23815049 errors:0 dropped:0 overruns:0 frame:0

          TX packets:17441845 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 lg file transmission:1000

          RX bytes:2620027933 (2.4 GiB)  TX bytes:3595896739 (3.3 GiB)

          Interruption:177 Memoire:fa000000-fa012100



eth0:0    Link encap:Ethernet  HWaddr 00:1E:0B:77:C9:0C

          inet adr:186.20.100.41  Bcast:186.20.100.255  Masque:255.255.255.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interruption:177 Memoire:fa000000-fa012100

Result of "/usr/bin/cl_status listnodes" command (on each server) :

servappli02

servappli01


Result of "/usr/bin/cl_status nodestatus servappli01" command on servappli01 :

active

Result of "/usr/bin/cl_status nodestatus servappli02" command on servappli01 :

dead

Result of "/usr/bin/cl_status nodestatus servappli01" command on servappli02 :

dead

Result of "/usr/bin/cl_status nodestatus servappli02" command on servappli02 :

active

And of course, if I kill Tomcat on master server, there's no switch to the 
second server (a call to a webapp using the VIP doesn't work).

Can somebody help me please ?
I guess there's is something wrong but I don't know what !
Thanx

Mathieu
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to