[Linux-cluster] Determining name of current cluster

Jeff jeff at intersystems.com
Thu Oct 28 14:52:47 UTC 2004


Thursday, October 28, 2004, 10:33:09 AM, Patrick Caulfield wrote:

> On Thu, Oct 28, 2004 at 08:52:01PM +0800, David Teigland wrote:
>> On Thu, Oct 28, 2004 at 08:12:28AM -0400, Jeff wrote:
>> > Is ccs_get() the correct API to use to determine the name of the
>> > current cluster?
>> 
>> You could but the most correct method would be to get this from the
>> cluster manager (cnxman-socket.h until there's a libcman).  In the kernel
>> it's kcl_cluster_name(), but it looks like we haven't exported an
>> equivalent to userspace yet.

> I'm working on both, they should be ready RSN.

> If you're desperate, the quickest way of getting the cluster name into userland
> is to read /proc/cluster/status.

Thanks.







More information about the Linux-cluster mailing list