PDA

View Full Version : Problem with install Debian Etch on a Software Raid 1


lano
23rd July 2007, 10:07
Hi
I need someone to tell me, what I am doing wrong. I installed Etch on 2x 250GB sata disks acording to instruction that I found on this site http://ads.wars-nicht.de/blog/archives/54-Install-Debian-Etch-on-a-Software-Raid-1-with-S-ATA-disks.html
However, when I remove sdb disk, system will boot fine from sda, but when I remove sda disk, system will not boot.
Looks like the grub is not installed on sdb disk. Could someone please tell me, how to fix this, or maybe even some other way to install software raid1? Perfect setup maybe? :)

Thanks, David

falko
24th July 2007, 14:38
Can you post the output of df -h or mount? I guess the partition where /boot is on isn't mirrored.

lano
25th July 2007, 10:07
Here is, how I solved the problem. Problem was, that grub wasnt installed in /dev/sdb. So I did folowing steps:

First I edited /boot/grub/menu.lst to make sure that system will boot from sdb.

vi /boot/grub/menu.lst
On top of existing stanza I put:
title Debian GNU/Linux, kernel 2.6.8-2-386 (hd1)
root (hd1,0)
kernel /vmlinuz-2.6.8-2-386 root=/dev/md2 ro
initrd /initrd.img-2.6.8-2-386
savedefault
boot

then I started grub command shell `grub`
grub
At the 'grub' shell prompt I created new boot records for both drives:
root (hd0,0)
setup (hd0)
root (hd1,0)
setup (hd1)
quit

Test went fine this time.
Final step was adding fallback entry, that will automaticlly choose the next item in the menu if the first one fails. In /boot/grub/menu.lst I added entry `fallback 1` just below the `default 0` entry.
vi /boot/grub/menu.lst
default 0
fallback 1
Replacement of the simulated failed disk went perfect by Falko's instructions here http://www.howtoforge.com/replacing_hard_disks_in_a_raid1_array .

Any comment or better solution is apritiated.

David