[lvm-devel] Wrong locking type on local VG when clvm is used?

Alasdair G Kergon agk at redhat.com
Fri May 19 03:05:20 UTC 2017


On Fri, May 19, 2017 at 10:46:09AM +0800, Eric Ren wrote:
> Looking a bit at the code, LVM decides the locking_type on command basis, i.e. wrapping
> the command around with init_locking() and fin_locking(). So, I'm thinking if we can change
> locking_type selection to VG basis. For example, "vgchange -ay local_vg cluster_vg", we can
> decide the locking_type for each VG. Well, it's overkill if all the VGs are either local, or
> cluster... Is this reasonable, or something worth to do?

Probably not - it's not really worth that level of complexity - we
considered it several times before but always ruled it out.  (We did
tackle part of the difficulty when introducing lvmlockd though.)  The
workaround is easy - you already found one - and I thought the case you
described used to work anyway (if the daemon couldn't find the object
referenced it used to trigger a scan so it would find it) so it might
just be needing some bug fix or varied configuration setting. 

Alasdair




More information about the lvm-devel mailing list