Software RAID-1 install problem
Hello,
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 The difference that I have only a / and a /home partition. I compiled my kernel (2.6.8) with RAID support. After the reboot I got a Kernel panic. See my log: KernelPanic In the tutorial there was no initrd defined in the grub menu list. Can it be the problem? What did I wrong? Thanks! (I posted this topic on Debian topic 2 days ago, but maybe it is more general problem) My fstab: Code:
:debian:/# more /etc/fstab My hda: Code:
:debian:/# sfdisk -l /dev/hda and hdc: Code:
:debian:/# sfdisk -l /dev/hdc And at the end my grub menu list: Code:
:## ## End Default Options ## |
Re: Software RAID-1 install problem
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 # e2fsck /dev/md0 # e2fsck /dev/md1 Code:
title Debian GNU/Linux, kernel 2.6.8-bali2 Here's what I've got that might help: Code:
title Xen Stable - Debian Stable 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 # cat /etc/mdadm/mdadm.conf Code:
DEVICE partitions 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. |
All times are GMT -5. The time now is 08:15 PM. |