Hello,
from last few days I reading sites with information about how to make my first software raid and no one from them worked for me. I need help with that, I don't know where is my mistake. Hard drives is new the same model and size.
Here is my steps.
1. I setup my BIOS to activate RAID mode - Intel
2. When pc boot from Slackware 14.2 x86_64 DVD I start to configure hards.
3. I use cfdisk on /dev/sda to make 3 partitions, sda1 with 100MB size for boot, sda2 for swap space and sda3 for rest of the system. All 3 partitions is: linux raid autodetect - fd
4. I use sfdisk to copy partitions with: sfdisk -d /dev/sda | sfdisk /dev/sdb
5. Stop mdadm with : mdadm -S /dev/md126 && mdadm -S /dev/md127
6. Create drives:
/: mdadm --create /dev/md0 --level 1 --raid-devices 2 /dev/sda3 /dev/sdb3 --metadata=1.2
swap: mdadm --create /dev/md2 --level 1 --raid-devices 2 /dev/sda2 /dev/sdb2 --metadata=1.2
/boot: mdadm --create /dev/md3 --level 1 --raid-devices 2 /dev/sda1 /dev/sdb1 --metadata=0.90
7. Format drives:
mkfs.ext4 /dev/md0
mkfs.ext4 /dev/md3
mkswap /dev/md2
8. I wait 4 hours all 3 raids to be synced. With cat /proc/mdstatus all 3 raids is OK and UP.
9. Start FULL installation
10. Install LILO "simple" setup
- Additional append parameter: root=/dev/md0
- Install LILO in MBR
- EXIT setup
11. I do chroot /mnt/
12. My lilo.conf:
# Start LILO global section
raid-extra-boot = mbr-only
# Append any additional kernel parameters:
append="root=/dev/md0 vt.default_utf8=1"
boot = /dev/md3
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
initrd = /boot/initrd.gz
root = /dev/md0
label = Linux
read-only
# Linux bootable partition config ends
13.I do mdadm -Es >> /etc/mdadm.conf
14. cp /etc/mkinitrd.conf.sample /etc/mkinitrd.conf
15. I edit mkinitrd, now looks like:
# mkinitrd.conf.sample
# See "man mkinitrd.conf" for details on the syntax of this file
#
SOURCE_TREE="/boot/initrd-tree"
#CLEAR_TREE="0"
OUTPUT_IMAGE="/boot/initrd.gz"
KERNEL_VERSION="$(uname -r)"
KEYMAP="us"
MODULE_LIST="ext4"
#LUKSDEV="/dev/sda2"
ROOTDEV="/dev/md0"
ROOTFS="ext4"
#RESUMEDEV="/dev/sda2"
RAID="1"
#LVM="1"
#UDEV="1"
#MODCONF="0"
#WAIT="1"
16. mkinitrd -F
17. lilo
18. reboot
After reboot it's seems Im in initrd with kernel panic.
Here is screenshot after booting:
http://www.stz-bg.com/uploads/881cc4...52f27ed745.png
Here is screenshot on mdstat. Interesting, md0 is missing and again md126 and md127
http://www.stz-bg.com/uploads/dd2ff9...d5950199f8.png
And here is screenshot of mdadm.conf made from: mdadm -Es >> /etc/mdadm.conf
http://www.stz-bg.com/uploads/d8e790...16834ab57a.png
Any one can point me where is the mistake and what Im doing wrong.