Re: 2.2.17 -> 2.4.19-rc3: bub in file md.c, line 1311
From: Neil Brown <hidden>
Date: 2002-07-24 07:45:18
On July 23, hpr@eml.cc wrote:
I am trying to (remotely) upgrade a kernel 2.2.17 with raid-2.2.17-A0 patch to 2.4.19-rc3 with the little attached patch to get autodetect to work (sparc64 architecture.) Here is a partial manual transcript from what appears on the console; the system still boots 2.2.17 without problem. I would be grateful for any advice on getting things right...
The 2.2 patches got the superblock layout wrong for sparc64, so raid array made on those systems are not directly compatable with 2.4. You can convert the arrays using mdadm 1.0.1 which can be found at http://www.cse.unsw.edu.au/~neilb/source/mdadm/ For each component device: mdadm -E /dev/devicename should show rubbish in the device table at the bottom as the superblock layout is wrong mdadm -E --sparc2.2 /dev/devicename should show correct information in the device table. If it does then: mdadm -E --sparc2.2update /dev/devicename should correct the superblock for 2.4. After this mdadm -E /dev/devicename will show correct devices and mdadm -A /dev/mdX /dev/sd..... should assemble the devices successfully. NeilBrown