Using bcache with root on LVM logical volume fails to boot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools |
New
|
Undecided
|
Unassigned |
Bug Description
I attempted to create an installation that used bcache (with a partition on an SSD, /dev/nvme0n1p1, as the cache device) to accelerate access to an LVM logical volume (/dev/mapper/
Thus, it looks as if update-initramfs is preparing a /boot/initrd.img file that has the necessary LVM tools, but is not actually activating the LVM when root (/) is on bcache with the backing store in a logical volume.
FWIW, this looks a lot like bug #931929, but I discovered that bug after removing LVM from the configuration of the server I was setting up, so I don't know if the workaround there would work. (Also, that bug does not involve bcache.) The server on which I discovered the bug is now configured without LVM, but I have access to a test system with an SSD and a regular disk, if reproducing the problem is important.
I am successfully running a system with several devices, including root, set up on bcache with both backing and cache devices on LVM volumes. Initiramfs scripts are not bright enough to detect this. Details are discussed in bug #1573982. Adding line "vgchange -ay" to /usr/share/ initramfs- tools/scripts/ local-top/ lvm2, as suggested in comment 8 on that bug, works.