Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17747 - Shutdown breaks with 1.4_rc2 installed with root on md raid 0
Summary: Shutdown breaks with 1.4_rc2 installed with root on md raid 0
Status: RESOLVED DUPLICATE of bug 12612
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-18 07:14 UTC by Ashton Mills (RETIRED)
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ashton Mills (RETIRED) gentoo-dev 2003-03-18 07:14:31 UTC
The shutdown process sometimes halts with a "Please enter the root password 
(Or press Ctrl-D to continue):".

* Gentoo 1.4_rc2 is installed with root on a 2 drive software IDE RAID0 using 
reiserfs. (/boot is on a third separate non-raided hard drive.)
* Kernel 2.4.20-gentoo-r1
* The problem appears randomly (I haven't been able to wilfully reproduce it)
* Allowing the shutdown to continue the machine does, mostly (see below), 
shutdown ok
* The last message on screen is 'md' reporting that the RAID drives have been 
set to read-only mode. This is not a complete md shutdown compared to stopping 
an md raid from a Gentoo boot where root is not on the raid itself (I have 
1.4_rc2 also installed on the separate third drive for maintenance/testing).

Figuring perhaps that the RAID isn't getting enough time to shutdown I edited 
halt.sh and added a few more sleeps and syncs at the end of the shutdown 
cycle, but the problem still occurs.

This is just a minor concern, no data has been lost yet. However:

Using a development kernel (have tried 2.5.60 to 2.5.64) on the same system 
the shutdown process is different.

* The md driver reports that md0 is 'still in use' as the final lines on 
screen before the machine reboots.
* This has caused a total filesystem crash on one occasion. Reiserfs could not 
adequately recover and I had to do a complete re-install.

What do I expect using a development kernel right? My concern is that Gentoo 
currently isn't playing nicely when it uses an md raid as root, even with the 
stable kernel. The development kernels work fine from my maintenance boot on 
the third hard drive where the md0 raid can be started/stopped separately. 

So I'm assuming there's something going awry in the shutdown scripts when 
Gentoo has its root on the raid, showing up midly with the 2.4 kernel and 
severely with 2.5.

Happy to test any suggested changes to see if we can fix this.

Ashton
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-03-18 17:05:40 UTC

*** This bug has been marked as a duplicate of 12612 ***