All of lore.kernel.org
 help / color / mirror / Atom feed
* grub RAID heuristics (how can we avoid "superfluous RAID member (2 found)")
@ 2012-02-02  0:55 Daniel Kahn Gillmor
  2012-02-23  5:43 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Kahn Gillmor @ 2012-02-02  0:55 UTC (permalink / raw)
  To: grub-devel

hi folks--

i was speaking with phcoder today on #grub, about getting messages like
this from grub when a partition that is part of a Linux SW RAID set
(with metadata 0.9x) is close to the end of its containing block device:

  superfluous RAID member (2 found)

Here's phcoder's explanation of the problem:

> 16:08 < phcoder> if you have < 64KiB between end of disk and end of partition 
>                  the metadata is exactly in the same place for either if the 
>                  whole disks are raided or only partitions. And no field which 
>                  allows to distinguish those
 [...]
> 16:09 < phcoder> thing is that mdraid format rounds it down to a 64K aligned 
>                  boundary
> 16:10 < dkg0> 64KiB aligned to the parent disk, or to the partition itself?
> 16:10 < phcoder> to whatever the host of the raid is. For your error to occur 
>                  it has to be both
> 16:10 < dkg0> hm, i suppose if the partition itself starts evenly aligned with 
>               a 64KiB boundary, it'd be the same thing.


It sounds like there might be some circumstances (e.g. a RAID0 set of
sda and sdb, creating md0, and a partition table on top of md0) where it
is legitimately difficult to decide the correct interpretation.

However, i think there might be a reasonable heuristic that can be used
in the case of RAID1 sets that would avoid the ambiguity (and the scary
messages/warnings to the user:

Select the smallest known block device that can completely enclose the
RAID member.  The larger block device(s) should not be considered to be
exporting that RAID.

these heuristics would mean that RAID1 sets with 0.9x metadata on any
sort of disklabel would only have their member components show up once
during a scan, rather than treating them as a duplicate.

phcoder mentioned that the RAID code was undergoing something of an
overhaul.  perhaps these heuristics could play into that update?

I'm not sure how to address it with RAID0 or RAID10, but if we could fix
the RAID1 case, that would be a big win for a lot of users.

Regards,

	--dkg


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

end of thread, other threads:[~2012-02-27  3:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-02  0:55 grub RAID heuristics (how can we avoid "superfluous RAID member (2 found)") Daniel Kahn Gillmor
2012-02-23  5:43 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-24  5:41   ` Daniel Kahn Gillmor
2012-02-25 21:49   ` Daniel Kahn Gillmor
2012-02-27  3:29     ` Daniel Kahn Gillmor

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.