[Pacemaker] Ordering set of resources, problem in ordering chain of resources

Rakesh K rakirocker4236 at gmail.com
Tue Apr 19 06:40:13 EDT 2011


Andrew Beekhof <andrew at ...> writes:

> 
> There is nothing in this config that requires tomcat2 to be stopped.
> 
> Perhaps:
>    colocation Tomcat2-with-Tomcat inf: Tomcat1 Tomcat2VIP
> was intended to be:
>    colocation Tomcat2-with-Tomcat inf: Tomcat2 Tomcat1
> 
> The only other service active is httpd, which also has no constraints
> indicating it should stop when mysql is down.
> 

Thanks Andrew for the valuable feed back.

As mentioned i had changed the colocation constraint but still facing with the
same issue.

As per the order given in HA configuration, i am providing output of my crm
configure show command

node $id="6317f856-e57b-4a03-acf1-ca81af4f19ce" cisco-demomsf
node $id="87b8b88e-3ded-4e34-8708-46f7afe62935" mysql3
primitive Httpd ocf:heartbeat:apache \
        params configfile="/etc/httpd/conf/httpd.conf" httpd="/usr/sbin/httpd" c
                                                                           
lient="curl" statusurl="http://localhost/img/test.html" testregex="*</html>" \
        op start interval="0" timeout="60s" \
        op monitor interval="50s" timeout="50s" \
        meta target-role="Started"
primitive HttpdVIP ocf:heartbeat:IPaddr3 \
        params ip="172.21.52.149" eth_num="eth0:4" vip_cleanup_file="/var/run/bi
                                                                           
gha.pid" \
        op start interval="0" timeout="120s" \
        op monitor interval="30s" \
        meta target-role="Started"
primitive Mysql ocf:heartbeat:mysql \
        params binary="/usr/bin/mysqld_safe" config="/etc/my.cnf" datadir="/var/
                                                                           
lib/mysql" user="mysql" pid="/var/lib/mysql/mysql.pid" socket="/var/lib/mysql/my
                                                                           
sql.sock" test_passwd="slavepass" test_table="msfha.conn" test_user="repl" repli
                                                                           
cation_user="repl" replication_passwd="slavepass" \
        op start interval="0" timeout="120s" \
        op stop interval="0" timeout="120s" \
        op monitor interval="10s" role="Master" timeout="8s" \
        op monitor interval="12s" timeout="8s"
primitive MysqlVIP ocf:heartbeat:IPaddr3 \
        params ip="172.21.52.150" eth_num="eth0:3"
vip_cleanup_file="/var/run/bigha.pid" \
        op start interval="0" timeout="120s" \
        op monitor interval="30s" \
        meta target-role="Started"
primitive Tomcat1 ocf:msf:tomcat \
        params tomcat_name="tomcat"
statusurl="http://localhost:8080/dbtest/testtomcat.html" java_home="/"
catalina_home="/home/msf/runtime/tomcat/apache-tomcat-6.0.18" client="curl"
testregex="*</html>" \
        op start interval="0" timeout="60s" \
        op monitor interval="50s" timeout="50s" \
        op stop interval="0" \
        meta target-role="Started"
primitive Tomcat1VIP ocf:heartbeat:IPaddr3 \
        params ip="172.21.52.140" eth_num="eth0:2"
vip_cleanup_file="/var/run/bigha.pid" \
        op start interval="0" timeout="120s" \
        op monitor interval="30s" \
        meta target-role="Started"
primitive Tomcat2 ocf:msf:tomcat \
        params tomcat_name="tomcat" statusurl="http://localhost:8081/"
java_home="/" catalina_home="/home/msf/runtime/tomcat2/apache-tomcat-6.0.18"
client="curl" testregex="*</html>" \
        op start interval="0" timeout="60s" \
        op monitor interval="50s" timeout="50s" \
        op stop interval="0" \
        meta target-role="Started"
primitive Tomcat2VIP ocf:heartbeat:IPaddr3 \
        params ip="172.21.52.139" eth_num="eth0:4"
vip_cleanup_file="/var/run/bigha.pid" \
        op start interval="0" timeout="120s" \
        op monitor interval="30s" \
        meta target-role="Started"
ms MS_Mysql Mysql \
        meta notify="true" target-role="Stopped"
location L_Master MS_Mysql \
        rule $id="L_Master-rule" $role="Master" 100: #uname eq cisco-demomsf \
        rule $id="L_Master-rule1" $role="Master" 100: #uname eq mysql3
colocation Httpd-with-ip inf: HttpdVIP Httpd
colocation Mysql-with-ip inf: MysqlVIP MS_Mysql:Master
colocation Tomcat1-with-ip inf: Tomcat1VIP Tomcat1
colocation Tomcat2-with-Tomcat inf: Tomcat2 Tomcat1
colocation tomcat2-with-ip inf: Tomcat2VIP Tomcat2
order Httpd-after-Tomcat2 inf: Tomcat2 Httpd
order Httpd-after-op inf: HttpdVIP Httpd
order Mysql-after-ip inf: MysqlVIP MS_Mysql
order Tomcat1-after-MYSQL inf: MS_Mysql Tomcat1VIP
order Tomcat1-after-ip inf: Tomcat1VIP Tomcat1
order Tomcat2-after-ip inf: Tomcat2VIP Tomcat2
property $id="cib-bootstrap-options" \
        dc-version="1.0.9-89bd754939df5150de7cd76835f98fe90851b677" \
        cluster-infrastructure="Heartbeat" \
        stonith-enabled="false" \
        no-quorum-policy="ignore" \
        last-lrm-refresh="1300787402"
rsc_defaults $id="rsc-options" \
        resource-stickiness="100"
  





More information about the Pacemaker mailing list