[Pacemaker] Question about crm_mon -n option

Andrew Beekhof andrew at beekhof.net
Mon Apr 8 02:48:01 UTC 2013


On 01/04/2013, at 7:32 PM, Kazunori INOUE <inouekazu at intellilink.co.jp> wrote:

> (13.03.27 18:01), Andrew Beekhof wrote:
>> On Wed, Mar 27, 2013 at 7:44 PM, Kazunori INOUE
>> <inouekazu at intellilink.co.jp> wrote:
>>> Hi,
>>> 
>>> I'm using pacemaker-1.1 (c7910371a5. the latest devel).
>>> 
>>> In the case of globally-unique="false", instance numbers are appended
>>> to the result of "crm_mon -n", as with in the case of
>>> globally-unique="true".
>>> Is this specifications?
>>> 
>>> $ crm configure show
>>>  :
>>> primitive prmDummy ocf:pacemaker:Dummy
>>> clone clnDummy prmDummy ¥
>>>         meta clone-max="2" clone-node-max="1" globally-unique="false"
>>> 
>>> $ crm_mon -n
>>>  :
>>> Node dev1 (3232261525): online
>>>         prmDummy:1      (ocf::pacemaker:Dummy): Started
>>> Node dev2 (3232261523): online
>>>         prmDummy:0      (ocf::pacemaker:Dummy): Started
>>> 
>>> 
>>> Case without -n, instance numbers are not appended.
>> 
>> Yeah, instance numbers shouldn't show up here
> 
> I wrote the patch which does not display instance numbers, when
> globally-unique is false.
> https://github.com/inouekazu/pacemaker/commit/c9b0ef4e4b3be336a31d83a9297ef23f1adf7c8b
> 

I followed up on the above url

> The following files are results of crm_mon before and after applying
> this patch.
> - before_applying.log
> - after_applying.log
> 
> The cluster configuration is as follows.
> 
> $ crm configure show
> node $id="3232261523" dev2
> node $id="3232261525" dev1
> primitive prmDummy ocf:pacemaker:Dummy ¥
>        op monitor on-fail="restart" interval="10s"
> primitive prmDummy2 ocf:pacemaker:Dummy ¥
>        op monitor on-fail="restart" interval="10s"
> primitive prmStateful ocf:pacemaker:Stateful ¥
>        op monitor interval="11s" role="Master" on-fail="restart" ¥
>        op monitor interval="12s" role="Slave" on-fail="restart"
> ms msStateful prmStateful ¥
>        meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true" globally-unique="false"
> clone clnDummy prmDummy ¥
>        meta clone-max="2" clone-node-max="1" globally-unique="false"
> property $id="cib-bootstrap-options" ¥
>        dc-version="1.1.10-1.el6-e8caee8" ¥
>        cluster-infrastructure="corosync" ¥
>        no-quorum-policy="ignore" ¥
>        stonith-enabled="false" ¥
>        startup-fencing="false"
> rsc_defaults $id="rsc-options" ¥
>        resource-stickiness="INFINITY" ¥
>        migration-threshold="1"
>> 
>>> 
>>> $ crm_mon -r
>>>  :
>>> Full list of resources:
>>> 
>>>  Clone Set: clnDummy [prmDummy]
>>>      Started: [ dev1 dev2 ]
>>> 
>>> ----
>>> Best Regards,
>>> Kazunori INOUE
>>> 
>>> 
>>> _______________________________________________
>>> 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://bugs.clusterlabs.org
>> 
>> _______________________________________________
>> 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://bugs.clusterlabs.org
> <before_applying.log><after_applying.log>_______________________________________________
> 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://bugs.clusterlabs.org





More information about the Pacemaker mailing list