Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503016 - sys-fs/lvm2: remove lvmetad from initd "need"
Summary: sys-fs/lvm2: remove lvmetad from initd "need"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-28 08:37 UTC by Amadeusz Żołnowski (RETIRED)
Modified: 2016-01-02 20:23 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amadeusz Żołnowski (RETIRED) gentoo-dev 2014-02-28 08:37:57 UTC
Upstream clearly states that if lvmetad is run only if "use_lvmetad" is enabled in lvm.conf, but for default it's not, so lvmetad shouldn't be started by default.

"use_lvmetad" is well described in comments, so if user enables it he/she is well informed that he/she should rc-update-add lvmetad, too.

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-05-18 23:14:53 UTC

*** This bug has been marked as a duplicate of bug 500732 ***
Comment 2 kfm 2014-09-07 10:36:53 UTC
Jeroen, please re-open this bug. It is not a duplicate of bug 500732. Both Amadeusz and El Goretto are correct. lvmetad is not a hard requirement, yet Gentoo currently depends on it in the lvm runscript. Worse, Gentoo's default lvm.conf specifies "use_lvmetad = 0". This combination is wrong and causes the various userspace tools to print this warning:

  WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!

This warning is a serious matter. If the user decides to define "use_lvmetad = 1" - an ostensibly reasonable course of action given that Gentoo forcibly starts lvmetad - but neglects to restart lvmetad prior to this change, it may be that corruption can occur:

  https://bugzilla.redhat.com/show_bug.cgi?id=837603

In summary:

  * lvmetad is optional
  * Gentoo should, in turn, allow for lvmetad to be optional

Were it not for the above warning, I would have suggested a revision bump to change the default value of use_lvmetad until the above two points are hammered out. Clearly, that's not an option.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2015-12-24 01:06:16 UTC

*** This bug has been marked as a duplicate of bug 525614 ***
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2016-01-02 20:23:00 UTC
Thanks for the report. Fixed in http://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef66b97c3c1778c3c8e9f96d80057ad7a1a3e2f4