All of lore.kernel.org
 help / color / mirror / Atom feed
* Software RAID and Fakeraid
@ 2010-11-25 10:26 John Sheu
  2010-11-30 19:54   ` Phillip Susi
  2010-12-25 19:55 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 2 replies; 37+ messages in thread
From: John Sheu @ 2010-11-25 10:26 UTC (permalink / raw)
  To: grub-devel

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

What's the preferred way to differentiate BIOS fakeraid from regular
software mdraid?

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:

if (0 && dest_dev[0] == 'm' && dest_dev[1] == 'd'
    && ((dest_dev[2] >= '0' && dest_dev[2] <= '9') || dest_dev[2] == '/'))
  {
    char **devicelist;
    int i;

    devicelist = grub_util_raid_getmembers (dest_dev);

    for (i = 0; devicelist[i]; i++)
      {
        setup (arguments.dir ? : DEFAULT_DIRECTORY,
               arguments.boot_file ? : DEFAULT_BOOT_FILE,
               arguments.core_file ? : DEFAULT_CORE_FILE,
               root_dev, grub_util_get_grub_dev (devicelist[i]), 1,
               arguments.force, arguments.fs_probe);
      }
  }

For a fakeraid setup, however, the BIOS presents the entire device as
"regular" int13 device, so GRUB2 really should be installing it to the
entire /dev/md### device, not the individual members.

So what's the preferred way to differentiate BIOS fakeraid?  Is there some
ioctl that would make this easier than having to parse /proc/mdstat?

Thanks,
-John Sheu

[-- Attachment #2: Type: text/html, Size: 1639 bytes --]

^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2011-02-02 21:12 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2010-12-25 19:55 ` Vladimir 'φ-coder/phcoder' Serbinenko

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.