LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Raid 1 - Superblock is corrupt (http://www.linuxquestions.org/questions/debian-26/raid-1-superblock-is-corrupt-104139/)

pyfsapple 10-15-2003 05:27 AM

Raid 1 - Superblock is corrupt
 
Hello all

After I have installed Debian 3.0_r1 with kernal-2.4.18-bf2.4 and lilo 22.2, I got raidtools2 and partitioning a new HDD with type FD.

Then I edited /etc/raidtab as
# /boot
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 32
device /dev/sdb1
failed-disk 1
device /dev/sda1
raid-disk 0
# /
raiddev /dev/md1
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 32
device /dev/sdb3
failed-disk 1
device /dev/sda3
raid-disk 0

Made the Raid:
mkraid /dev/md0
mkraid /dev/md1

cat /proc/mdstat gave the correct answer

mke2fs -j -b 4096 -R stride=8 /dev/md0
mke2fs -j -b 4096 -R stride=8 /dev/md1

Thus cp the files from sda1, sdb3 to sdb1, sdb3.

Modified /etc/fstab:
#/dev/sda1 ...
/dev/md0 ...
#/dev/sda3 ...
/dev/md1 ...

reboot...............
"superblock is corrupt ... give root pwd or (Ctrl-D) to continue:"

Did I miss anything or do anything wrong?

Thanks
pyfsapple

fzzy 04-19-2004 01:01 PM

sw RAID 1 superblock
 
i have the same problem, but since i'm not booting from the raid i can successfully mount it manully (files intact). it gives me an error during fsck about physical size and filesystem size being different...


All times are GMT -5. The time now is 06:02 AM.