Hi,
I cannot setup Raid1 as supplement for few more important directories in /home.
I followed this procedure :
mdadm --zero-superblock /dev/sda1
mdadm --zero-superblock /dev/sdb1
mdadm --create
/dev/md0 --auto --verbose --chunk=4 --level=1 --raid-devices=2 /dev/sda1
/dev/sdb1
mkfs.ext3 /dev/md0
echo "DEVICES /dev/sda1 /dev/sdb1" > /etc/mdadm/mdadm.conf
mdadm --brief --detail --verbose /dev/md0 >> /etc/mdadm/mdadm.conf
then added this entry into fstab :
/dev/md0 /raid1 ext3 defaults,user_xattr 0 2
then added two kernel modules to load : raid1, sd_mod
but after reboot - it stops in console on fsck saying :
fsck.ext3: Invalid argument while trying to open /dev/md0
/dev/md0:
The superblock could not be read or does not descibe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt. and you might try running e2fsck with an alternate
superblock:
e2fsck -b 8193 <device>
Also when I try : mount /raid1 it gets same error.
But if I do this :
mdadm --create
/dev/md0 --auto --verbose --chunk=4 --level=1 --raid-devices=2 /dev/sda1
/dev/sdb1
then mount /raid1 works.... I just cannot get raid1 to start by it self...
any advice ?
Thanks in advance,
regards,
Rob.