Bug 471517

Summary: notebook and nehalem boot failure
Product: [Fedora] Fedora Reporter: Zhang Yanmin <yanmin_zhang>
Component: mkinitrdAssignee: Peter Jones <pjones>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: dcantrell, hdegoede, katzj, pjones, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://bugzilla.kernel.org/show_bug.cgi?id=11899
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-07-14 14:33:32 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:
Attachments:
Description Flags
The patch to fix boot random failure when root=/dev/sdaXXX
none
Patch to fix boot failure with root=LABEL=/
none
Here is the kernel patch
none
New patch for kernel to register MAJOR 259 as a block device none

Description Zhang Yanmin 2008-11-14 03:20:53 UTC
Created attachment 323523 [details]
The patch to fix boot random failure when root=/dev/sdaXXX

Description of problem:
I have T61 notebook with FedoraCore 8 x86-64 installed. With kernel 2.6.28-rc, system boot fails.

Then, I try it on another Nehalem machine with Fedora Core 9 installed and system also boot fails.

Version-Release number of selected component (if applicable):


How reproducible:
Use the config file of FC8/FC9 kernel to compile kernel 2.6.28-rc4. Then boot kernel with root=LABEL=/, system always can't boot. initrd init reports switchroot fails.

If boot with root=/dev/sda1, system boot randomly fails. Mostly, boot for 5 times and fails once.

Another guy reports the same issue with his notebook.


Steps to Reproduce:
1.Use the config file of FC8/FC9 kernel to compile kernel 2.6.28-rc4
2.#make modules_install install
3.#reboot
4. If root=/dev/sdaXXX, change it to root=LABEL=/ (depends on the real label on your system). retry.
  
Actual results:
with root=LABEL=/, system always can't boot. initrd init reports switchroot fails.

If boot with root=/dev/sda1, system boot randomly fails.

Expected results:
System should always boot successfully.


Additional info:
I instrument kernel and nash and locate the root cause. I worked out 2 patches for nash and 1 patch for kernel 2.6.28-rc4.
Pls. go through http://bugzilla.kernel.org/show_bug.cgi?id=11899

Comment 1 Zhang Yanmin 2008-11-14 03:28:15 UTC
Created attachment 323524 [details]
Patch to fix boot failure  with root=LABEL=/

If we need boot system with root=LABEL=/, we need this patch and previous patch. Both them need to be applied to nash.

In addition, we need a kernel. I will attach it.

Comment 2 Zhang Yanmin 2008-11-14 03:32:29 UTC
Created attachment 323525 [details]
Here is the kernel patch

If we fix boot failure when root=LABEL=/, we need apply previous 2 patches to nash, and this patch to kernel 2.6.28-rc4.

Comment 3 Zhang Yanmin 2008-11-14 07:36:16 UTC
Created attachment 323544 [details]
New patch for kernel to register MAJOR 259 as a block device

New patch for kernel to register MAJOR 259 as a block device

Thank Tejun Heo and Alexey Dobriyan for their good comments. The new patch
moves the registration to genhd_device_init.

Comment 4 Jeremy Katz 2009-05-06 15:54:34 UTC
Is there anything still needed here?  The first part I know is taken care of with current mkinitrd

Comment 5 Bug Zapper 2009-06-10 03:15:30 UTC
This message is a reminder that Fedora 9 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 9.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '9'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 9's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 9 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 6 Bug Zapper 2009-07-14 14:33:32 UTC
Fedora 9 changed to end-of-life (EOL) status on 2009-07-10. Fedora 9 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.