Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 482262

Summary: sys-apps/util-linux-2.21.2 - detection of silicon_medly_raid_member fails
Product: Gentoo Linux Reporter: David Brown <gentoo>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Output of emerge --info

Description David Brown 2013-08-23 20:40:45 UTC
Created attachment 356794 [details]
Output of emerge --info

There is a rarely occuring bug in util-linux-2.21.2 (and probably earlier) with filesystems that are on lvm partitions.  It is fixed in 2.22 upstream by the commit

commit 3b66f48e23dd0e2a1d7cf318c7698fb192163728
Author: Michal Luscon <mluscon@redhat.com>
Date:   Wed Feb 29 17:24:40 2012 +0100

    sysfs: move blkid_devno_to_wholedisk to sysfs_devno_to_wholedisk
    
    Signed-off-by: Michal Luscon <mluscon@redhat.com>

Reproduction is a bit challenging, but I wanted to document this in case others found it.  Basically, the detection for some of the other raid types, specifically silicon_medley_raid_member use the function blkid_probe_is_wholedisk().  This call in 2.21.2 returns true for lvm partitions.  If the filesystem happens to contain this raid member's magic (at offset 0x60 in the last 512-byte block of the partition) of 2F 00 00 00, then it will be detected as a raid member.

The result is generally that the system is unbootable, and most people resolve this by reinstalling.
Comment 1 SpanKY gentoo-dev 2015-03-12 03:58:11 UTC
2.24 is stable now