Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8679 - /ec/init.d/checkfs doesn't start software RAID-volumes
Summary: /ec/init.d/checkfs doesn't start software RAID-volumes
Status: RESOLVED DUPLICATE of bug 5310
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-03 03:09 UTC by Wilke Havinga
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 Wilke Havinga 2002-10-03 03:09:05 UTC
Problem: My root partition is not on RAID, but I created a software-RAID that
holds my /home. Even though /etc/init.d/checkfs is run on startup and says
'Starting software RAID' - the software raid does not actually get started.

Cause: Lines 31-47 of /etc/init.d/checkfs should handle starting software
raid-volumes. The problem is in line 36:

if [ -n ${ACTIVE_RAID} ]

This code seems to always return true, even if ACTIVE_RAID is actually 'empty'
(which it is in my case because no RAID devices have been started yet).
Therefore, not the '/sbin/raidstart --all' clause gets executed (as should
happen), but the upper part of the if-clause, which then doesn't find anything
to start.

Fix: Changing the offending line into this:

if [ -n "$ACTIVE_RAID" ]

did the trick for me - now the '/sbin/raidstart --all' clause gets executed when
ACTIVE_RAID is actually empty.

I guess people who have RAID on / don't encounter this problem, which is why it
might have gone undetected so far (?)
Comment 1 SpanKY gentoo-dev 2002-10-03 13:50:59 UTC
http://bugs.gentoo.org/show_bug.cgi?id=5310#c31 

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