linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: Neil Brown <neilb@cse.unsw.edu.au>
Cc: linux-raid@vger.kernel.org
Subject: Re: Linux RAID metadata format docs?
Date: Fri, 21 Nov 2003 20:18:02 -0500	[thread overview]
Message-ID: <3FBEB94A.7070500@pobox.com> (raw)
In-Reply-To: <16312.25308.143873.280291@notabene.cse.unsw.edu.au>

Neil Brown wrote:
> On Friday November 14, jgarzik@pobox.com wrote:
> 
>>Do any docs exist, that describe the on-disk md format?
> 
> 
> Not to my knowledge, beyond source code.

Thanks.


> I don't see that knowledge of the RAID format is needed by the bios.
[...]
>  The boot sector tries to load a kernel or second-stage off "0x80" as
>  normal.   The kernel or second-stage understands raid and makes sure
>  the correct root is assembled.
> 
>  Some daemon monitors drives that fail, and attempts to over-write
>  sector 0 of any such drive that is a boot-candidate.
> 
> This wouldn't quite do the right thing if:
>   The "first" drive goes off line for some reason.
>   A new kernel/second-stage is installed on remaining drive(s).
>   machine is rebooted and "first" drive comes back online during the
>   boot.
> 
> The "first" drive will look OK, but will not have a current kernel on
> it.
> 
> Does any of this make sense?
> 
> Were you thinking of some RAID level other than RAID1?


All RAID levels, 1 and 5 particularly.  To me, it boils down to a 
choice:  support in the bootloader, and/or support in the BIOS.  If the 
BIOS vendor is willing to support the _Linux_ md format, it seems to me 
that's a more reliable place to handle booting and failover in RAID1 or 
5.  OTOH, while coordinating multiple boot loaders (since one must 
predict behavior of lilo/grub in all raid1/5 failure scenarios) seems 
much more difficult, but ultimate not specific to one vendor.

By tradition the BIOS/firmware is the software that loads the 
bootloader.  It feels like the right thing to me, for that to continue 
even in the face of RAID arrays.  Users of "fake RAID" (i.e. the vendors 
market it as RAID, even though it's really software RAID) are used to 
their RAID arrays being accessible as a BIOS device, as weird as that 
may be :)

	Jeff






      reply	other threads:[~2003-11-22  1:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-14 18:50 Linux RAID metadata format docs? Jeff Garzik
2003-11-14 19:31 ` Matti Aarnio
2003-11-14 20:28   ` Jeff Garzik
2003-11-14 21:48   ` Hendrik Visage
2003-11-17  5:55 ` Neil Brown
2003-11-22  1:18   ` Jeff Garzik [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=3FBEB94A.7070500@pobox.com \
    --to=jgarzik@pobox.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@cse.unsw.edu.au \
    /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).