Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 514196 - sys-fs/lvm2: enable lvmetad when systemd USE flag is enabled
Summary: sys-fs/lvm2: enable lvmetad when systemd USE flag is enabled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-21 20:15 UTC by Pacho Ramos
Modified: 2014-07-30 17:24 UTC (History)
3 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 Pacho Ramos gentoo-dev 2014-06-21 20:15:46 UTC
Some days ago a lvm2 user added this to the wiki:
https://wiki.gentoo.org/wiki/Systemd#Using_LVM2_and_Initramfs

If you're using LVM you should also make sure that LVM is configured to start the lvmetad daemon because otherwise it might be unable to mount LVM filesystems during boot. If lvmetad is not started /dev/disk/by-uuid might not be populated with LVM partitions and systemd will be unable to mount them.
You can enable lvmetad by doing the following modification:
File/etc/lvm/lvm.conf
# Set use_lvmetad to '1' for systemd
use_lvmetad = 1

Since a systemd USE flag was now added due bug 493936, maybe this config could be changed depending on that USE flag

Thanks
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2014-07-30 17:24:16 UTC
(no revision bump because mirrors didn't have time to sync in-between)

  30 Jul 2014; Samuli Suominen <ssuominen@gentoo.org> lvm2-2.02.108.ebuild:
  Use /bin/true instead of /usr/bin/true in
  scripts/blk_availability_systemd_red_hat.service.in because Gentoo doesn't
  have the so called usr -merge wrt #517514 by Markos Chandras. Enable
  "use_lvmetad = 1" by default in lvm.conf with USE="systemd lvmetad -device-
  mapper-only" wrt #514196 by Pacho Ramos.

*lvm2-2.02.108 (30 Jul 2014)

  30 Jul 2014; Samuli Suominen <ssuominen@gentoo.org>
  +files/lvm2-2.02.108-example.conf.in.patch,
  +files/lvm2-2.02.108-static-pkgconfig-libs.patch, +lvm2-2.02.108.ebuild:
  Version bump. Fix configure logic for cache since it's tied to thin-
  provisioning-tools.