Hi all,
I just setup a raid1 gentoo system. I've always used grub, and was told I might continue to do so even if I put raid1 on my boot partition. The way I think it works is that by specifying
, grub seeks through the second disk, first partition. Now, when the <i>actual</i> second disk fails, the third disk <i>becomes</i> the second disk and boots.
As it is now, I have no grub.conf file (see below), and grub is installed in the first 32M of /dev/sdb and /dev/sdc
When I power on, I am given a grub command line. I boot by manually selecting my kernel image and typing 'boot'. Then, everything works normally.
Code:
$ sudo rm -rf /boot/grub/grub.conf
rm: cannot remove `grub.conf': Input/output error
Code:
$ ls -l | grep grub
ls: cannot access grub.conf: Input/output error
-????????? ? ? ? ? ? grub.conf
-rw-r--r-- 1 root root 1842 Jun 16 01:21 grub.conf.sample
lrwxrwxrwx 1 root root 9 Jun 16 01:21 menu.lst -> grub.conf
Code:
$ cat /etc/fstab
---snip---
/dev/md1 /boot auto noatime 1 2
/dev/md2 none swap sw 0 0
/dev/md3 / auto noatime 0 1
/dev/md4 /home auto noatime 0 0
proc /proc proc defaults 0 0
---snip---
Code:
$ cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdc1[1] sdb1[0]
40064 blocks [2/2] [UU]
md2 : active raid1 sdc2[1] sdb2[0]
10008384 blocks [2/2] [UU]
md3 : active raid1 sdc3[1] sdb3[0]
120005440 blocks [2/2] [UU]
md4 : active raid1 sdc4[1] sdb4[0]
260654528 blocks [2/2] [UU]
unused devices: <none>
Things I have tried so far include:
Adding 'nomount' option to boot partition in fstab, mounting the partition manually -> gives same errors.
Mounting the partitions themselves, such as
Code:
sudo mount /dev/sdb1 /boot
This never works, it gives an error similar to 'either the disk is busy or there's something already mounted there'
I was hoping someone could take a quick look and tell me how I can get grub working properly. If I must switch to LILO, I will, but that may not be necessary.
TIA,
desimo