Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Cannot make raid1 array bootable in RedHat 7 ... HELP!

1 view
Skip to first unread message

pub...@rlnt.net

unread,
Jan 29, 2001, 6:31:31 PM1/29/01
to
Hello,

Please help me get raid 1 working as the boot device on my new RedHat
7 installation.

I have followed several HOW-TOs as close as possible, and now I have:

2 x 4.2 SCSI disk drives.

the system installed on /dev/sda1 ...

/dev/md0 with /dev/sdb1 as raid-disk 0 and /dev/sda1 as failed-disk 1

the idea I believe is to copy the system to /dev/md0 mounted as /raid
(which I did), then boot the raid as /, then add the /dev/sda1 to the
raid, nuking the first system installation.

I also made an initrd-raid.img file as instructed and put it in /boot
...

But as soon as I change /etc/fstab to specify /dev/md0 as / the system
will not boot and I get just an emergency console.

Please, anyone?

Here are all the relevant files:

[wm@wm wm]$ cat /raid/etc/raidtab
# Sample raid-1 configuration
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 4
persistent-superblock 1

device /dev/sdb1
raid-disk 0

device /dev/sda1
failed-disk 1

[wm@wm wm]$ cat /raid/etc/fstab
/dev/md0 / ext2 defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
none /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
/dev/sdb5 swap swap defaults 0 0
/dev/sda5 swap swap defaults 0 0


[wm@wm wm]$ cat /raid/etc/lilo.conf
boot=/dev/md0
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
message=/boot/message
linear
default=linux

image=/boot/vmlinuz-2.2.16-22
label=linux
initrd=/boot/initrd-raid.img
read-only
root=/dev/md0

## The ones in the current / are the same except for one line:

[wm@wm wm]$ diff /etc/raidtab /raid/etc/raidtab
[wm@wm wm]$ diff /etc/lilo.conf /raid/etc/lilo.conf
[wm@wm wm]$ diff /etc/fstab /raid/etc/fstab
1c1
< /dev/sda1 / ext2 defaults 1 1
---
> /dev/md0 / ext2 defaults 1 1

But if I change /etc/fstab to set /dev/md0 as / the system won't boot!

And if it is not there (as now) the system boots fine with the current
/ but does not even mount the raid :(

[wm@wm wm]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda1 3897800 210612 3489192 6% /

That's all the info for now ... please help me, I'm a programmer, not
a sysadmin and I've spent four days on this so far! Argh!

-- nick


0 new messages