linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] A couple of questions on locking library
@ 2019-05-31  7:13 Shawn Guo
  2019-05-31  8:38 ` Zdenek Kabelac
  2019-05-31 14:38 ` David Teigland
  0 siblings, 2 replies; 5+ messages in thread
From: Shawn Guo @ 2019-05-31  7:13 UTC (permalink / raw)
  To: David Teigland, Zdenek Kabelac; +Cc: linux-lvm

Hi David, Zdenek,

Comparing to stable-2.02 branch, I noticed that there are significant
changes around locking infrastructure on master branch.  I have a
couple of questions regarding to these changes.

1. I see External Locking support was removed as part of clvmd
removal. What's the reason for dropping External Locking support?  I'm
asking because we are investigating the possibility to use hardware
assisted locking for cluster, in form of External Locking extension.

2. It seems there have never been real support for LV (Logic Volume)
locking.  On stable-2.02 branch, the LV locking interface is used as
activation path instead of real locking on LV.  And on master branch,
activation path gets separated off from locking infrastructure.  As
the result, the LV interface is dropped completely from locking
infrastructure.  My question is why there have never been LV locking
support.  Is the LV locking support an invalid requirement at all?  Or
it's just because no one cares about it enough to add the support?

Thanks for your time, and appreciate any comment you would give here.

Regards,
Shawn

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] A couple of questions on locking library
  2019-05-31  7:13 [linux-lvm] A couple of questions on locking library Shawn Guo
@ 2019-05-31  8:38 ` Zdenek Kabelac
  2019-05-31 14:47   ` Shawn Guo
  2019-05-31 14:38 ` David Teigland
  1 sibling, 1 reply; 5+ messages in thread
From: Zdenek Kabelac @ 2019-05-31  8:38 UTC (permalink / raw)
  To: LVM general discussion and development, Shawn Guo, David Teigland

Dne 31. 05. 19 v 9:13 Shawn Guo napsal(a):
> Hi David, Zdenek,
> 
> Comparing to stable-2.02 branch, I noticed that there are significant
> changes around locking infrastructure on master branch.  I have a
> couple of questions regarding to these changes.
> 
> 1. I see External Locking support was removed as part of clvmd
> removal. What's the reason for dropping External Locking support?  I'm
> asking because we are investigating the possibility to use hardware
> assisted locking for cluster, in form of External Locking extension.
> 
> 2. It seems there have never been real support for LV (Logic Volume)
> locking.  On stable-2.02 branch, the LV locking interface is used as
> activation path instead of real locking on LV.  And on master branch,
> activation path gets separated off from locking infrastructure.  As
> the result, the LV interface is dropped completely from locking
> infrastructure.  My question is why there have never been LV locking
> support.  Is the LV locking support an invalid requirement at all?  Or
> it's just because no one cares about it enough to add the support?
> 
> Thanks for your time, and appreciate any comment you would give here.

With stable-2.02 branch - there was always per-LV locking.
The 'state' of the LV was matching state of lock.

http://people.redhat.com/agk/talks/CLVM-UKUUG2007/

See the 'DLM – Distributed Lock Manager'

The lock however was always took only for top-level LV - never for those 
component LVs.

--

There is however believe, that users no longer use volumes with shared 
activation (active at one time on multiple hosts) - so lvm2 is now being moved
transformed to theoretically less complex locking scheme...

Regards

Zdenek

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] A couple of questions on locking library
  2019-05-31  7:13 [linux-lvm] A couple of questions on locking library Shawn Guo
  2019-05-31  8:38 ` Zdenek Kabelac
@ 2019-05-31 14:38 ` David Teigland
  1 sibling, 0 replies; 5+ messages in thread
From: David Teigland @ 2019-05-31 14:38 UTC (permalink / raw)
  To: Shawn Guo; +Cc: linux-lvm, Zdenek Kabelac

On Fri, May 31, 2019 at 03:13:39PM +0800, Shawn Guo wrote:
> Hi David, Zdenek,
> 
> Comparing to stable-2.02 branch, I noticed that there are significant
> changes around locking infrastructure on master branch.  I have a
> couple of questions regarding to these changes.
> 
> 1. I see External Locking support was removed as part of clvmd
> removal. What's the reason for dropping External Locking support?  I'm
> asking because we are investigating the possibility to use hardware
> assisted locking for cluster, in form of External Locking extension.

You could create other multi-host locking mechanisms in lvmlockd.
There are currently two, see lvmlockd-dlm.c and lvmlockd-sanlock.c.
Dave

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] A couple of questions on locking library
  2019-05-31  8:38 ` Zdenek Kabelac
