Bug 14488 - Build LVM2 with the --with-cache=internal option
Summary: Build LVM2 with the --with-cache=internal option
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: Thomas Backlund
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
Depends on:
Blocks:
 
Reported: 2014-11-09 02:44 CET by Theodoros Kalamatianos
Modified: 2020-03-25 15:34 CET (History)
1 user (show)

See Also:
Source RPM: lvm2
CVE:
Status comment:


Attachments

Description Theodoros Kalamatianos 2014-11-09 02:44:40 CET
LVM2 has supported the creation of cache LVs for some time, but that feature requires that it is built with the `--with-cache=internal' configure option.

While this is a somewhat experimental feature, there are many references to its existence in both the lvm(8) man page and the help output of some utilities e.g. `lvconvert --help', even when it is disabled. Building LVM2 with this option would allow testers to try out this feature, without requiring a special build of LVM2 - AFAIK it is already enabled by default in at least Debian Testing and Redhat/Centos 7.
Manuel Hiebel 2014-11-10 23:23:03 CET

Keywords: (none) => Triaged
Assignee: bugsquad => tmb

Comment 1 Theodoros Kalamatianos 2015-01-03 18:33:16 CET
I converted my Cauldron root filesystem to lvmcache. Performance-wise it seems to be worth it, even in the default write-through mode. That said, I had to jump through a few hoops:

- I updated the LVM2 package to version 2.02.114, which enables lvmcache by default and fixes quite a few things.

- I compiled and installed the thin-provisioning-tools package (https://github.com/jthornber/thin-provisioning-tools) - see below.

- I modified the dracut configuration to include the thin-provisioning-tools binaries in the initramfs, using the `install_items+=...' option. Without this modification the system would not boot, because lvm2 requires these binaries when a thin or cached LV exists.

- I regenerated the initramfs and ran `lilo' to update the bootloader - GRUB users would not need this step.

All in all, it still seems quite easy to shoot yourself in the foot with lvmcache. The LVM2 people are making good progress w.r.t. making things safer, but it's probably not for the faint-hearted just yet.
Comment 2 Thierry Vignaud 2020-03-25 15:34:28 CET
Thomas, this is done by other distros, eg: Fedora.
I think it's safe to add --with-cache=internal
Though it's now the default, so we can close this bug as OLD

Resolution: (none) => OLD
CC: (none) => thierry.vignaud
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.