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

Bug 122028

Summary: problem with software raid with newest baselayout
Product: Gentoo Linux Reporter: Marcin Kryczek (RETIRED) <mkay>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marcin Kryczek (RETIRED) gentoo-dev 2006-02-07 12:48:22 UTC
my software raid isn't started with with new version of baselayout. i use mdadm and my array aren't assembled. the last version, which works fine for me was 1.12.0_pre12 (not even in portage anymore - i keep it in overlay...)
Comment 1 SpanKY gentoo-dev 2006-02-07 19:52:32 UTC
you know better, we cant "fix" bugs without any real info

mdadm + two devices work for me with baselayout-1.12.0_pre15
Comment 2 Marcin Kryczek (RETIRED) gentoo-dev 2006-02-12 14:58:41 UTC
yes i know, but i was hoping you can give me some hints how to debug it;>
arrays aren't assembled somehow and thus booting fails while mounting filesystems. I can type root's password and manualy assemble arrays with `mdadm --assemble ... ` and then mount everything without problems with `mount -a `

my mdadm configuration is really trivial:
<root@CogES>/usr/portage: grep -v ^# /etc/mdadm.conf
DEVICE /dev/hd*
ARRAY /dev/md0 devices=/dev/hda5,/dev/hdd1
ARRAY /dev/md1 devices=/dev/hda6,/dev/hdd2

if you insist i can provide you the exact error message (but as far as i've noticed there's nothing, what can be helpfull)
Comment 3 SpanKY gentoo-dev 2006-02-12 15:20:06 UTC
post your boot output ... my system it looks like:
* Mounting proc at /proc
* Mounting sysfs at /sys
* Mounting /dev for udev
* Seeding /dev with needed nodes
* Setting up proper hotplug agent
*   Setting /sbin/udevsend as hotplug agent
* Starting udevd
* Populating /dev with existing devices with udevstart
* Letting udev process events
* Finaliazing udev configuration
* Mounting devpts ad /dev/pts
* Startuing up RAID devices (mdadm)
* Activating (possible) swap
* Checking root filesystem
* Remounting root filesystem read/write
* Setting hostname to qemu
* Checking all filesystems
/dev/md0: clean ...
/dev/md1: clean ...
Comment 4 Marcin Kryczek (RETIRED) gentoo-dev 2006-02-12 15:25:01 UTC
ok - i've installed newer baselayout and made reboot. it looks like the autodetectng of raid magic doesn't work for me. i do not have "Starting up Raid devices (mdadm)" with new versions. it's loading modules and just after it "checking all filesystems"
Comment 5 SpanKY gentoo-dev 2006-02-12 16:49:31 UTC
do you have any raid-*.sh files in /lib/rcscripts/addons/ ?
Comment 6 Marcin Kryczek (RETIRED) gentoo-dev 2006-02-13 00:55:20 UTC
yes, raid-start.sh and raid-stop.sh
Comment 7 SpanKY gentoo-dev 2006-02-13 06:53:30 UTC
when you login, does this work:
(source /sbin/functions.sh ; source /lib/rcscripts/addons/raid-start.sh)
Comment 8 Kenton Groombridge 2006-04-07 20:27:05 UTC
This is a common problem if your partition id's are not set to fd  "Linux raid auto".
Comment 9 Marcin Kryczek (RETIRED) gentoo-dev 2006-04-13 07:12:39 UTC
vapier: sorry for inactivity in this bug, but i was really busy lately. anyway - now i'll have time to test stuff if you've got some ideas.

about comment #7: this works for me. i've temporary added sourcing this file to /etc/init.d/checkfs to be able to boot and mount my partitions. 

comment #8: i've changed my partitions id's to FD, but that doesn't fixed the problem
Comment 10 SpanKY gentoo-dev 2006-04-13 07:50:59 UTC
what do you have RC_VOLUME_ORDER set to in /etc/conf.d/rc ?
Comment 11 Roy Marples (RETIRED) gentoo-dev 2006-08-16 08:43:26 UTC
Maybe a dupe and fixed by bug #144017 ?
Comment 12 Roy Marples (RETIRED) gentoo-dev 2007-01-10 12:50:01 UTC
baselayout-1.13.0_alpha11 may fix things for you as we split raid stuff into it's own volumes init script.

Re-open if you disagree