[Linux-cluster] Determining name of current cluster
Patrick Caulfield
pcaulfie at redhat.com
Thu Oct 28 14:33:09 UTC 2004
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.
patrick
More information about the Linux-cluster
mailing list