Skip to contentSkip to conversation

Problem converting raid-5 array from 2.2.17 into 2.4.22

DISCUSSION John Doe 1 participant 1 message Sep 3, 2003 MD RAID

lore
Share & tools
lore

John Doe

author
#0 lore raw
Quoted 11 lines
# mdtab entry for /dev/md0
/dev/md0        raid5,128k,0,93fa4522   /dev/hda3 /dev/hdb1 /dev/hdc1 /dev/hdd1

# /etc/raidtab:
raiddev /dev/md0

       raid-level      5
       nr-raid-disks   4
       nr-spare-disks  0

persistent-superblock 1
parity-algorithm left-symmetric
chunk-size 32

[...]

Quoted 1 line

This one was copied straight from Software-RAID HOWTO, unfortunately I noticed only afterwards that the chunk-size was different than it was before.

I also reproduced the situation on a different machine and different disks, with this time the right chunk-size (128 kb). And it didn't work either!

So it seems that "mkraid --upgrade" will *always* break a raid5 setup, at least if it's me doing the conversion :)

This sounds pretty alarming.

I hope there is some way to reconstruct the superblocks or change their checksums or something. Next I'm going to spend a few hours investigating if mdadm and newer raidtools have options for doing this.

-J

_________________________________________________________________
Get MSN 8 and help protect your children with advanced parental controls. http://join.msn.com/?page=features/parental