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.
Code:
vi /boot/grub/menu.lst
On top of existing stanza I put:
Code:
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`
At the 'grub' shell prompt I created new boot records for both drives:
Code:
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.
Code:
vi /boot/grub/menu.lst
Code:
default 0
fallback 1
Replacement of the simulated failed disk went perfect by Falko's instructions here
http://www.howtoforge.com/replacing_..._a_raid1_array .
Any comment or better solution is apritiated.
David
Recent comments
9 hours 42 min ago
14 hours 46 min ago
19 hours 11 min ago
21 hours 17 sec ago
1 day 11 hours ago
1 day 11 hours ago
1 day 16 hours ago
1 day 22 hours ago
1 day 23 hours ago
2 days 58 min ago