linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luca Berra <bluca@comedia.it>
To: linux-raid@vger.kernel.org
Subject: Re: md extension to support booting from raid whole disks.
Date: Wed, 29 Apr 2009 09:45:59 +0200	[thread overview]
Message-ID: <20090429074559.GA25938@maude.comedia.it> (raw)
In-Reply-To: <49F78F26.2040909@zytor.com>

On Tue, Apr 28, 2009 at 04:20:06PM -0700, H. Peter Anvin wrote:
>Neil Brown wrote:
>> 
>> That only leaves the question of what happens when a spare is added to
>> the array - how does the grub data get written to the space on the
>> spare.
>> I would rather that grub were responsible for this, than for md to
>> treat that unused space as RAID1.
>> We already have a notification system based on "mdadm --monitor" to
>> process events.  We could possibly plug grub in to that somehow so
>> that it gets told to re-write all it's special blocks every time
>> something significant changes in the array.
>> 
>
>I have multiple issues with this concept (including promoting Grub2, but
>let's not get into that.)

I believe your only issue is promoting grub 2, everything else you say
does not seem to be backed by any other reason.
And, please, quit insulting people, it does no justice to your
intelligence acting like a child.

>For this to be reliable, there is only one sensible configuration, which
>is for /boot to be a RAID-1, which is better handled by -- guess what --
>partitioning systems; and we already have quite a few of those that work
>just fine, thank you.  Otherwise there WILL be configurations -- caused
>by controller failures if nothing else -- that simply will not boot even
>though the system is otherwise functional.  Promoting this kind of stuff
>is criminally stupid.

the very funny thing about this is that the solution you endorse works
in the very same way as the solution the op would like to see
implemented. (well at least a cleaned up version of it, if i read the
word cylinder one more time in AD 2009 i will scream :)

your 'only sensible configuration' puts a hunk of code at the beginning
on the disk, which the machine firmware will run when booting.
this particular piece of code has to be put there by something else than
mdadm.

in the partition table case, this piece of code is very limited and can
only access data on disk if firmware is able to.

the op idea is to put a larger block of code at the beginning of the
disk. We can safely assume that this larger block of code, being at the
_beginning_ of the disk is completely readable by the firmware,
this piece of code would be responsible for reading the raid array,
and loading a linux kernel from it.

It has its plus, while these are worth it vs another scheme is
debateable.

Personally I despise disk partitioning schemes, it is a concept that
should have died long ago, even GPT, while being more sensible than PC
partitions, is of no real use to me.  Ok on ia64 the firmware will read
a GPT partition table and load the EFI from a partition, so yes on
itaniums this would be the way to go, do we really care?

I stumbled upon a lovely failure scenario that shows even your scheme is
fragile at best.
Due to issue i would not dwell on here the first disk was kicked from the
raid1 containing /boot, but it was still very well readable by the bios.
result: i took a while realizing why the hell after upgrading the kernel
the system insisted on booting with the previous kernel ;)

also in your 'one sensible configuration' boot should not only be
raid-1, but it should also be entirely contained in the portion of the
disk accessible via int-13. i have seen distribution installers enforce
the first constraint. not the second.


Regards,
L.


