[Pacemaker] Best way to find master node

Bob Schatz bschatz at yahoo.com
Thu Aug 26 21:01:01 EDT 2010


Thanks - filed as 2477

Thanks,

Bob


----- Original Message ----
From: Andrew Beekhof <andrew at beekhof.net>
To: The Pacemaker cluster resource manager <pacemaker at oss.clusterlabs.org>
Sent: Wed, August 25, 2010 11:22:24 PM
Subject: Re: [Pacemaker] Best way to find master node

On Wed, Aug 25, 2010 at 6:39 PM, Bob Schatz <bschatz at yahoo.com> wrote:
> Yes it does.

Ok.  Could you create a bugzilla for this please? I'll make sure it gets fixed.

> Here is output from a different cluster which is at the same 1.0.9.1 Pacemaker
> version.
>
> # crm_mon -n -1
> ============
> Last updated: Wed Aug 25 09:35:51 2010
> Stack: Heartbeat
> Current DC: mg-wd-wcaw30021216-0 (f4e5e15c-d06b-4e37-89b9-4621af05128f) -
> partition with quorum
> Version: 1.0.9-89bd754939df5150de7cd76835f98fe90851b677
> 2 Nodes configured, unknown expected votes
> 2 Resources configured.
> ============
>
> Node mg-wd-wcaw30021216-0 (f4e5e15c-d06b-4e37-89b9-4621af05128f): online
>        SSWD-WCAW30021216:0     (ocf::omneon:ss) Master
>        SSWD-WCAW30021767:0     (ocf::omneon:ss) Slave
> Node mg-wd-wcaw30021216-1 (856c1f72-7cd1-4906-8183-8be87eef96f2): online
>        SSWD-WCAW30021767:1     (ocf::omneon:ss) Master
>        SSWD-WCAW30021216:1     (ocf::omneon:ss) Slave
> [root at mg-WD-WCAW30021216-0 ~]# crm resource show
> INFO: building help index
>  Master/Slave Set: ms-SSWD-WCAW30021216
>     Masters: [ mg-wd-wcaw30021216-0 ]
>     Slaves: [ mg-wd-wcaw30021216-1 ]
>  Master/Slave Set: ms-SSWD-WCAW30021767
>     Masters: [ mg-wd-wcaw30021216-1 ]
>     Slaves: [ mg-wd-wcaw30021216-0 ]
> [root at mg-WD-WCAW30021216-0 ~]# crm resource status ms-SSWD-WCAW30021216
> resource ms-SSWD-WCAW30021216 is running on: mg-wd-wcaw30021216-0
> resource ms-SSWD-WCAW30021216 is running on: mg-wd-wcaw30021216-1
> [root at mg-WD-WCAW30021216-0 ~]# crm resource status ms-SSWD-WCAW30021767
> resource ms-SSWD-WCAW30021767 is running on: mg-wd-wcaw30021216-0
> resource ms-SSWD-WCAW30021767 is running on: mg-wd-wcaw30021216-1
> [root at mg-WD-WCAW30021216-0 ~]#
>
>
> Thanks,
>
> Bob
>
>
>
> ----- Original Message ----
> From: Andrew Beekhof <andrew at beekhof.net>
> To: The Pacemaker cluster resource manager <pacemaker at oss.clusterlabs.org>
> Sent: Tue, August 24, 2010 11:38:25 PM
> Subject: Re: [Pacemaker] Best way to find master node
>
> On Tue, Aug 24, 2010 at 12:37 AM, Bob Schatz <bschatz at yahoo.com> wrote:
>> I would like to find the master node for a resource.
>>
>> On 1.0.9.1, when I do:
>>
>>    # crm resource status ms-SSWD-WCAW30019072
>>    resource ms-SSWD-WCAW30019072 is  running on: box-0
>>    resource ms-SSWD-WCAW30019072 is  running on: box-1
>>
>> This does not tell me if it is master or slave.
>
> Does crm_mon indicate that either have been promoted to master?
>
>>
>> I found this thread:
>>
>>http://www.gossamer-threads.com/lists/linuxha/pacemaker/60434?search_string=crm_resource%20master%20;#60434
>>
>>4
>>
>>
>> but I could not find a bug filed.
>>
>> Can I file a bug for this?  Would it be on crm_resource?
>>
>> Is there any workaround for this?
>>
>>
>> Thanks,
>>
>> Bob
>>
>>
>>
>>
>> _______________________________________________
>> 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
>
>
>
>
>
> _______________________________________________
> 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



      




More information about the Pacemaker mailing list