[Pacemaker] Unable to stop Multi state resource

Rakesh K rakirocker4236 at gmail.com
Tue Apr 19 06:34:59 EDT 2011


Rakesh K <rakirocker4236 at ...> writes:


Hi Andrew 

FSR is a File system replication script which adheres to ocf cluster frame work,
the script is similar to Mysql ocf script, which is a multi state resource,
where in master  ssh server would be running and in slave there are rsync
scripts which uses to synchronize the data between the Master and slave.

the rsync script will be having the Master FSR location, so that the rysnc tool
will be frequently replication the data from the FSR master location.

here is the crm configuration show output 

node $id="82a5281a-a069-49c1-9f57-d4a8f6eb3d72" prodmsf2
node $id="d8b6c2e7-d1c3-4a15-9411-ed4d710c8672" prodmsf
primitive FSR ocf:msf:fsr \
        params client_script="/home/msf/ha/scripts/ocf/rsyncClient"
source_dir="/home/msf/services/persistence/"
dest_dir="/home/msf/services/persistence/" user="root" pid="/var/run/fsr.pid"
rsync_binary="/usr/bin/rsync" rsync_options="-az" rsync_interval="1"
config_file="/home/msf/ha/config/ocf/fsr.config"
status_dump="/home/msf/ha/status/rsync_client_dump" \
        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 Httpd ocf:heartbeat:apache \
        params configfile="/etc/httpd/conf/httpd.conf" httpd="/usr/sbin/httpd"
client="curl" statusurl="http://localhost/img/test.html" testregex="*</html>" \
        op start interval="0" timeout="120s" \
        op stop interval="0" timeout="120s" \
        op monitor interval="50s" timeout="50s"
primitive HttpdVIP ocf:heartbeat:IPaddr3 \
        params ip="10.10.30.103" eth_num="eth0:1"
vip_cleanup_file="/var/run/bigha.pid" \
        op start interval="0" timeout="120s" \
        op stop 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/mysql.sock" test_passwd="slavepass"
test_table="test.conn" test_user="repl" replication_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="10.10.30.105" eth_num="eth0:3"
vip_cleanup_file="/var/run/bigha.pid" \
        op start interval="0" timeout="120s" \
        op stop interval="0" timeout="60s" \
        op monitor interval="30s" \
        meta target-role="Started"
primitive Tomcat1 ocf:msf:tomcat1 \
        params tomcat_name="tomcat" statusurl="http://localhost:8080/"
java_home="/" catalina_home="/home/msf/runtime/tomcat/apache-tomcat-6.0.18"
client="curl" testregex="*</html>" \
        op start interval="0" timeout="120s" \
        op monitor interval="50s" timeout="50s" \
        op stop interval="0" timeout="120s" \
        meta target-role="Started"
primitive Tomcat1VIP ocf:heartbeat:IPaddr3 \
        params ip="10.10.30.104" eth_num="eth0:2"
vip_cleanup_file="/var/run/bigha.pid" \
        op start interval="0" timeout="120s" \
        op stop interval="0" timeout="120s" \
        op monitor interval="30s" \
        meta target-role="Started"
ms MS_FSR FSR \
        meta notify="true" target-role="Started"
ms MS_Mysql Mysql \
        meta notify="true" target-role="Started"
colocation FSR-with-Tomcat inf: Tomcat1 MS_FSR:Master
colocation Httpd-with-ip inf: HttpdVIP Httpd
colocation Mysql-with-ip inf: MysqlVIP MS_Mysql:Master
colocation Tomcat1-with-ip inf: Tomcat1VIP Tomcat1
order FSR-after-tomcat inf: Tomcat1 MS_FSR
order Httpd-after-ip inf: HttpdVIP Httpd
order Httpd-after-tomcat inf: Tomcat1 HttpdVIP
order Mysql-after-ip inf: MysqlVIP MS_Mysql
order Tomcat1-after-MYSQL inf: MS_Mysql Tomcat1VIP
order Tomcat1-after-ip inf: Tomcat1VIP Tomcat1
property $id="cib-bootstrap-options" \
        dc-version="1.0.9-89bd754939df5150de7cd76835f98fe90851b677" \
        cluster-infrastructure="Heartbeat" \
        stonith-enabled="false" \
        no-quorum-policy="ignore"

Regards
Rakesh 






More information about the Pacemaker mailing list