Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 308129 - sys-fs/mdadm-3.1.1 creates version 1.1 superblock by default which are not recognized automatically
Summary: sys-fs/mdadm-3.1.1 creates version 1.1 superblock by default which are not re...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Docs Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-06 22:56 UTC by Juergen Rose
Modified: 2010-06-15 11:14 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 Juergen Rose 2010-03-06 22:56:46 UTC
mdadm now creates version 1.1 superblock by default. The following warning is shown:
mdadm: Note: this array has metadata at the start and
    may not be suitable as a boot device.  If you plan to
    store '/' or '/boot' on this device please ensure that
    your boot-loader understands md/v1.x metadata, or use
    --metadata=1.0

But neither arrays with 1.1 nor 1.0 superblocks are recognized during boot by the kernel. That's why the "Gentoo Linux x86 with Software Raid and LVM2 Quick Install Guide" 
http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml should be modified.

mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1

should be replaced by

mdadm --create /dev/md1 --level=1 --raid-devices=2 / --metadata=0.90 dev/sda1
 /dev/sdb1





Reproducible: Always
Comment 1 Matti Bickel (RETIRED) gentoo-dev 2010-03-23 20:23:19 UTC
Thanks for reporting this.

Can someone from base-systems please comment on this and update the docs if and where appropiate?
Comment 2 SpanKY gentoo-dev 2010-06-03 01:52:03 UTC
using 0.90 superblocks should really only be needed for the root partition as that is the only one the kernel will need started.  the rest can be bootstrapped by userspace tools (i.e. mdadm and the mdraid init.d script) and so the default is fine.

another option is to use genkernel and produce an initramfs with mdadm in it so it will handle starting up of the raids.  then any superblock version should be fine.

as for updating the doc, that appears to have been written by the docs-team, so i'm not sure what there is for base-system to do.
Comment 3 Jan Kundrát (RETIRED) gentoo-dev 2010-06-15 11:14:15 UTC
Fixed in CVS, thanks. It'll show up on the live web nodes shortly.