Bug 7208
Summary: | Autodetection of md devices works not after superblock 1.0 was introduced | ||
---|---|---|---|
Product: | IO/Storage | Reporter: | Lennart Andre Rolland (lennart) |
Component: | MD | Assignee: | io_md |
Status: | CLOSED PATCH_ALREADY_AVAILABLE | ||
Severity: | low | CC: | bunk |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.17 | Subsystem: | |
Regression: | --- | Bisected commit-id: |
Description
Lennart Andre Rolland
2006-09-26 11:53:17 UTC
I discovered a few typos. First i didnt use the assemble command with mdadm to create the array, i used - C for create. Second the error message just before kernel panic is a "from my memory". Nontheless all the important datas are there. i've the same problem, after updating kernel 2.6.14.x to 2.6.19.2... with 2.6.18.2 no raid-problems (but security related ones). 1- in-kernel autodetect does not work with version-1 metadata. This is by design. You should be using 'mdadm -As' or similar in an initrd if you are using version-1 metadata. 2- mdadm does not default to version-1 metadata unless it is told to. It can be told to by a 'CREATE' line in mdadm.conf. If you are using Debian, you probably have that CREATE line, but you should also get a kernel with an initrd that does the right thing. 3- Upgrading the kernel should have no effect here. If it really does, more details are needed. I suggest you "get with the program" and use an initrd. There are instruction in the mdadm release for building an ultra-simple initrd just for md. Or you can read the "mkinitramfs" (or whatever) doco for your distribution and do it that way. It really isn't very hard. "mdadm --examine /dev/hdb1 /dev/hdb1: Magic : a92b4efc Version : 00.90.00 UUID : 39006600:1cbd44af:086b834c:a4495afa Creation Time : Sun Jun 25 13:53:28 2006 Raid Level : raid1 Device Size : 32000 (31.26 MiB 32.77 MB) Array Size : 32000 (31.26 MiB 32.77 MB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 0 Update Time : Wed Jan 24 05:30:39 2007 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 Checksum : 35f3b3d5 - correct Events : 0.466 Number Major Minor RaidDevice State this 0 3 65 0 active sync /dev/hdb1 0 0 3 65 0 active sync /dev/hdb1 1 1 22 1 1 active sync /dev/hdc1" If I read this info correctly I have a 0.9 metadata!? My problem reported above doesn't exist any more, with vanilla kernel 2.6.20.4 it works again. Thanks for this information. |