Re: 2.2.17 -> 2.4.19-rc3: bub in file md.c, line 1311

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux