[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#841423: LVM: raid1 kernel module not loaded



Control: reassign -1 dmsetup 2:1.02.133-1

On Thu, 2016-10-20 at 14:27 +0200, Cesare Leonardi wrote:
> Package: initramfs-tools
> Version: 0.125
> Severity: normal
> 
> Initially i thought to file this bug to lvm2 package but now i suspect
> it's more related with kernel modules dependencies and the
> manual_add_modules() hook of initramfs-tools.
> 
> Suppose your system has lvm2 installed but not mdadm.
> Now search for the raid modules installed in the initramfs image:
> lsinitramfs IMG | grep raid
> You will notice that there are various raid modules loaded but not
> raid1.
> 
> LVM is a very flexible system that let's you convert your volume setup
> from linear to raidN and viceversa, with mounted filesystem.
>
> So if you, for example, try to you convert your single disk volume to
> a two disks raid1 volume, you will have an unbootable system, due to
> failure of volume activation caused by the missing raid1 module.
> 
> The workaround it to add "raidi1" to /etc/initramfs-tools/modules and
> update the initramfs before rebooting.
[...]

OK, so there is a hidden module dependency: dm-raid depends on md-mod,
which will request other md-RAID modules as needed.  We can't discover
that through static inspection of the modules or looking at sysfs.

I think this ought to be handled in dmsetup's initramfs hook.

Ben.

-- 
Ben Hutchings
Never put off till tomorrow what you can avoid all together.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: