Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 328855 - mdraid won't assemble if constituting partition extends to the end of device
Summary: mdraid won't assemble if constituting partition extends to the end of device
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://bugzilla.redhat.com/show_bug....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-18 21:27 UTC by Ziga Boehm
Modified: 2013-04-27 08:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ziga Boehm 2010-07-18 21:27:57 UTC
I believe Gentoo suffers from the same problem as Red Hat does (see https://bugzilla.redhat.com/show_bug.cgi?id=543749) - namely if one is using md device composed of partitions which extend to the end of the device, blkid included in genkernel generated initramfs will incorrectly assume the whole device is part of mdraid and will not look for partitions on it.

I presume this is not specific to genkernel's initramfs only.

Regardless of the fact that a gap of at least 128MiB is recommended after each GPT (and probably also MBR) partition (with the exception of EFI System Partition and BIOS Boot Partition), blkid shouldn't make erroneous assumptions about md superblocks at the end of the devices.

Superblock formats 0.90 and 1.0 are both located at the end of devices/partitions and while format 1.0 holds additional offset information, format 0.90 as momentarily the only one supported by GRUB2, does not.

Reproducible: Always

Steps to Reproduce:
1. Create two partitions on every device that will be included in mdraid - 2nd partition should should extend fully to the end of the device
2. Create any type of mdraid from 2nd partitions
3. Reboot
4. Mdraid won't assemble, partiotions on constituting device won't show anymore
Comment 1 Alexander Tsoy 2012-12-18 13:44:17 UTC
This was fixed in util-linux-2.18 in commit c81e70087cfebc299bdfbbd0675958483fc8a768

https://www.kernel.org/pub/linux/utils/util-linux/v2.18/v2.18-rc1-ChangeLog
Comment 3 SpanKY gentoo-dev 2013-04-27 08:57:00 UTC
(In reply to comment #1)

thanks for the heads up !