Hello everybody!
At first sorry for my english which is not perfect
I have made a cluster between two server.
In luci I can see that my cluster is green and the two nodes to.
I have make an IP resource and associate it to a service : green : I can relocate the service from a node to the other one and the IP appears in the list of IP addresses
The problem is that I have made the same in order to configure tomcat and postgresql and it does not work...
I put my configuration only for ip and tomcat:
My host configuration:
Code:
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
10.0.0.1 server1.domain.com server1
10.0.0.2 server2.domain.com server2
My cluster configuration
Code:
<?xml version="1.0"?>
<cluster alias="my_cluster" config_version="21" name="my_cluster">
<fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="3"/>
<clusternodes>
<clusternode name="server1.domain.com" nodeid="1" votes="1">
<fence/>
</clusternode>
<clusternode name="server2.domain.com" nodeid="2" votes="1">
<fence/>
</clusternode>
</clusternodes>
<cman expected_votes="1" two_node="1"/>
<fencedevices/>
<rm>
<failoverdomains/>
<resources>
<ip address="x.x.x.151" monitor_link="1"/>
<tomcat-5 catalina_base="/usr/share/tomcat5" catalina_options="" config_file="/etc/tomcat5/tomcat5.conf" name="tomcatres" shutdown_wait="30" tomcat_user="root"/>
</resources>
<service autostart="1" exclusive="0" name="ipservice" recovery="relocate">
<ip ref="x.x.x.151"/>
</service>
<service autostart="0" max_restarts="0" name="tomtom" recovery="restart" restart_expire_time="0">
<tomcat-5 ref="tomcatres"/>
</service>
</rm>
</cluster>
(I have tried with user tomcat but it's the same)
The error I obtain in the luci log is :
Code:
Tue May 18 10:07:40 2010 clurgmgrd[3878]: Service service:tomtom is recovering
Tue May 18 10:07:40 2010 clurgmgrd[3878]: Starting stopped service service:tomtom
Tue May 18 10:07:40 2010 clurgmgrd[3878]: Stopping service service:tomtom
Tue May 18 10:07:40 2010 clurgmgrd[3878]: start on tomcat-5 "tomcatres" returned 1 (generic error)
Tue May 18 10:07:40 2010 clurgmgrd[3878]: #68: Failed to start service:tomtom; return value: 1
Tue May 18 10:07:40 2010 clurgmgrd: [3878]: Checking Existence Of File /var/run/cluster/tomcat-5/tomcat-5:tomcatres.pid [tomcat-5:tomcatres] > Failed - File Doesn't Exist
Tue May 18 10:07:40 2010 clurgmgrd: [3878]: Looking For IP Addresses [tomcat-5:tomcatres] > Failed - No IP Addresses Found
Tue May 18 10:07:40 2010 luci[4724]: Unable to retrieve batch 511027733 status from server1.domain.com:11111: module scheduled for execution
Tue May 18 10:07:41 2010 clurgmgrd[3878]: Service service:tomtom is stopped
Tue May 18 10:07:41 2010 clurgmgrd[3878]: #71: Relocating failed service service:tomtom
Tue May 18 10:07:46 2010 luci[4724]: Unable to retrieve batch 511027733 status from server1.domain.com:11111: clusvcadm start failed to start tomtom:
The first thing his that I do not understand why he search this PID file (I have the default tomcat configuration). The second one is the IP addresses not found...
FYI : when I start tomcat with "service tomcat start" it works
Thank you
