From: Luca Berra <bluca@comedia.it>
To: linux-raid@vger.kernel.org
Subject: Re: question on how to (correctly) build an initrd for a root disk on a RAID1
Date: Mon, 27 Oct 2008 08:16:13 +0100 [thread overview]
Message-ID: <20081027071613.GA8197@maude.comedia.it> (raw)
In-Reply-To: <9f5edc120810261937w339f2919p4f7ce82fbcaf2149@mail.gmail.com>
On Sun, Oct 26, 2008 at 10:37:17PM -0400, Joe Landman wrote:
>Hi folks:
>
> We have been trying to build an operational initrd for a root drive
>on software RAID1.
>
> Basic specs: 2.6.23.14 kernel (though same issues with 2.6.27.2
>kernel), on Centos 5.2, pair of SATA drives using libata and other
>drivers, x86_64 architecture.
Custom built kernel or centos provided kernel?
> Using mkinitrd --with=raid1 --with=libata --with=sd_mod ...
>
> I am getting a kernel panic on switchroot, it can't find the root
>file system. I did some googling, but could not find a similar
>example.
unfortunately the kernel panic is a consequence of a previous error,
someone willing to help you would need to know everithing that was
spitted between the 'starting red-hat nash' message and the kernel
panic.
>Do I need to create a specialized init script? Is there an
usually no, redhat/centos initrd should be able to boot from a raid1
>example of this somewhere? I did look at the Documentation/md.txt and
>tried the
>
> md=0,sda1,sdb1 md=1,sda2,sdb2 md=2,sda3,sdb3
if you are using the centos kernel, raid is modular and this parameter
has no effect.
mkinitrd should use your /etc/mdadm.conf to discover how the array
should be laid out.
> kernel boot time option, to no avail. Persistent superblocks are
>on, and the devices have the right partition types.
partition types do not matter anymore.
>
> Any suggestions? More things to read?
is your fstab correct?
is your mdadm.conf correct?
are you loading the correct drivers for your hd controller?
mkinitrd is a shell script, if all else fails, run it with sh -x and
read the output.
L.
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
next prev parent reply other threads:[~2008-10-27 7:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-27 2:37 question on how to (correctly) build an initrd for a root disk on a RAID1 Joe Landman
2008-10-27 3:22 ` Steve Cousins
2008-10-27 3:26 ` Joe Landman
2008-10-27 7:16 ` Luca Berra [this message]
2008-10-27 12:34 ` Joe Landman
2008-10-27 16:36 ` Brendan Conoboy
2008-10-27 17:56 ` Doug Ledford
2008-10-27 18:08 ` Joe Landman
2008-10-27 18:02 ` Joe Landman
2008-10-28 6:43 ` Luca Berra
2008-10-28 12:20 ` Joe Landman
2008-10-29 1:42 ` Joe Landman
2008-10-29 2:03 ` Joe Landman
2008-10-29 2:49 ` Joe Landman
2008-10-29 12:13 ` Tru Huynh
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=20081027071613.GA8197@maude.comedia.it \
--to=bluca@comedia.it \
--cc=linux-raid@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;
as well as URLs for NNTP newsgroup(s).