All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: Software RAID and Fakeraid
Date: Tue, 07 Dec 2010 18:21:26 +0100	[thread overview]
Message-ID: <4CFE6D16.4060105@gmail.com> (raw)
In-Reply-To: <DA.F2.19545.AC4C9FC4@cdptpa-omtalb.mail.rr.com>

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

On 12/04/2010 05:34 AM, Leslie Rhorer wrote:
>
>   
>> -----Original Message-----
>> From: linux-raid-owner@vger.kernel.org [mailto:linux-raid-
>> owner@vger.kernel.org] On Behalf Of Neil Brown
>> Sent: Tuesday, November 30, 2010 4:25 PM
>> To: Phillip Susi
>> Cc: The development of GNU GRUB; John Sheu; linux-raid@vger.kernel.org
>> Subject: Re: Software RAID and Fakeraid
>>
>> On Tue, 30 Nov 2010 14:54:40 -0500 Phillip Susi <psusi@cfl.rr.com> wrote:
>>
>>     
>>> On 11/25/2010 5:26 AM, John Sheu wrote:
>>>       
>>>> What's the preferred way to differentiate BIOS fakeraid from regular
>>>> software mdraid?
>>>>         
>>> The only way I know of is detecting that it is a dmraid device as
>>> opposed to md, which is why grub does it that way.  This worked well in
>>> the past when each tool exclusively handled one type of raid.
>>>
>>>       
>>>> I ask this as I'm booting with GRUB2 off a system that has one of
>>>>         
>> those
>>     
>>>> Intel fakeraid chipsets.  As of a few months ago, the mdadm package
>>>>         
>> has
>>     
>>>> supported these fakeraid setups, so the RAID array comes up as a
>>>>         
>> /dev/md###
>>     
>>>> device.  This is unfortunate, as GRUB2 assumes that any device of the
>>>>         
>> type
>>     
>>>> /dev/md### must be a pure software RAID device, and in
>>>> util/grub-setup.c:939, tries to install itself to the RAID members
>>>> individually:
>>>>         
>>> For grub to support fakeraids activated by the md driver, it needs some
>>> way to find out that it is actually a fake raid, and not a software
>>> raid.  Adding linux-raid to Cc list to see if they can suggest a way of
>>> doing that.
>>>       
>> My feeling is that grub just needs to be a bit more careful.
>>
>> If the members of the md array are partitions, then installing itself in
>> the
>> boot blocks of the devices holding those partitions always makes sense.
>>
>> If the members of the md array are whole devices, then installing grub in
>> those devices might make sense depending on specific details of the
>> metadata.  The default should be that it doesn't make sense, but specific
>> cases do.
>> e.g. if the metadata (/sys/block/mdX/md/metadata_version) is 0.90 or 1.0,
>> and
>> the array is RAID1, then grub should install itself in the *array*, not in
>> the devices.
>> If the metadata is 1.1, then grub cannot install itself
>> If the metadata is 1.2, then grub can install itself at the start
>> If the metadata is external:imsm then (I think) grub should install itself
>> in
>> the array ... though there are some complexities there.
>>
>> I often wonder why people who add knowledge of md to grub etc don't at
>> least
>> let me know what they are doing in case I can see something obviously
>> wrong
>> with their approach..
>>     
> 	I wonder why GRUB2 only supports 0.90 version superblocks on arrays
> from which it can boot.  I wonder even more why they seem to keep it a deep,
> dark secret.  I tore my hair out for days trying to figure out why my
> upgraded Linux box would not boot.  Under legacy GRUB, it took some
> fiddling, but 1.x RAID1 arrays were bootable.
>
>
>   
1.x metadata was added this summer. Please upgrade
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
>   


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



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

  reply	other threads:[~2010-12-07 17:21 UTC|newest]

Thread overview: 37+ 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 19:54   ` Phillip Susi
2010-11-30 22:25   ` Neil Brown
2010-11-30 22:25     ` Neil Brown
2010-12-02 22:13     ` Phillip Susi
2010-12-02 22:13       ` Phillip Susi
2010-12-03  1:36       ` Neil Brown
2010-12-03  1:36         ` Neil Brown
2010-12-03  3:15         ` Phillip Susi
2010-12-08 22:43           ` Neil Brown
2010-12-08 22:43             ` Neil Brown
2010-12-09 19:48             ` Phillip Susi
2010-12-09 19:48               ` Phillip Susi
2011-01-31 16:44               ` Phillip Susi
2011-01-31 17:03                 ` Lennart Sorensen
2011-01-31 19:21                   ` Phillip Susi
2011-01-31 19:21                     ` Phillip Susi
2011-01-31 22:12                     ` Lennart Sorensen
2011-02-01  1:31                       ` Phillip Susi
2011-02-01  1:31                         ` Phillip Susi
2011-02-01 11:04                         ` Michal Suchanek
2011-02-01 11:04                           ` Michal Suchanek
2011-02-01 16:26                         ` Lennart Sorensen
2011-02-01 16:26                           ` Lennart Sorensen
2011-02-02  0:08                           ` Phillip Susi
2011-02-02  0:08                             ` Phillip Susi
2011-02-02  3:22                             ` NeilBrown
2011-02-02  3:22                               ` NeilBrown
2011-02-02 15:34                               ` Phillip Susi
2011-02-02 15:34                                 ` Phillip Susi
2011-02-02 16:09                           ` hansbkk
2011-02-02 16:09                             ` hansbkk
2011-02-02 21:12                             ` Leslie Rhorer
2010-12-04  4:34     ` Leslie Rhorer
2010-12-07 17:21       ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
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=4CFE6D16.4060105@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.