From: Alain Fauconnet <alain@ait.ac.th>
To: linux-kernel@vger.kernel.org
Subject: raidautorun gets ENODEV when called from initrd in 2.6.15.4
Date: Tue, 14 Mar 2006 17:02:17 +0700 [thread overview]
Message-ID: <20060314100217.GF7987@ait.ac.th> (raw)
Hello readers,
Would someone please hint me on why a box using SATA (sata_sil -
wouldn't think it's relevant) and software RAID-1 can't boot with RAID
support as modules? (using an initrd image).
I get "raidautorun: RAID_AUTORUN failed: 19" when nash runs
"raidautorun /dev/md0" at boot, therefore the root filesystem fails to
mount and the system panics. At this point I have confirmed that the
physical member devices/partitions have been detected OK and that the
md-mod.ko and raid1.ko modules load without error.
The same box boots OK with RAID support compiled static, but well,
I like the dynamic way and I'd love to understand what's going on.
>From what I can see (confirmed by adding a "printk" there),
that part of md.c is hit:
/* if we are not initialised yet, only ADD_NEW_DISK, STOP_ARRAY,
* RUN_ARRAY, and SET_BITMAP_FILE are allowed */
if (!mddev->raid_disks && cmd != ADD_NEW_DISK && cmd != STOP_ARRAY
&& cmd != RUN_ARRAY && cmd != SET_BITMAP_FILE) {
printk(KERN_ALERT "md: cmd = %d\n", cmd); /* added by me */
err = -ENODEV;
goto abort_unlock;
The IOCTL command received is 0x914 (RAID_AUTORUN) which makes sense
to me. So the issue is that mddev->raid_disks is NULL, I guess.
Trustix Linux 2.2
Kernel 2.6.15.4 compiled from source
Mkinitrd 4.1.18-2 RPM from FC3 installed in place
of the original one that comes with Trustix because it can't
manage .ko modules.
The same setup works on a Dell Poweredge 750 in an almost
exacty similar configuration (2 SATA disks - Intel chipset in this case,
with software RAID, kernel 2.6.13).
I'm stuck. I'd be very grateful to receive any hint.
Greets,
_Alain_
reply other threads:[~2006-03-14 10:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060314100217.GF7987@ait.ac.th \
--to=alain@ait.ac.th \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox