<div dir="ltr"><div>What I understand from "globally-unique=false" is as follows</div><div>Agent handling the resource does exactly same processing on all nodes. For processing this resource, agent on all nodes will use exactly same resources (files, processes, same parameters to agent entry points, etc).<br>
</div><div><br></div><div>In case of my resource, agent on all nodes execute same "command" to find score.<br></div><div>Driver present on all nodes will make sure that the node that is to be promoted is the one that reports highest score as output of the "command". Score is reported to CM using ( /usr/sbin/crm_master -Q -l reboot -v $score) in monitor entry point. Until this score</div>
<div>is reported, agent on other node will just delete the score using /usr/sbin/crm_master -Q -l reboot -D in monitor entry point</div><div><br></div><div><br></div><div><br></div><div><br></div>I want to make sure that the resource does not run on nodes other than $node1 and $node2. To achieve this i use the following commands. <div>
<br></div><div><div> pcs -f $CLUSTER_CREATE_LOG constraint location vha-${uuid} prefers $node1 </div><div> pcs -f $CLUSTER_CREATE_LOG constraint location vha-${uuid} prefers $node2 </div><div> pcs -f $CLUSTER_CREATE_LOG constraint location ms-${uuid} prefers $node1 </div>
<div> pcs -f $CLUSTER_CREATE_LOG constraint location ms-${uuid} prefers $node2 </div></div><div><br></div><div>Any issue here ?</div><div><br></div><div>Regards,</div><div> Kiran</div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, May 26, 2014 at 8:54 AM, Andrew Beekhof <span dir="ltr"><<a href="mailto:andrew@beekhof.net" target="_blank">andrew@beekhof.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class=""><br>
On 22 May 2014, at 11:20 pm, K Mehta <<a href="mailto:kiranmehta1981@gmail.com">kiranmehta1981@gmail.com</a>> wrote:<br>
<br>
> > May 13 01:38:36 vsanqa28 pengine[4310]: notice: LogActions: Promote vha-924bf029-93a2-41a0-adcf-f1c1a42956e5:0#011(Slave -> Master vsanqa28)<br>
> > May 13 01:38:36 vsanqa28 pengine[4310]: notice: LogActions: Demote vha-924bf029-93a2-41a0-adcf-f1c1a42956e5:1#011(Master -> Slave vsanqa27) <<<<< Why did this happen ?<br>
><br>
> attach the file mentioned on the next line and we might be able to find out<br>
><br>
<br>
</div>Quick question, do you understand what globally-unique=false means and are you sure you want it?<br>
If the answer is 'yes and yes', are you sure that your agent is using crm_master correctly?<br>
<br>
If I run, 'tools/crm_simulate -Sx ~/Downloads/pe-input-818.bz2 -s | grep vha-924bf029-93a2-41a0-adcf-f1c1a42956e5', I see:<br>
<br>
vha-924bf029-93a2-41a0-adcf-f1c1a42956e5:0 promotion score on vsanqa28: INFINITY<br>
vha-924bf029-93a2-41a0-adcf-f1c1a42956e5:1 promotion score on vsanqa27: 2<br>
<br>
<br>
Although much of the 'INFINITY' is probably from:<br>
<br>
<rsc_location id="location-ms-924bf029-93a2-41a0-adcf-f1c1a42956e5-vsanqa28-INFINITY" node="vsanqa28" rsc="ms-924bf029-93a2-41a0-adcf-f1c1a42956e5" score="INFINITY"/><br>
<br>
This is somewhat odd to include for a clone/master resource.<br>
<br>_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br></blockquote></div><br></div>