#989221 lvm2: Missing kernel modules for Cache LVs and RAID1 LVs with DM integrity in initrd

Package:
lvm2
Source:
lvm2
Description:
Linux Logical Volume Manager
Submitter:
Jakob Meng
Date:
2021-05-29 07:51:04 UTC
Severity:
normal
Tags:
#989221#5
Date:
2021-05-29 07:34:30 UTC
From:
To:
To activate Cache LVs or RAID1 LVs with DM integrity on system
boot it is required to add additional kernel modules to the
initial ramdisk. If those modules are not present during boot,
LVs will not be activated and LVM's initrd scripts indicate
this in syslog with messages such as:

  lvm[***]:   pvscan[***] VG *** skip autoactivation.

Please find the attached patch which adds those missing modules
to the initrd. Instead of adding a dozen of modules precautionary
maybe it should be documented somewhere that modules have to
be added to /etc/initramfs-tools/modules in case of strange
autoactivation issues? Or maybe I am missing something and it is
documented already?