Re: [Cluster-devel] DLM Shutdown

2016-02-10 Thread David Teigland
On Wed, Feb 10, 2016 at 02:33:49AM +0100, Andreas Gruenbacher wrote: > never actively releases existing lockspaces. This means that as soon > as any application creates the default lockspace (via libdlm), or if > an application doesn't release any lockspaces it creates, dlm_controld > will never

Re: [Cluster-devel] DLM Shutdown

2016-02-10 Thread Andreas Gruenbacher
On Wed, Feb 10, 2016 at 6:38 PM, David Teigland wrote: > On Wed, Feb 10, 2016 at 02:33:49AM +0100, Andreas Gruenbacher wrote: >> never actively releases existing lockspaces. This means that as soon >> as any application creates the default lockspace (via libdlm), or if >> an

Re: [Cluster-devel] DLM Shutdown

2016-02-10 Thread David Teigland
On Wed, Feb 10, 2016 at 09:38:58PM +0100, Andreas Gruenbacher wrote: > On Wed, Feb 10, 2016 at 9:18 PM, David Teigland wrote: > > On Wed, Feb 10, 2016 at 08:48:12PM +0100, Andreas Gruenbacher wrote: > >> When a shutdown is requested, shouldn't dlm_controld really release > >>

Re: [Cluster-devel] DLM Shutdown

2016-02-10 Thread David Teigland
On Wed, Feb 10, 2016 at 08:48:12PM +0100, Andreas Gruenbacher wrote: > When a shutdown is requested, shouldn't dlm_controld really release > lockspaces in a similar way as well? You could probably do that if you check that the lockspace is managing no local locks (which would be a pain). If

Re: [Cluster-devel] DLM Shutdown

2016-02-10 Thread Andreas Gruenbacher
On Wed, Feb 10, 2016 at 9:18 PM, David Teigland wrote: > On Wed, Feb 10, 2016 at 08:48:12PM +0100, Andreas Gruenbacher wrote: >> When a shutdown is requested, shouldn't dlm_controld really release >> lockspaces in a similar way as well? > > You could probably do that if you

Re: [Cluster-devel] DLM Shutdown

2016-02-10 Thread Andreas Gruenbacher
On Wed, Feb 10, 2016 at 10:16 PM, David Teigland wrote: > OK, yes, but we've wandered into the weeds here. dlm_controld isn't > involved in lockspace lifetimes, that's the application/libdlm side. > The question is what behavior the program creating/removing the lockspace >

[Cluster-devel] DLM Shutdown

2016-02-09 Thread Andreas Gruenbacher
Hi Dave and Chrissie, I recently started looking into how DLM works, with the help of Chrissie's "Programming Locking Applications" handbook (http://people.redhat.com/ccaulfie/docs/rhdlmbook.pdf). I didn't find a simple way for testing DLM in a minimal setup: DLM requires dlm_controld which