<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:΢ÈíÑźÚ
}
--></style>
</head>
<body class='hmmessage'>
<span class="Apple-style-span" style="font-family: Simsun; font-size: 12pt; "><pre>> Did you check the schema?</pre><pre>I don't know where I should put the "<i style="text-indent: 0px !important; ">role field" for the master/slave resource to promote it in my cib.xml.</i></pre><pre><i style="text-indent: 0px !important; "><span class="Apple-style-span" style="font-family: Simsun; font-style: normal; white-space: normal; "><pre style="text-indent: 0px !important; display: inline !important; "><i style="text-indent: 0px !important; "></i></pre></span></i><i style="text-indent: 0px !important; ">the sample is valid.</i></pre><pre><i>thank you.<br></i>
2011/5/30 ÏîÀÚ <<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">l.darkfire at hotmail.com</a>>:
>>>><i> Hi, friends, I have a problem with Pacemaker 1.1.5.
</i>>>>><i>
</i>>>>><i> When I configure a master resource as usual, and set
</i>>>>><i> target-role=¡°Master¡±,
</i>>>>><i> but all instances are in slave state, no instance is promoted to master
</i>>>>><i> state.
</i>>>>><i>
</i>>>>><i> Who can tell me how to promote a instance to master?
</i>>><i>
</i>>>><i>have your RA call crm_master with a promotion preference or create a
</i>>>><i>location constraint for the master role.
</i>>><i>
</i>>>>><i>
</i>>>>><i> I guess it is a change in version 1.1.5, because I found ¡°+ High: PE:
</i>>>>><i> Bug
</i>>>>><i> lf#2554 - target-role alone is not sufficient to promote resources¡± in
</i>>>>><i> ChangeLog.
</i>>><i>
</i>>>><i>yes
</i>>><i>
</i>>><i> here is part of my cib.xml about the master/slave resource:
</i>>><i>
</i>>><i> ...
</i>>><i>
</i>>><i> <master id="mastr">
</i>>><i> <meta_attributes id="resource-mastr-meta_attributes">
</i>>><i> <nvpair id="resource-mastr-meta_attributes-globally-unique"
</i>>><i> name="globally-unique" value="false"/>
</i>>><i> <nvpair id="resource-mastr-meta_attributes-clone-max" name="clone-max"
</i>>><i> value="2"/>
</i>>><i> <nvpair id="resource-mastr-meta_attributes-clone-node-max"
</i>>><i> name="clone-node-max" value="1"/>
</i>>><i> <nvpair id="resource-mastr-meta_attributes-master-max"
</i>>><i> name="master-max"
</i>>><i> value="1"/>
</i>>><i> <nvpair id="resource-mastr-meta_attributes-master-node-max"
</i>>><i> name="master-node-max" value="1"/>
</i>>><i> </meta_attributes>
</i>>><i> <primitive id="mastr-RESOURCE" class="ocf" type="master"
</i>>><i> provider="heartbeat">
</i>>><i> <meta_attributes id="resource-mastr-RESOURCE-meta_attributes">
</i>>><i> <nvpair id="resource-mastr-RESOURCE-meta_aa" name="priority"
</i>>><i> value="1"/>
</i>>><i> <nvpair
</i>>><i> id="resource-mastr-RESOURCE-meta_attributes-migration-threshold"
</i>>><i> name="migration-threshold" value="0"/>
</i>>><i> <nvpair id="resource-mastr-RESOURCE-meta_attributes-failure-timeout"
</i>>><i> name="failure-timeout" value="0"/>
</i>>><i> <nvpair id="resource-mastr-RESOURCE-meta_attributes-is-managed"
</i>>><i> name="is-managed" value="true"/>
</i>>><i> <nvpair id="resource-mastr-RESOURCE-meta_attributes-target-role"
</i>>><i> name="target-role" value="Master"/>
</i>>><i> </meta_attributes>
</i>>><i> <operations>
</i>>><i> <op id="resource-mastr-RESOURCE-operation-start" name="start"
</i>>><i> interval="0" timeout="60s" on-fail="restart"/>
</i>>><i> <op id="resource-mastr-RESOURCE-operation-stop" name="stop"
</i>>><i> interval="0" timeout="60s" on-fail="block"/>
</i>>><i> <op id="resource-mastr-RESOURCE-operation-monitor" name="monitor"
</i>>><i> interval="0" timeout="60s" on-fail="restart"/>
</i>>><i> </operations>
</i>>><i> </primitive>
</i>>><i> </master>
</i>>><i>
</i>>><i> ...
</i>>><i>
</i>>><i> <rsc_location id="constraints-rsc_location-mastr-owl0" rsc="mastr"
</i>>><i> node="owl0" score="1"/>
</i>>><i> <rsc_location id="constraints-rsc_location-mastr-owl2" rsc="mastr"
</i>>><i> node="owl2" score="1"/>
</i>><i>
</i>>><i>There is no role field listed here.
</i>><i>
</i>><i> thank you very much!
</i>><i>
</i>><i> but where should I put role="Master"? if I write like this:
</i>><i>
</i>><i> <rsc_location id="constraints-rsc_location-mastr-owl0" rsc="mastr"
</i>><i> node="owl0" score="1" role="Master" />
</i>><i>
</i>><i> <rsc_location id="constraints-rsc_location-mastr-owl2" rsc="mastr"
</i>><i> node="owl2" score="1"/>
</i>><i>
</i>><i> it will not be accepted by cibadmin. what is a typical example for this
</i>><i> case?
</i>><i>
</i>><i> thank you!!!</i></pre></span>                                            </body>
</html>