-- 
Luca Berra -- bluca@comedia.it
         Communication Media & Services S.r.l.
  /"\
  \ /     ASCII RIBBON CAMPAIGN
   X        AGAINST HTML MAIL
  / \

  parent reply	other threads:[~2009-04-29  7:45 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-24 12:08 md extension to support booting from raid whole disks Daniel Reurich
2009-04-27 15:08 ` Goswin von Brederlow
2009-04-28  4:58   ` H. Peter Anvin
2009-04-28  6:26     ` Luca Berra
2009-04-28  9:35     ` Goswin von Brederlow
2009-04-28 11:21       ` Daniel Reurich
2009-04-28 17:36       ` H. Peter Anvin
2009-04-28 22:23         ` Daniel Reurich
2009-04-28 23:30           ` H. Peter Anvin
2009-04-29  0:02             ` Daniel Reurich
2009-04-29 11:32               ` John Robinson
2009-04-28 18:24     ` Dan Williams
2009-04-28 22:19       ` Daniel Reurich
2009-04-28 22:26         ` Dan Williams
2009-05-01 21:04           ` Goswin von Brederlow
2009-05-01 21:24             ` Dan Williams
2009-05-01 22:33               ` Goswin von Brederlow
2009-05-02 12:07                 ` John Robinson
2009-05-04 17:02                   ` Goswin von Brederlow
2009-05-05  9:31                   ` Michal Soltys
2009-04-28 23:05         ` Neil Brown
2009-04-28 23:20           ` H. Peter Anvin
2009-04-29  0:00             ` Daniel Reurich
2009-04-29  0:04               ` H. Peter Anvin
2009-04-29  0:20                 ` Daniel Reurich
2009-04-29  0:28                   ` H. Peter Anvin
2009-04-29  0:43                     ` Daniel Reurich
2009-04-29  6:43                       ` Gabor Gombas
2009-05-01 21:10                         ` Goswin von Brederlow
2009-05-01 22:36                           ` Rudy Zijlstra
2009-05-02  1:04                             ` Daniel Reurich
2009-05-02 17:02                               ` Michał Przyłuski
2009-05-03  1:33                                 ` Leslie Rhorer
2009-05-03  4:25                                   ` NeilBrown
2009-05-03 18:05                                     ` Leslie Rhorer
2009-05-04  3:04                                     ` Daniel Reurich
2009-05-08 21:50                                       ` Goswin von Brederlow
2009-05-08 22:16                                         ` NeilBrown
2009-05-08 22:29                                           ` Goswin von Brederlow
2009-05-12  5:39                                             ` Neil Brown
2009-05-12 19:44                                               ` Daniel Reurich
2009-05-13 11:12                                                 ` Neil Brown
2009-05-14  2:21                                                   ` Daniel Reurich
2009-05-15 16:13                                                   ` H. Peter Anvin
2009-05-13 12:15                                               ` Bill Davidsen
2009-05-08 22:06                                 ` Goswin von Brederlow
2009-05-09  7:20                                   ` Peter Rabbitson
2009-05-10  1:29                                     ` Goswin von Brederlow
     [not found]                             ` <87presxwu4.fsf@frosties.localdomain>
     [not found]                               ` <1241219902.9516.6.camel@poledra.romunt.nl>
     [not found]                                 ` <87bpq8n6ym.fsf@frosties.localdomain>
2009-05-04 20:57                                   ` Rudy Zijlstra
2009-05-04 22:33                                     ` Daniel Reurich
2009-05-05  0:26                                       ` John Robinson
2009-05-05  9:03                                         ` Keld Jørn Simonsen
2009-05-08 21:18                                     ` Goswin von Brederlow
2009-04-29 22:43                   ` md extension to support booting from raid whole disks, raid6, grub2, lvm2 Michael Ole Olsen
2009-05-01 21:36                     ` Goswin von Brederlow
2009-04-29  7:45             ` Luca Berra [this message]
2009-04-29 16:55               ` md extension to support booting from raid whole disks H. Peter Anvin
2009-04-29 20:38                 ` Luca Berra
2009-04-30  6:59               ` Gabor Gombas
2009-04-30  8:11                 ` Luca Berra
2009-04-30 13:01                   ` John Robinson
2009-04-28 23:41           ` Daniel Reurich
2009-04-29  0:01             ` H. Peter Anvin
2009-05-01 21:33           ` Goswin von Brederlow
2009-04-28  7:08   ` Daniel Reurich
2009-04-28 23:07 ` Neil Brown
2009-04-28 23:21   ` Daniel Reurich
2009-04-28 23:37   ` H. Peter Anvin
2009-04-29  0:05     ` Daniel Reurich
2009-04-29  0:06       ` H. Peter Anvin
2009-04-29  0:36         ` Daniel Reurich
2009-04-29  0:44           ` H. Peter Anvin
     [not found]             ` <1240968482.18303.1028.camel@ezra>
     [not found]               ` <49F7B162.8060301@zytor.com>
2009-04-29  2:08                 ` Daniel Reurich
2009-04-29  2:33                   ` H. Peter Anvin
2009-04-30  2:41             ` Daniel Reurich
2009-04-29  7:07           ` Gabor Gombas

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=20090429074559.GA25938@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).