[Pacemaker] We cannot stop specific clone resources by a crm_resource order.

Andrew Beekhof andrew at beekhof.net
Mon Feb 22 20:16:36 UTC 2010


On Wed, Feb 17, 2010 at 9:11 AM,  <renayama19661014 at ybb.ne.jp> wrote:
> Hi,
>
> We cannot stop specific clone resources by a crm_resource order.
>
> ============
> Last updated: Wed Feb 17 16:56:26 2010
> Stack: openais
> Current DC: srv01 - partition with quorum
> Version: 1.0.7-0d97eb2e69533c1352044394c88d7c05802a09a5
> 2 Nodes configured, 2 expected votes
> 2 Resources configured.
> ============
>
> Online: [ srv01 srv02 ]
>
>  Resource Group: test_group
>     prmDummy1  (ocf::heartbeat:Dummy): Started srv01
>  Clone Set: clone_stonith
>     Started: [ srv02 srv01 ]
>
> try 1) In the case of the next, all clones stop.
>
>    [root at srv01 ~]# crm_resource --meta -r clone_stonith-primitive -p target-role -v stopped
>    [root at srv01 ~]# crm_mon -1
>    ============
>    Last updated: Wed Feb 17 17:00:49 2010
>    Stack: openais
>    Current DC: srv01 - partition with quorum
>    Version: 1.0.7-0d97eb2e69533c1352044394c88d7c05802a09a5
>    2 Nodes configured, 2 expected votes
>    2 Resources configured.
>    ============
>
>    Online: [ srv01 srv02 ]
>
>     Resource Group: test_group
>         prmDummy1  (ocf::heartbeat:Dummy): Started srv01
>
> try 2) In the case of the next, I cannot stop one clone.
>
>    [root at srv01 ~]# crm_resource --meta -r clone_stonith-primitive:0 -p target-role -v stopped
>    Error performing operation: The object/attribute does not exist
>
>
> Can we stop one clone by a crm_resouce command and a crm command?
> Or is it necessary to set -INIFINITY in a rule?

Right, a location rule

> Possibly was the clone the specifications that cannot stop individually?

Correct.
You can however do:
   crm configure location not-here-please clone_stonith -inf: somenode




More information about the Pacemaker mailing list