[CentOs - Cluster Suite] It works for IP but not for Tomcat or Postgresql
Hello everybody!
At first sorry for my english which is not perfect :p 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 Code:
<?xml version="1.0"?> The error I obtain in the luci log is : Code:
Tue May 18 10:07:40 2010 clurgmgrd[3878]: Service service:tomtom is recovering FYI : when I start tomcat with "service tomcat start" it works Thank you :) |
Ok it seems it works now :
Code:
<?xml version="1.0"?> |
To resume with a failover domain it works for postgres but not for tomcat.
Tomcat is still relocate from a node to the other one... Code:
<?xml version="1.0"?> |
I still have this problem in catalina.out :
Code:
su: invalid option -- D Thanks. |
Arf I have found.....
The problem comes from /usr/share/cluster/tomcat-5.sh : they make this command : Code:
su "$TOMCAT_USER" -c "$JAVA_HOME/bin/java" $JAVA_OPTS $OCF_RESKEY_catalina_options \ Code:
su "$TOMCAT_USER" -c "$JAVA_HOME/bin/java $JAVA_OPTS $OCF_RESKEY_catalina_options -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath $CLASSPATH -Dcatalina.base=$TOMCAT_gen_catalina_base -Dcatalina.home=$CATALINA_HOME -Djava.io.tmpdir=$CATALINA_TMPDIR org.apache.catalina.startup.Bootstrap $@ start">>"$TOMCAT_gen_catalina_base"/logs/catalina.out 2>&1 & Closed ;) Thanks |
All times are GMT -5. The time now is 10:40 AM. |