Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 8679

Summary: /ec/init.d/checkfs doesn't start software RAID-volumes
Product: Gentoo Linux Reporter: Wilke Havinga <w.k.havinga>
Component: [OLD] Core systemAssignee: Martin Schlemmer (RETIRED) <azarah>
Severity: normal    
Priority: High    
Version: 1.4_rc1   
Hardware: x86   
OS: Linux   
Package list:
Runtime testing required: ---

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 

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