@ 2019-05-31 14:47   ` Shawn Guo
  2019-06-03 14:08     ` David Teigland
  0 siblings, 1 reply; 5+ messages in thread
From: Shawn Guo @ 2019-05-31 14:47 UTC (permalink / raw)
  To: Zdenek Kabelac
  Cc: David Teigland, Shawn Guo, LVM general discussion and development

On Fri, May 31, 2019 at 10:38:18AM +0200, Zdenek Kabelac wrote:
> Dne 31. 05. 19 v 9:13 Shawn Guo napsal(a):
> >Hi David, Zdenek,
> >
> >Comparing to stable-2.02 branch, I noticed that there are significant
> >changes around locking infrastructure on master branch.  I have a
> >couple of questions regarding to these changes.
> >
> >1. I see External Locking support was removed as part of clvmd
> >removal. What's the reason for dropping External Locking support?  I'm
> >asking because we are investigating the possibility to use hardware
> >assisted locking for cluster, in form of External Locking extension.
> >
> >2. It seems there have never been real support for LV (Logic Volume)
> >locking.  On stable-2.02 branch, the LV locking interface is used as
> >activation path instead of real locking on LV.  And on master branch,
> >activation path gets separated off from locking infrastructure.  As
> >the result, the LV interface is dropped completely from locking
> >infrastructure.  My question is why there have never been LV locking
> >support.  Is the LV locking support an invalid requirement at all?  Or
> >it's just because no one cares about it enough to add the support?
> >
> >Thanks for your time, and appreciate any comment you would give here.
> 
> With stable-2.02 branch - there was always per-LV locking.
> The 'state' of the LV was matching state of lock.
> 
> http://people.redhat.com/agk/talks/CLVM-UKUUG2007/
> 
> See the 'DLM – Distributed Lock Manager'

That's only for lvmlockd but not clvmd, right?  IIUC, LV locking
semantic is used as activation for clvmd on stable-2.02.

> 
> The lock however was always took only for top-level LV - never for those
> component LVs.
> 
> --
> 
> There is however believe, that users no longer use volumes with shared
> activation (active at one time on multiple hosts) - so lvm2 is now being
> moved
> transformed to theoretically less complex locking scheme...

So back to my question 1, it looks that "less complex" means it's not
possible to use an external locking extension any more, right?  lvmlockd
becomes the only clustering locking solution.  While it supports sanlock
and dlm locking library, there is no extension support for plugging an
external locking library in.

Is my understanding above correct?  I'm just trying to understand the
feasibility of adding external locking library under new lvm2 locking
scheme.  Thanks much!

Regards,
Shawn

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] A couple of questions on locking library
  2019-05-31 14:47   ` Shawn Guo
@ 2019-06-03 14:08     ` David Teigland
  0 siblings, 0 replies; 5+ messages in thread
From: David Teigland @ 2019-06-03 14:08 UTC (permalink / raw)
  To: Shawn Guo; +Cc: LVM general discussion and development

On Fri, May 31, 2019 at 10:47:49PM +0800, Shawn Guo wrote:
> it's not possible to use an external locking extension any more, right? 

right

> lvmlockd becomes the only clustering locking solution.

right

> While it supports sanlock and dlm locking library, there is no extension
> support for plugging an external locking library in.

right

Dave

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-06-03 14:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-31  7:13 [linux-lvm] A couple of questions on locking library Shawn Guo
2019-05-31  8:38 ` Zdenek Kabelac
2019-05-31 14:47   ` Shawn Guo
2019-06-03 14:08     ` David Teigland
2019-05-31 14:38 ` David Teigland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).