[Pacemaker] Return value from promote function
Bob Schatz
bschatz at yahoo.com
Tue Feb 8 02:42:47 UTC 2011
I am running Pacemaker 1.0.9.1 and Heartbeat 3.0.3.
I have a master/slave resource with an agent.
When the resource hangs while doing a promote, the resource returns
OCF_ERR_GENERIC.
However, all this does is call demote on the resource, restart the resource on
the same node and then retry the promote again on the same node.
Is there anyway I can have the CRM promote the resource on the peer node
instead?
My configuration is:
node $id="856c1f72-7cd1-4906-8183-8be87eef96f2" mgraid-mkp00009010repk-1
node $id="f4e5e15c-d06b-4e37-89b9-4621af05128f" mgraid-mkp00009010repk-0
primitive SSMKP00009010REPK ocf:omneon:ss \
params ss_resource="SSMKP00009010REPK"
ssconf="/var/omneon/config/config.MKP00009010REPK" \
op monitor interval="3s" role="Master" timeout="7s" \
op monitor interval="10s" role="Slave" timeout="7" \
op stop interval="0" timeout="120" \
op start interval="0" timeout="600"
primitive icms lsb:S53icms \
op monitor interval="5s" timeout="7" \
op start interval="0" timeout="5"
primitive mgraid-stonith stonith:external/mgpstonith \
params hostlist="mgraid-canister" \
op monitor interval="0" timeout="20s"
primitive omserver lsb:S49omserver \
op monitor interval="5s" timeout="7" \
op start interval="0" timeout="5"
ms ms-SSMKP00009010REPK SSMKP00009010REPK \
meta clone-max="2" notify="true" globally-unique="false"
target-role="Master"
clone Fencing mgraid-stonith
clone cloneIcms icms
clone cloneOmserver omserver
location ms-SSMKP00009010REPK-master-w1 ms-SSMKP00009010REPK \
rule $id="ms-SSMKP00009010REPK-master-w1-rule" $role="master" 100: #uname eq
mgraid-mkp00009010repk-0
order orderms-SSMKP00009010REPK 0: cloneIcms ms-SSMKP00009010REPK
property $id="cib-bootstrap-options" \
dc-version="1.0.9-89bd754939df5150de7cd76835f98fe90851b677" \
cluster-infrastructure="Heartbeat" \
dc-deadtime="5s" \
stonith-enabled="true"
Thanks,
Bob
More information about the Pacemaker
mailing list