grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: lsorense@csclub.uwaterloo.ca (Lennart Sorensen)
To: The development of GNU GRUB <grub-devel@gnu.org>
Cc: Neil Brown <neilb@suse.de>,
	linux-raid@vger.kernel.org, John Sheu <john.sheu@gmail.com>
Subject: Re: Software RAID and Fakeraid
Date: Mon, 31 Jan 2011 12:03:49 -0500	[thread overview]
Message-ID: <20110131170349.GR343@caffeine.csclub.uwaterloo.ca> (raw)
In-Reply-To: <4D46E6D7.2000205@cfl.rr.com>

On Mon, Jan 31, 2011 at 11:44:07AM -0500, Phillip Susi wrote:
> I know you went on vacation over the new year, but it has been about two
> months now so I figured I would try to revive this conversation.
> 
> Having collected my thoughts, this is what I propose:
> 
> I believe that right now, grub recognizes an md device that is built on
> partitions, and installs to the underlying disks.  When the device is
> built on the whole disks, it needs to divide into two categories:
> 
> 1)  Native md metadata.  Grub should ask mdadm for a suitable location
> to embed the core image on each component disk.  This can be satisfied
> with a 32kb area at the end ( or maybe the beginning ) of the disk that
> is not used by the array ( or the metadata ).  This will work for all
> native formats except for 1.1, for the obvious reason that it is using
> the boot block.
> 
> 2)  Other metadata formats.  Either assume or explicitly be told by
> mdadm that these formats are fakeraid and thus understood by the bios
> int 13.  Grub installs to the array as a whole, just like it does today
> when they are handled by dmraid.  If it is known that it is not bios
> supported, then error out.  In the future this could be supported by
> creating additional grub modules that understand those metadata formats.
> 
> One question that needs answered for method 1 is what should the
> partition table look like?  Should grub, or maybe mdadm, create a
> protective mbr when using the whole disk, similar to the one used with GPT?

I think in the case of BIOS raid, the bios will boot from the raid
device, so installing to the boot area of the raid device makes sense
(/dev/mapper/whatever or similar).

In the case of software md raid on partitions, the BIOS boots from the
boot area of the disks directly, so installing to all member disks makes
sense (/dev/sda, /dev/sdb, etc).

If you do software md raid on whole disks, I am not even sure if the
BIOS could boot from that, since there won't be a partition table, no
partition marked bootable (which some BIOSs requrie), sector 0 may not
even contain boot code.  Not sure there is anyway whole device software
raid makes sense for a bootable drive at all.  It makes sense for data
drives perhaps.  I just don't see this as a candidate for booting at all.

Now that's all assuming x86 BIOS based booting.  For other systems
supported by grub, things could be different perhaps.

-- 
Len Sorensen


  reply	other threads:[~2011-01-31 17:03 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-25 10:26 Software RAID and Fakeraid John Sheu
2010-11-30 19:54 ` Phillip Susi
2010-11-30 22:25   ` Neil Brown
2010-12-02 22:13     ` Phillip Susi
2010-12-03  1:36       ` Neil Brown
2010-12-03  3:15         ` Phillip Susi
2010-12-08 22:43           ` Neil Brown
2010-12-09 19:48             ` Phillip Susi
2011-01-31 16:44               ` Phillip Susi
2011-01-31 17:03                 ` Lennart Sorensen [this message]
2011-01-31 19:21                   ` Phillip Susi
2011-01-31 22:12                     ` Lennart Sorensen
2011-02-01  1:31                       ` Phillip Susi
2011-02-01 11:04                         ` Michal Suchanek
2011-02-01 16:26                         ` Lennart Sorensen
2011-02-02  0:08                           ` Phillip Susi
2011-02-02  3:22                             ` NeilBrown
2011-02-02 15:34                               ` Phillip Susi
2011-02-02 16:09                           ` hansbkk
2010-12-04  4:34     ` Leslie Rhorer
2010-12-07 17:21       ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-12-25 19:55 ` Vladimir 'φ-coder/phcoder' Serbinenko

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=20110131170349.GR343@caffeine.csclub.uwaterloo.ca \
    --to=lsorense@csclub.uwaterloo.ca \
    --cc=grub-devel@gnu.org \
    --cc=john.sheu@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    /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).