grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: [RFC] grub-install C rewrite
Date: Fri, 27 Sep 2013 00:15:24 +0200	[thread overview]
Message-ID: <5244B1FC.9050503@gmail.com> (raw)
In-Reply-To: <4A8339E2-1CD6-446C-96BC-8733A5C8D552@colorremedies.com>

[-- Attachment #1: Type: text/plain, Size: 2371 bytes --]

On 26.09.2013 22:51, Chris Murphy wrote:
> 
> On Sep 26, 2013, at 2:22 PM, Lennart Sorensen <lsorense@csclub.uwaterloo.ca> wrote:
> 
>> On Thu, Sep 26, 2013 at 08:49:52PM +0200, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
>>> This is interesting testcase which wasn't brought before. This would
>>> potentially involve creating several core.img or forcing UUID when using
>>> multiple devices. Again, pretty easy in C and hairy in bash due to list
>>> handling.
>>
>> No, one core.img is fine.  The boot disk is the boot disk in each case
>> (so on x86 device 0x80).  The same core.img gets inserted too all the
>> devices, so that if it happens to be the boot disk, it works.  Since the
>> partition is raid1, the same UUID is everywhere.  I do not expect
>> booting from a raid5 device to be possible as the boot partition (althoug
>> hperhaps grub is smart enough to read the kernel from an md raid5 device
>> these days).
> 
> It is. Even raid6 is possible. The limitation is the BIOS being able to present all member devices to grub for it to assemble the raid in order to find /boot. But I don't know if it can work on a degraded array by rebuilding parity. If not, I see no point in /boot on raid5/6.
> 
> The case of btrfs raid0/1/10 is interesting. It's possible to boot all of these with GRUB2, I've tried up to 4 disks for those raid levels, and includes support for subvolumes/snapshots. I haven't extensively tried to break it with many snapshots, deletions, etc. So I don't know how resilient it is. The ability to boot raid1/10 with a missing member is useful. And it's actually a more complex setup to incorporate md raid and ext4 on those same disks for a separate /boot; or possibly losing ability to boot if /boot is on a single disk, which also complicates the layout. For such a layout, core.img is needed for each disk.
> 
> Open question is if on BIOS hardware, if a 1MB BIOSBoot is preferred over the 64KB Btrfs bootloader pad? I don't know off hand if each member disk, or subsequently added disks, each have this 64KB pad or just the first member.
> 
This is besides the point. I'm fine to discuss such things but in a
separate thread.
> 
> Chris Murphy
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
> 



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 291 bytes --]

  reply	other threads:[~2013-09-26 22:15 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-26 13:08 [RFC] grub-install C rewrite Vladimir 'φ-coder/phcoder' Serbinenko
2013-09-26 13:35 ` Lennart Sorensen
2013-09-26 13:59   ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-09-26 14:44     ` Lennart Sorensen
2013-09-26 18:49       ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-09-26 20:22         ` Lennart Sorensen
2013-09-26 20:29           ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-09-26 20:51           ` Chris Murphy
2013-09-26 22:15             ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2013-09-27  3:10         ` Andrey Borzenkov
2013-09-26 17:10   ` Seth Goldberg
2013-09-26 18:51     ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-09-26 18:56       ` Darren J Moffat
2013-09-26 18:57       ` Seth Goldberg
2013-09-26 14:49 ` Andrey Borzenkov
2013-09-26 15:01   ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-10-06 14:54 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-10-06 15:56   ` Andrey Borzenkov
2013-10-06 18:05     ` Vladimir 'φ-coder/phcoder' Serbinenko
  -- strict thread matches above, loose matches on Subject: below --
2013-09-26 17:52 Kalamatee

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=5244B1FC.9050503@gmail.com \
    --to=phcoder@gmail.com \
    --cc=grub-devel@gnu.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).