linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Phil Turmel <philip@turmel.org>
To: Dylan Distasio <interzone@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Question on md126 / md127 issues
Date: Sat, 28 May 2011 18:47:59 -0400	[thread overview]
Message-ID: <4DE17B9F.8060909@turmel.org> (raw)
In-Reply-To: <BANLkTimirBv2O_s91wKjf56OAt4m-iTnWg@mail.gmail.com>

Hi Dylan,

On 05/28/2011 06:15 PM, Dylan Distasio wrote:
> Thanks, Neil.
> 
> I think running mkinitrd was probably the only thing required for a
> fix after reading your response.  I had an older array on the same box
> that was completely removed, but maybe something was leftover in
> initrd.
> 
> My detailed understanding of the initrd process is fairly limited.  I
> didn't realize there was a separate mdadm.conf that was used when
> booting that is separate from the one in /etc.

Many people miss this.  Modern linux distributions, with few exceptions, use a three stage boot process: 1) kernel, 2) initramfs, then 3) real root FS.  If there is no mdadm.conf in an initramfs at all, but the initramfs has raid support, mdadm will assemble everything it finds.  It will assign the first array to md127 and count backwards from there.

You might like this description of the process from the kernel docs:

http://www.kernel.org/doc/Documentation/filesystems/ramfs-rootfs-initramfs.txt

The money quote:

"An initramfs archive is a complete self-contained root filesystem for Linux."

If you change anything on your system that might impact the boot process, you're probably going to need to run "update-initramfs", or your distribution's equivalent.

HTH,

Phil

      reply	other threads:[~2011-05-28 22:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-26  4:10 Question on md126 / md127 issues Dylan Distasio
2011-05-27 21:36 ` NeilBrown
2011-05-28 22:15   ` Dylan Distasio
2011-05-28 22:47     ` Phil Turmel [this message]

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=4DE17B9F.8060909@turmel.org \
    --to=philip@turmel.org \
    --cc=interzone@gmail.com \
    --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).