<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>>>><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: 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" 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>
>There is no role field listed here.</pre><pre>thank you very much!</pre><pre>but where should I put role="Master"? if I write like this:</pre><pre><span class="Apple-style-span" style="font-family: Simsun; white-space: normal; "><pre style="text-indent: 0px !important; "><i style="text-indent: 0px !important; "><rsc_location id="constraints-rsc_location-mastr-owl0" rsc="mastr"</i><span style="text-indent: 0px !important; "> </span><i style="text-indent: 0px !important; ">node="owl0" score="1" role="Master" /></i></pre><pre style="text-indent: 0px !important; "><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; "><i style="text-indent: 0px !important; "><rsc_location id="constraints-rsc_location-mastr-owl2" rsc="mastr" </i><i style="text-indent: 0px !important; ">node="owl2" score="1"/></i></pre></span></i></pre><pre style="text-indent: 0px !important; "><i>it will not be accepted by cibadmin. what is a typical example for this case?</i></pre><pre style="text-indent: 0px !important; "><i>thank you!!!</i></pre></span></pre><pre><br></pre></span>                                          </body>
</html>