Hi.
It's the first time i play with raid, so i can miss some obvious things.
I've followed the README-RAID.txt and i did something like that :
Code:
#!/bin/sh
mdadm --stop /dev/md1
mdadm --stop /dev/md2
mdadm --stop /dev/md3
mdadm --misc --zero-superblock /dev/sda1
mdadm --misc --zero-superblock /dev/sda2
mdadm --misc --zero-superblock /dev/sda3
mdadm --misc --zero-superblock /dev/sdb1
mdadm --misc --zero-superblock /dev/sdb2
mdadm --misc --zero-superblock /dev/sdb3
dd if=/dev/zero of=/dev/sda bs=512 count=1
dd if=/dev/zero of=/dev/sdb bs=512 count=1
cat > sda_setup <<EOF
# partition table of /dev/sda
unit: sectors
/dev/sda1 : start= 63, size= 31246362, Id=fd, bootable
/dev/sda2 : start= 31246425, size= 7807590, Id=fd
/dev/sda3 : start= 39054015, size=449016750, Id=fd
/dev/sda4 : start= 0, size= 0, Id= 0
EOF
sfdisk /dev/sda < sda_setup
sfdisk /dev/sdb < sda_setup
mdadm --create /dev/md1 --level 1 --raid-devices 2 /dev/sda1 /dev/sdb1 --metadata=0.90
mdadm --create /dev/md2 --level 1 --raid-devices 2 /dev/sda2 /dev/sdb2
mdadm --create /dev/md3 --level 1 --raid-devices 2 /dev/sda3 /dev/sdb3
mkswap /dev/md2
I launch setup, edit lilo.conf at the end, then i reboot.
My root filesystem is ok and i can use the system.
But my swap (/dev/md2) and /home (/dev/md3) aren't mounted.
It seems that with the default superblock (no 0.90 metadata), there is a naming scheme that don't assign the array to the minor number we used for creating it.
For instance, i have /dev/md127 and /dev/md126 instead of /dev/md2 and /dev/md3.
I first tryed to copy the /etc/mdadm.conf of the install session on the root's /etc before leaving the installation program. But it doesn't work and more surprising, "mdadm -Db /dev/md2" give me a different id that the one present in the saved /etc/mdadm.conf.
I gived-up with the /etc/mdadm.conf and restored it to the default one.
For solving this issue, i edited the /etc/fstab for changing the /dev/mdX to /dev/md/slackware:X
What would you suggest as a better solution ?
Thank you for your help.
Paul.
P.S. i've found
this page usefull.