[Linux-cluster] cluster service development - question

Patrick Caulfield pcaulfie at redhat.com
Wed Oct 5 07:00:09 UTC 2005


Lon Hohberger wrote:
> On Tue, 2005-10-04 at 12:40 -0400, Lon Hohberger wrote:
> 
>>On Tue, 2005-10-04 at 17:50 +0200, Christian Niessner wrote:
>>
>>>hi,
>>>
>>>i'm currently developing a cluster service for the cluster release 
>>>1.00.00. It's using libmagma for messaging and node membership 
>>>maintainance, and these parts work really well.. But i also have to
>>>maintain a list of all configured nodes.
>>>
>>>What is the 'best practice' to get this list? (Node id and name would be
>>>fine...) It doesn't seem do be possible with libmagma...
> 
> 
> Ugh, I read this wrong.
> 
> Here you go.  It's part of a rewrite of clustat which has "how to get
> this stuff from ccsd" built right in.  I haven't committed this yet, but
> will soon as part of a larger clustat rewrite.
> 
> ccs_member_list() returns cluster_member_list_t *.
> 
> build_member_list does that, but compares it against who is in the
> configuration (and in this case, who is running rgmanager).  It's kind
> of hackish the way I'm overloading the cm_state field with a bunch of
> bitflags, but it works.
> 

Just to point out that the next cman version (the userland daemon on head of
CVS) will behave as you want - ie requesting the members list will retrieve all
the nodes known to CCS.

-- 

patrick




More information about the Linux-cluster mailing list