FS#25371 - mdadm fails to assemble RAID arrays on kernels with 2 digit version numbers (eg. Linux 3.0)

Attached to Project: Arch Linux
Opened by Pascal Ernster (hardfalcon) - Wednesday, 03 August 2011, 00:38 GMT
Last edited by Tobias Powalowski (tpowa) - Wednesday, 03 August 2011, 07:10 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Critical
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
The current version of mdadm doesn't work with Linux 3.0 (at least not in the init ramdisk), when trying to assemble a RAID array, it just gives an "Cannot start array: No such device" error message. This has been fixed in git, but the fixed version has not been released by the mdadm author yet. To fix the issue, just apply the following patch to mdadm when building the package:

http://neil.brown.name/git?p=mdadm;a=patch;h=f161d047eed634b3380262767f955eb888502e88;hp=ef799cdd6968db25b3a3ea5d7d4e920391ec640a

I've also attached the patch as a file to this bug report.

Additional info:
* Affected package: mdadm <= 3.2.2-2

Steps to reproduce:
Put your root partition onto an mdadm array, upgrade to linux 3.0, get pissed off by your system failing to assemble said mdadm array during the boot process and waste a whole day on a freakin version number digit and 5 line of changed source code.
Of course, the bug won't occour if you try to assemble/mount the array from a boot CD as the boot CD has an old 2.6.x kernel with a 3 or 4 digit version number.
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Wednesday, 03 August 2011, 07:10 GMT
Reason for closing:  Fixed
Additional comments about closing:  3.2.2-3
Comment by Tobias Powalowski (tpowa) - Wednesday, 03 August 2011, 06:34 GMT
Seems i was not affected by this, my system works just fine, but i'll apply your patch.

Loading...