At this point, you should have working RAID partitions. When you create the RAID partitions, they need to sync themselves so the contents of all three physical partitions are the same on all three drives. The hard drives lights will come on as they try to sync up. You can monitor the progress by typing:
# cat /proc/mdstat
In the wiki I see mdadm -D --scan >>/etc/mdadm.conf only when installing Grub. Since this is done in a chrooted system, the file is /etc/mdadm.conf (without /mnt).
$ yaourt -Ss sysbench
aur/sysbench 0.4.3-1
Benchmark tool for evaluating OS parameters that are important for a system running a database under intensive load.
Thank you osigen for that info
]]>jochen > Yes md0 is the root device. Error is solved once by using
rootfstype=reiserfs
Then I got a complain about device-mapper and swap couldn't be activated :-) Terrible things.. or my big installation mistakes :-)
kozaki > mkinitcpio.conf / menu.lst / rc.conf are the same as wiki instructions. I have checked every line in configuration files twice :-)
(this was my third raid1 installation try - I was more careful)
Running hdparm -T /dev/sda I get 1334.80 MB / sec
By the way a better bench is sysbench (sourceforge project)
I give up... for today! I will give a try tomorrow :-)
================================================
kozaki > Please edit wiki ...
Instead of
mdadm -D --scan >>/etc/mdadm.conf
add the right
mdadm -D --scan >>/mnt/etc/mdadm.conf
================================================
]]>osigen > I think i know how you fell :x
I'd find it usefull if you can post every part of your mkinitcpio.conf / menu.lst / rc.conf that are raid's related so that we have a clear view of the whole
Note that on the machine I configured raid-1 on, hdparm -T on our 2 IDE HDDs with udma5 controler are all arround 70 Mb/sec (when my single Sata2 Hitachi on a much newer mobo never went further than 44 Mb/sec)
]]>After boot, I got ...
Kinit : Cannot open root device md0(9,0)
Kinit: Init not found!
Kernel panic - not syncing: Attempted to kill init!
I know if I skip this error, I should have a functional raid :-)
Any idea folks?
]]>Here's my /boot/grub/menul.lst
# (0) Arch Linux default kernel
title Arch Linux [/boot/vmlinuz]
root (hd0,0)
kernel /vmlinuz26 root=/dev/md2 ro md=2,/dev/hda3,/dev/hdb3 vga=791
initrd /kernel26.img
# (1) Arch Linux fbsplash verbose mode
title Arch Linux fbsplash verbose mode
root (hd0,0)
kernel /vmlinuz26 root=/dev/md2 md=2,/dev/hda3,/dev/hdb3 vga=0x318 splash=verbose,theme:darch console=tty1
initrd /kernel26.img
# (2) Arch Linux YouPi (emission + compiled)
title ArchlinuxEmission-YOUPI-01
root (hd0,0)
kernel /vmlinuz26emission-YOUPI-01 root=/dev/md2 ro md=2,/dev/hda3,/dev/hdb3 vga=791 splash=silent,theme:darch console=tty1
initrd /fbsplash-darch-1024x768
Last initrd is only for fbsplash (which do not work yet anyway )
]]>I'd say that there is missing a line like:
initrd /kernel26.img
title Arch Linux
root (hd0,0)
kernel /vmlinuz26 root=/dev/md0 ro md=0,/dev/sda3,/dev/sdb3
There is no fallback entry
>> your sata2 HDDs & controler are well recognized with this ISO right ?
Yes, I have already install an Archlinux 0.7.2 (iso 5/10/06) on one SATA2 hard disk, and Archlinux seems to be stable (about a month test) and fast on this single drive :-)
Kernel 2.6.18 solved a lot of problems. DVD recognition, sky2 (on board Marvell ethernet) 965 chipset are supported.
your sata2 HDDs & controler are well recognized with this ISO right ? I had to put a sata2 HDD on a sata1 controler to get it work. Now kernel-2.6.18 may support it, as there have been some strong changelog regarding drives & SATA in this release
]]>I try to setup RAID 1 on two hard disks for testing. If everything runs smoothly, I will move to RAID 5 on all hard disks (3)
This system is a new one and will be my home workstation for next five years :-)
>> what is your partitions scheme ?
sda1 & sdb1 boot raid auto detect 100 MB , raid-1 --> /dev/md1 (/boot)
sda2 & sdb2 raid auto detect 2000 MB , raid-1 --> /dev/md2 (swap)
sda3 & sdb3 raid auto detect 20000 MB , raid-1 --> /dev/md0 (/)
sda4 & sdb4 raid auto detect 138000 MB , raid-1 --> /dev/md3 (LVM)
>> did you (re)installed the kernel after configuring mkinitpcio.conf ?
Yes, it generates kernel with a complain about FS. It may misunderstand DVD (/dev/hde)
>> what FS did you choose for /boot & / + how does your fstab look like ?
ReiserFS for /boot and /
My fstab is exactly the same as wiki refers! My system partition and md creation/activation are build similar to wiki.
> md2 is swap according Installing with Software RAID or LVM
Well I suppose I don't have to follow every letter from a howto, do I ?
Here's my partition's config :
I've set up partition as following :
- hda1 & hdb1, 100 Mb both, raid-1 --> /dev/md0 (/boot) ext2
- hda2 & hdb2, 2 Gb both, raid-1 --> /dev/md1 (swap)
- hda3 & hdb3, 10 Gb both, raid-1 --> /dev/md2 (/) ext3 w/ dir_index
- hda4 & hdb4, 150 Gb both, raid-1 + LVM2 --> /dev/md3 (3 logical volumes or partitions for data, all ext3 w/ dir_index)
3 more questions about your config :
- what is your partitions scheme ?
- did you (re)installed the kernel after configuring mkinitpcio.conf ?
- what FS did you choose for /boot & / + how does your fstab look like ?
Anyway my system is linux compatible, it runs ArchLinux 0.7.2 on a single hard disk, with NO errors at all.
By the way your instructions confusing me:
Did you try makedevs ?
mount /dev/hdxY /mnt
chroot /mnt /bin/bash
mount -t sysfs none /sys
mount -t proc none /proc
makedevs
mount -a
Wiki instructions has already suggest me a few mount(s)
Then vi /boot/grub/menu.lst :
kernel /vmlinuz26 root=/dev/md2 ro md=2,/dev/hda3,/dev/hdb3
Then launched grub as quoted in the wiki
md2 ???
md2 is swap according Installing with Software RAID or LVM
Wiki instructions remains incomplete, arch (one of the best) community keeps me confusing with RAID and my system has two hard disks only for decoration!! (not functional RAID == no hard disks usage)
If anyone has a working raid0/1/5 system and he/she prepared it using ArchLinux 7.2 (20061104) please give my ego back :-)
]]>mount /dev/hdxY /mnt
chroot /mnt /bin/bash
mount -t sysfs none /sys
mount -t proc none /proc
makedevs
mount -a
Then vi /boot/grub/menu.lst :
kernel /vmlinuz26 root=/dev/md2 ro md=2,/dev/hda3,/dev/hdb3
Then launched grub as quoted in the wiki
umount /proc
umount /sys
Control + D
reboot
I need only a succesful grub instalaltion and my system should start :-)
Anyone RAID specialist to help?
]]>mkinitcpio.conf
md=0,/dev/hda1,/dev/hdb1 md=2,/dev/hda3,/dev/hdb3
menu.lst
kernel /vmlinuz26 root=/dev/md2 ro md=2,/dev/hda3,/dev/hdb3
Also slightly formated the wiki so that raid Kernel Parameters part looks clearer.
]]>