[Pacemaker] promote a ms resource to a node

Pavlos Parissis pavlos.parissis at gmail.com
Sun Oct 3 21:52:30 UTC 2010


just for the record here is the constraint
location master-location ms-drbd_02 \
        rule $id="master-rule" $role="Master" 1000: #uname eq node-03
Cheers,
Pavlos


On 30 September 2010 10:24, Andrew Beekhof <andrew at beekhof.net> wrote:

> A resource location constraint with role=Master would do it.
> Not sure about the shell syntax though.
>
> On Tue, Sep 28, 2010 at 3:51 PM, Pavlos Parissis
> <pavlos.parissis at gmail.com> wrote:
> > Hi,
> >
> > Let's say that I have manually demote a ms resource and have the
> following
> > situation
> > crm(live)resource# demote ms-drbd_01
> > crm(live)resource# status
> > [..snip..]
> > Master/Slave Set: ms-drbd_01
> >      Slaves: [ node-01 node-03 ]
> >
> > How can I manually promote ms-drbd_01 on node-03?
> > The promote command doesn't accept node names and the move command on
> > ms-drbd_01 says can't find resource.
> >
> > Cheers,
> > Pavlos
> >
> >
> > _______________________________________________
> > Pacemaker mailing list: Pacemaker at 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
> >
> >
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20101003/5a13d08f/attachment-0001.html>


More information about the Pacemaker mailing list