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

Bug#868268: initramfs-tools: Please add raid1 to the module added when MODULES=most



Le 14/07/2017 à 15:01, Ben Hutchings a écrit :
> Control: tag -1 moreinfo
>
> On Thu, 2017-07-13 at 23:57 +0200, Jean-Yves LENHOF wrote:
>> Package: initramfs-tools
>> Version: 0.130
>> Severity: normal
>>
>> Dear Maintainer,
>>
>> When using raid1 lvm root, the raid1 module is not added to the initrd
>> built (raid456 module is in).
>> This will make the system unbootable and goind to the initramfs debug mode
>> Please add raid1 in when selecting MODULES=most
> [...]
>
> initramfs-tools doesn't add layered device drivers itself, because it
> requires special tools to set them up.  The packages containing those
> tools should install hooks that add both drivers and tools to the
> initramfs.
>
> Is dmraid installed on this system, or only dmsetup and lvm2?  I'm a
> bit puzzled as to how raid1 is being set up.
>
> Ben.

Hi,

Only dmsetup and lvm2
I've created the server just for the test with virt-manager
Just after being installed I did transform the logical volume to have it
mirrored with this command :
lvconvert -m 1 --type raid1 /dev/VGroot/LVslash
After wait for the copy to be made in background. (Watching with the
command lvs the progress)
When the copy is made reboot.
The system is unbootable and go to initramfs shell

I did not know for hooks, and I think in fact you were right
Perhaps this bug should be reaffected to the lvm2 package
I think the hook script which need to be changed to add raid1 module is
/usr/share/initramfs-tools/hooks/lvm2 (in the 3 last lines)

Regards,

JYL


Reply to: