Hi there:
My raid1 is running fine on /dev/hda(boot disk) and
/dev/hdc.
;;Modified /etc/lilo.conf(Add one section for
initrd.raid.img)
Two cmds issued:
mkinitrd /boot/initrd.raid1.img --with raid1
2.2.12-20
lilo -v ;;No warning.
Then, power down, remove /dev/hdc, power up.
/dev/hda is able to boot up. /proc/mdstat indicates
it's running on partitions from /dev/hda only.
Everything works as expected.
(Partitions on /dev/hda and /dev/hdc are symmetrical)
But if raid1 is running and /dev/hdc is boot disk,
with same steps repeated
I can't boot up. I see "01 01 01 ..." continuously
running on screen.
Same steps means the following:
Modified /etc/lilo.conf from previous operation(from
/boot/lilo.conf in /dev/hda, except "hda" was
replaced by "hdc".)
Two cmds issued:
mkinitrd /boot/initrd.raid1.img --with raid1
2.2.12-20
lilo -v ;; get warning saying /dev/hdc is not the
first disk.
Then, power down, remove /dev/hda, power up.
Can't boot up!!
What am I missing here?
Is "lilo -v" the problelm?
Any help is appreciated.
J.
---------------------------------------------
Info with /dev/hda being boot disk.
/etc]$ cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md0 : active raid1 hda7[0] 513984 blocks [2/1] [U_]
md1 : active raid1 hda8[0] 513984 blocks [2/1] [U_]
unused devices: <none>
/etc]$
cat /etc/lilo.conf
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
default=linux_raid1
image=/boot/vmlinuz-2.2.12-20
label=linux
initrd=/boot/initrd-2.2.12-20.img
read-only
root=/dev/hda11
image=/boot/vmlinuz-2.2.12-20
label=linux_raid1
initrd=/boot/initrd.raid1.img
read-only
root=/dev/hda11
cat /etc/raidtab
# Config file for raid-1 device.
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 4
persistent-superblock 1
device /dev/hdc7
raid-disk 0
device /dev/hda7
raid-disk 1
raiddev /dev/md1
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 4
persistent-superblock 1
device /dev/hdc8
raid-disk 0
device /dev/hda8
raid-disk 1
---------------------------------------------
---------------------------------------------
Info with /dev/hdc as boot disk
cat /etc/lilo.conf
boot=/dev/hdc
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
default=linux_raid1
image=/boot/vmlinuz-2.2.12-20
label=linux
initrd=/boot/initrd-2.2.12-20.img
read-only
root=/dev/hdc11
image=/boot/vmlinuz-2.2.12-20
label=linux_raid1
initrd=/boot/initrd.raid1.img
read-only
root=/dev/hdc11
---------------------------------------------
__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/