[Linux-cluster] Starting with DLM

Lon Hohberger lhh at redhat.com
Thu Apr 5 21:03:18 UTC 2007


On Thu, Apr 05, 2007 at 09:37:12PM +0200, Christos Triantafillou wrote:
> Hello,
> 
> What are the necessary steps to configure DLM on RHEL4 and use it from an 
> application?

(a) set up a cluster the normal way
(b) write code

You'll have to create/open a lockspace first (APIs are provided to do
that).

Here's some example code with synchronous wrappers around the DLM APIs:

http://sources.redhat.com/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/clulib/lock.c?rev=1.3.4.1&content-type=text/x-cvsweb-markup&cvsroot=cluster

And the original DLM test code:

http://sources.redhat.com/cgi-bin/cvsweb.cgi/cluster/dlm/tests/usertest/?cvsroot=cluster

-- Lon

-- 
Lon Hohberger - Software Engineer - Red Hat, Inc.




More information about the Linux-cluster mailing list