On 27 May 2014, at 2:37 pm, K Mehta <kiranmehta1...@gmail.com> wrote:

> So is globally-unique=false correct in my case ?

yes

> 
> 
> On Tue, May 27, 2014 at 5:30 AM, Andrew Beekhof <and...@beekhof.net> wrote:
> 
> On 26 May 2014, at 9:56 pm, K Mehta <kiranmehta1...@gmail.com> wrote:
> 
> > What I understand from "globally-unique=false" is as follows
> > 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).
> >
> > In case of my resource, agent on all nodes execute same "command" to find 
> > score.
> > 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
> > is reported, agent on other node will just delete the score using 
> > /usr/sbin/crm_master -Q -l reboot -D in monitor entry point
> >
> >
> >
> >
> > 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.
> >
> >         pcs -f $CLUSTER_CREATE_LOG constraint  location vha-${uuid}  
> > prefers $node1
> >         pcs -f $CLUSTER_CREATE_LOG constraint  location vha-${uuid}  
> > prefers $node2
> >         pcs -f $CLUSTER_CREATE_LOG constraint  location ms-${uuid}  prefers 
> > $node1
> >         pcs -f $CLUSTER_CREATE_LOG constraint  location ms-${uuid}  prefers 
> > $node2
> >
> > Any issue here ?
> 
> Perhaps this is not intuitive but you'd need to specify 'avoids' constraints 
> for the nodes it must not run on.
> 'prefers' only says that of all the available nodes, this one is the best.
> 
> >
> > Regards,
> >  Kiran
> >
> >
> >
> > On Mon, May 26, 2014 at 8:54 AM, Andrew Beekhof <and...@beekhof.net> wrote:
> >
> > On 22 May 2014, at 11:20 pm, K Mehta <kiranmehta1...@gmail.com> wrote:
> >
> > > > May 13 01:38:36 vsanqa28 pengine[4310]:   notice: LogActions: Promote 
> > > > vha-924bf029-93a2-41a0-adcf-f1c1a42956e5:0#011(Slave -> Master vsanqa28)
> > > > 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 ?
> > >
> > > attach the file mentioned on the next line and we might be able to find 
> > > out
> > >
> >
> > Quick question, do you understand what globally-unique=false means and are 
> > you sure you want it?
> > If the answer is 'yes and yes', are you sure that your agent is using 
> > crm_master correctly?
> >
> > If I run, 'tools/crm_simulate -Sx ~/Downloads/pe-input-818.bz2 -s | grep 
> > vha-924bf029-93a2-41a0-adcf-f1c1a42956e5', I see:
> >
> > vha-924bf029-93a2-41a0-adcf-f1c1a42956e5:0 promotion score on vsanqa28: 
> > INFINITY
> > vha-924bf029-93a2-41a0-adcf-f1c1a42956e5:1 promotion score on vsanqa27: 2
> >
> >
> > Although much of the 'INFINITY' is probably from:
> >
> >       <rsc_location 
> > id="location-ms-924bf029-93a2-41a0-adcf-f1c1a42956e5-vsanqa28-INFINITY" 
> > node="vsanqa28" rsc="ms-924bf029-93a2-41a0-adcf-f1c1a42956e5" 
> > score="INFINITY"/>
> >
> > This is somewhat odd to include for a clone/master resource.
> >
> > _______________________________________________
> > Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
> > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> >
> > Project Home: http://www.clusterlabs.org
> > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> > Bugs: http://bugs.clusterlabs.org
> >
> >
> > _______________________________________________
> > Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
> > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> >
> > Project Home: http://www.clusterlabs.org
> > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> > Bugs: http://bugs.clusterlabs.org
> 
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
> 
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Reply via email to