[Bug 218167] New: mkinitrd does not create a working initrd for booting an lvm2 volume on top of raid
https://bugzilla.novell.com/show_bug.cgi?id=218167 Summary: mkinitrd does not create a working initrd for booting an lvm2 volume on top of raid Product: SUSE Linux 10.1 Version: Final Platform: i686 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: leskets@web.de QAContact: qa@suse.de The initrd that mkinitrd-1.2-106.22 creates fails to activate the md-devices, so that lvm2 cannot be started. Enabling raid manually, like this does not help: mkinitrd -f "md lvm2" However the following fix makes things work: *** mkinitrd.orig 2006-10-13 18:33:23.000000000 +0200 --- mkinitrd 2006-11-04 13:54:36.549978810 +0100 *************** *** 1316,1321 **** --- 1316,1322 ---- add_module raid5 add_module linear need_mdadm=1 + root_md=1 ;; *) error 6 "invalid feature $f" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218167 cthiel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |hare@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218167 hare@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|hare@novell.com |bwalle@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218167 bwalle@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from bwalle@novell.com 2006-11-13 02:19 MST ------- fixed, should appear in next release -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218167 hare@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | ------- Comment #2 from hare@novell.com 2006-11-16 00:42 MST ------- Reopened. This is the wrong fix. mkinitrd should detect the required features on it's own. If it doesn't we'll have to fix the detection mechanism, not blindly add yet another tweak. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218167 bwalle@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bwalle@novell.com |hare@novell.com Status|REOPENED |NEW -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218167 hare@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #3 from hare@novell.com 2006-11-20 03:05 MST ------- We have ported quite some fixes from SLES10 for Beta3. So please retest with Beta3 and reopen when the bug persists. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218167 leskets@web.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Component|Basesystem |Basesystem Product|SUSE Linux 10.1 |openSUSE 10.2 Resolution|FIXED | ------- Comment #4 from leskets@web.de 2006-12-08 07:34 MST ------- The issue persists with opensuse 10.2 (mkinitrd-1.2-149, lvm2-2.02.13-10). I call mkinitrd without -f. (The switch still does not help anyways.) The script does not recognize the md device because vgs needs somewhat obscure parameters: vgs --noheadings --options devices $vg_root The value of $vg_root on my computer and the name of my volume group is "local". However: vgs --noheadings --options devices local does not print any devices, while both vgs --noheadings --options devices vgs --noheadings --options devices /dev/local work. The remaining changes in my patch make mkinitrd include only the raid kernel modules that are needed. *** mkinitrd.orig 2006-11-25 13:19:37.000000000 +0100 --- mkinitrd 2006-12-08 14:50:52.643359901 +0100 *************** *** 3134,3141 **** if [ "$root_lvm2" ] ; then # Check for LVM2 on top of md md_list= ! pv_list=$(vgs --noheadings --options devices $vg_root 2> /dev/null | sed -n "s@ *\(/dev/.*\)([0-9]*) *@\1@p" | sort | uniq) ! for dev in $pv_list ; do case $dev in /dev/dm-*) root_dmraid=1 --- 3134,3146 ---- if [ "$root_lvm2" ] ; then # Check for LVM2 on top of md md_list= ! if [ "$vg_root" ] ; then ! vg_root_tmp="/dev/$vg_root" ! else ! vg_root_tmp="" ! fi ! pv_list=$(vgs --noheadings --options devices $vg_root_tmp 2> /dev/null | sed -n "s@ *\(/dev/.*\)([0-9]*) *@\1@p" | sort | uniq) ! for dev in $pv_list ; do case $dev in /dev/dm-*) root_dmraid=1 *************** *** 3147,3152 **** --- 3152,3158 ---- md_dev=${dev##/dev/} md_list="$md_dev $md_list" eval md_conf_${md_dev}=\"$mdconf\" + root_md=1 fi ;; esac *************** *** 3218,3236 **** domu_modules="$domu_modules dm-mod dm-snapshot" fi - if [ -n "$md_list" ] ; then - # load all md modules - add_module raid0 - add_module raid1 - add_module raid5 - add_module linear - if [ -f $root_dir/etc/mdadm.conf ] ; then - # make sure we're overriding the default here - md_list= - root_md=1 - fi - fi - if [ -n "$root_dm" ] ; then # Add all dm modules dm_modules=$(dmsetup table | cut -f 4 -d ' ' | sort | uniq) --- 3224,3229 ---- -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218167 dirk2@wor.net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dirk2@wor.net ------- Comment #5 from dirk2@wor.net 2006-12-23 05:33 MST ------- I had another problem with mkinitrd. Maybe my solution also solves this problem here: The expr-Command was missing in /bin, so the line "rootdev=$(expr substr $o 6 99)" issued an error, $rootdev was empty and so the "root=XXX" kernel paramter was ignored. Adding a line "cp_bin /usr/bin/expr $tmp_mnt/bin" in an early place in mkinitrd solved this problem. Will this be fixed in a future version? Dirk -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218167 hare@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |ASSIGNED ------- Comment #6 from hare@novell.com 2007-01-31 06:22 MST ------- Yes, of course will this be fixed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218167#c9 Hannes Reinecke <hare@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #9 from Hannes Reinecke <hare@novell.com> 2007-07-20 05:39:43 MST --- Updated mkinitrd rpm & patchinfo submitted. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=218167#c10 Bernhard Bender <bernhard.bender@web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhard.bender@web.de --- Comment #10 from Bernhard Bender <bernhard.bender@web.de> 2007-07-28 15:55:55 MST --- Would this possibly also fix bug 267722 and bug 245660 (Resume from suspend to disk fails)? I have been running an LVM (not LVM2) over MD system with SuSE 10.2 for a long time now, but the resume from suspend2disk did not work. Thank you Bernhard -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=218167#c11 --- Comment #11 from Hannes Reinecke <hare@novell.com> 2007-07-30 00:55:31 MST --- LVM? I doubt we still ship the user-space tools to manage it ... But if you're using the standard LVM2 tools shipped with 10.2 you should be okay. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com