Bug 476866

Summary: mkinitrd fails to include the correct modules when creating initrd image for raid5
Product: Red Hat Enterprise Linux 5 Reporter: Joel Andres Granados <jgranado>
Component: mkinitrdAssignee: Peter Jones <pjones>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: low    
Version: 5.3CC: bmr, borgan, syeghiay, vietp
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-20 22:12:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 475385    
Bug Blocks:    
Attachments:
Description Flags
PATCH to mkinitrd fixing this none

Description Joel Andres Granados 2008-12-17 16:22:53 UTC
Description of problem:
After installation of a system with raid5 the initial boot kernel panics because it does not activate the raid devce correctly.

After some inspection to the initrd image I managed to make it installabe by adding the following modules: dm-mem-cache.ko, dm-region_hash.ko, dm-message.ko, dm-raid45.ko.  I had to add the modules to the /lib dir in the initrd image and call these modules from the init script.  after this was done everything was fine and dandy.

Comment 3 Hans de Goede 2008-12-17 18:30:57 UTC
Created attachment 327271 [details]
PATCH to mkinitrd fixing this

Comment 6 Peter Jones 2008-12-17 19:54:34 UTC
Fixed in mkinitrd-5.1.19.6-44 .

Comment 9 errata-xmlrpc 2009-01-20 22:12:51 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0237.html

Comment 10 Bryn M. Reeves 2009-02-13 18:05:24 UTC
This breaks mkinitrd for older kernels as it unconditionally tries to include modules that don't exist:

# mkinitrd /boot/initrd-2.6.18-92.1.22.el5.img 2.6.18-92.1.22
No module dm-mem-cache found for kernel 2.6.18-92.1.22.el5, aborting.

1306 if [ "$withdmraid" == "1" ]; then
1307     findmodule dm-mem-cache
1308     findmodule dm-region_hash
1309     findmodule dm-message
1310     findmodule dm-raid45
1311 fi

Comment 11 Viet Phan 2009-03-12 20:53:45 UTC
Kernel: Linux node41 2.6.18-92.1.13.el5 #1 SMP Thu Sep 4 03:51:21 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
rpm -qa | grep initrd
mkinitrd-5.1.19.6-44
mkinitrd-5.1.19.6-44

Is this bug fixed? The patch didn't work for me. I have a script to make new initrd. And here is the output: 
cmdline is /sbin/mkinitrd -f  --preload=libata  --preload=sd_mod  --preload=dm-mirror  --preload=dm-mod  --preload=raid1  --preload=ata_piix  --preload=sata_nv  --preload=sata_svw  --preload=sata_sil  --preload=3w-9xxx  --preload=scsi_mod  --preload=mptscsih  --preload=mptfc  --preload=aic79xx  --preload=aacraid  initrd-2.6.18-92.1.13.el5.img 2.6.18-92.1.13.el5
Make a new initrd with this command line? y|N y
making initrd.
No module dm-mem-cache found for kernel 2.6.18-92.1.13.el5, aborting.

Comment 12 Viet Phan 2009-03-12 21:04:30 UTC
Kernel: Linux node41 2.6.18-92.1.13.el5 #1 SMP Thu Sep 4 03:51:21 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
rpm -qa | grep initrd
mkinitrd-5.1.19.6-44
mkinitrd-5.1.19.6-44

Is this bug fixed? The patch didn't work for me. I have a script to make new initrd. And here is the output: 
cmdline is /sbin/mkinitrd -f  --preload=libata  --preload=sd_mod  --preload=dm-mirror  --preload=dm-mod  --preload=raid1  --preload=ata_piix  --preload=sata_nv  --preload=sata_svw  --preload=sata_sil  --preload=3w-9xxx  --preload=scsi_mod  --preload=mptscsih  --preload=mptfc  --preload=aic79xx  --preload=aacraid  initrd-2.6.18-92.1.13.el5.img 2.6.18-92.1.13.el5
Make a new initrd with this command line? y|N y
making initrd.
No module dm-mem-cache found for kernel 2.6.18-92.1.13.el5, aborting.