Bug#375340: generated initrd does not include dm-snapshot module

Micha Lenk micha at lenk.info
Tue Sep 26 23:15:05 UTC 2006


Hi Sam,

On Sun, Jun 25, 2006 at 12:27:37PM +0100, Sam Morris wrote:
> clone 375116 -1 -2 -3 -4
> 
> [...]
> 
> reassign -2 initrd-tools
> retitle -2 generated initrd does not include dm-snapshot module
> found -2 0.1.81.1
> 
> [...]
> 
> The bug in initrd-tools is that generated images don't include the
> dm-snapshot kernel module; if a system crashes or is rebooted while a
> snapshot LV is present, it will be unable to boot up.

I don't know whether this really is a bug in initrd-tools or rather a
bug in lvm-common.

I just ran into trouble because there is an lvm snapshot of the /var
partition but since the module dm-snapshot was not automatically loaded
at boot time the kernel was not able to mount /var.

I helped me in adding following line after line no. 10 in
/etc/init.d/lvm:

modprobe dm-snapshot >/dev/null 2>&1

An other solution to this problem would be to add dm-snapshot to
/etc/modules, but I don't believe that this would be the best solution
for this bug.

I suggest to reassign this bug to lvm-common and to fix the bug there.

Have a nice day
  Micha



More information about the pkg-lvm-maintainers mailing list