I just want to install a software raid-1 system on my debian sarge box.
I followed the instruction from the following site:
http://www.epimetrics.com/topics/on...ge_topic_id=120
These instructions need a little fine tuning for Debian
(read them the other day, cant load them today)
However, after a quick glance, this looks ok:
http://www.linuxhowtos.org/System/raid.htm
The difference that I have only a / and a /home partition.
Things get a lot easier with a non-Raid /boot partition
I compiled my kernel (2.6.8) with RAID support.
For Debian, do these as modules (as per Debian standards) and mkinitrd will
make an initrd for you including ramdisk and tools.
(also provided everything is configured properly

)
In the tutorial there was no initrd defined in the grub menu list. Can it be the problem?
It's not for Debian. Debian uses an initrd because of modules.
How did you create your initrd?
What did I wrong?
My guess would be that you haven't made your initrd properly or your root filesystem has
not been populated properly. You might also want to ensure udev is enabled in the kernel
and that the udev daemon is installed.
(I posted this topic on Debian topic 2 days ago, but maybe it is more general problem)
I got half way through an answer (comparing it to LVM-root with Raid 0) when I got distracted
... or lost .... can't remember.

EDIT: Now I remember that the system I have root on LVM+Raid also runs Xen, so the
grub entry might be hard(er) to follow.
Code:
:debian:/# more /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/md0 / ext3 defaults,errors=remount-ro 0 1
/dev/md1 /home ext3 defaults,usrquota,grpquota 0
2
/dev/hda5 none swap sw,pri=1 0 0
/dev/hdc5 none swap sw,pri=1 0 0
/dev/hdb /media/cdrom0 iso9660 ro,user,noauto 0 0
/dev/fd0
Just for sanity, do the following give good results?
# e2fsck /dev/md0
# e2fsck /dev/md1
Code:
title Debian GNU/Linux, kernel 2.6.8-bali2
root (hd0,0)
kernel /boot/vmlinuz-2.6.8-bali2 ro root=/dev/md0 md=0,/dev/hda1,/dev/h
dc1
initrd /boot/initrd.img-2.6.8-bali2
savedefault
boot
I doubt you need the md options.
Here's what I've got that might help:
Code:
title Xen Stable - Debian Stable
root (hd0,0)
kernel /xen-2.0.7.gz root=/dev/ram0 ro dom0_mem=81920 physdev_dom0_hide=(00:0a.0)(00:0b.0)(00:06.0)(00:07.2)
module /vmlinuz-2.6.11.12-xen0 root=/dev/vg0/root ro console=tty0
module /initrd.img-2.6.11.12-xen0
savedefault
boot
Forget the dom0 options and the first module line, exchange 'module' on the second module
line with 'initrd'. Note that my root option is the same as yours, but that I have a boot
partition in that location ... I think this is your error. Grub doesn't know how to
read a raid device to get the kernel and initrd from.
So yours might look something like this (if you add a boot partition!!!)
Code:
title Debian GNU/Linux, kernel 2.6.8-bali2
root (hd0,0)
kernel /vmlinuz-2.6.8-bali2 ro root=/dev/md0
initrd /initrd.img-2.6.8-bali2
savedefault
boot
Here's something else you'll need for Debian's mkinitrd to produce the correct result.
# cat /etc/mdadm/mdadm.conf
Code:
DEVICE partitions
ARRAY /dev/md0 level=raid0 num-devices=2 UUID=72c1f448:2d5f8521:431d286d:3de5be1d
devices=/dev/hda3,/dev/hdc3
ARRAY /dev/md1 level=raid0 num-devices=2 UUID=f739cdb1:7cfb3f92:605674de:969a9c53
devices=/dev/hda6,/dev/hdc6
ARRAY /dev/md2 level=raid0 num-devices=2 UUID=0b81ec82:8cd3167c:8192ec98:f749babc
devices=/dev/hda7,/dev/hdc7
Well, getting distracted again ... haven't finished ... but probably enough for you to chew on ...later
ps. not sure about the sarge installed, but the Debian NetInst CD's are able to install
to raid ... why don't you try that? ... You'll end up with a bootable system with everything
in the correct (Debian) place.