After succesfully installing a raid1 (with disk hda and hdc) and lvm, I'm now testing a disk failure. I can easily do this as the system has been equipped with a removable harddisk slot for hda. Before I continue, I can start the system as configured by yast that is using hd0,0. The other raid disk is hd1,0 (which is confirmed by 'find /boot/vmlinuz on the grub prompt). I added an entry to grub/menu.lst that uses hd1,0. I can successfully boot the system now using either hd0,0 or hd1,0. After I remove hda from the slot the system stops in an empty grub menu (ascii). Disk hdc is bootable, ... oh wait hdc's mbr is empty of course... Is this the reason that it is not starting? Just tried to install grub on hdc, but the answer from the system is: # grub-install /dev/hdc /dev/md0 does not have a corresponding bios drive. Is it possible to alter the MBR in /dev/hdc? ps: I can also start the system using by selecting 'installation' from the suse disk and than -> boot installed OS -> this finds that a bootable system on /dev/md0 (while hda is removed from the system)... -- Richard Bos Without a home the journey is endless
On Sunday 22 May 2005 06:10 pm, Richard Bos wrote: <SNIP>
Is it possible to alter the MBR in /dev/hdc?
ps: I can also start the system using by selecting 'installation' from the suse disk and than -> boot installed OS -> this finds that a bootable system on /dev/md0 (while hda is removed from the system)...
-- Richard Bos Without a home the journey is endless
From an older message: Once the system is up, install the grub software and then install grub on both MBRs like this: grub Grub>device (hd0) /dev/hda Grub>root (hd0,0) and then: Grub>setup (hd0) Grub>device (hd0) /dev/hdb Grub>root (hd0,0) and then: Grub>setup (hd0) quit Now that grub is on both drives just add an extra entry in menu.1st like this: title Linux [MIRROR] kernel (hd1,1)/boot/vmlinuz root=/dev/md2 vga=0x317 splash=silent desktop resume=/dev/md3 showopts initrd (hd1,1)/boot/initrd This is just a copy of whatever you have for linux already but changing the drive number in parenthesis. Depending on how your motherboard's BIOS handles a failed drive, you may or may not need the second entry to boot. HTH, -- Louis Richards
Op maandag 23 mei 2005 13:29, schreef Louis Richards:
From an older message:
Once the system is up, install the grub software and then install grub on both MBRs like this:
grub
Grub>device (hd0) /dev/hda Grub>root (hd0,0) and then: Grub>setup (hd0)
Grub>device (hd0) /dev/hdb Grub>root (hd0,0) and then: Grub>setup (hd0)
quit
This seems to work. But I don't think I fully understand how....
Grub>device (hd0) /dev/hda
Alright first disk thus hd0
Grub>root (hd0,0) and then: Grub>setup (hd0)
See above
Grub>device (hd0) /dev/hdb
Why is it hd0 for the second disk and not hd1?
Grub>root (hd0,0) and then: Grub>setup (hd0)
See above.
Now that grub is on both drives just add an extra entry in menu.1st like this:
title Linux [MIRROR] kernel (hd1,1)/boot/vmlinuz root=/dev/md2 vga=0x317 splash=silent desktop resume=/dev/md3 showopts initrd (hd1,1)/boot/initrd
This is just a copy of whatever you have for linux already but changing the drive number in parenthesis.
Depending on how your motherboard's BIOS handles a failed drive, you may or may not need the second entry to boot.
In my case I don't need to specify them. -- Richard Bos Without a home the journey is endless
On Monday 23 May 2005 03:04 pm, Richard Bos wrote:
Op maandag 23 mei 2005 13:29, schreef Louis Richards:
From an older message:
Once the system is up, install the grub software and then install grub on both MBRs like this:
grub
Grub>device (hd0) /dev/hda Grub>root (hd0,0) and then: Grub>setup (hd0)
Grub>device (hd0) /dev/hdb Grub>root (hd0,0) and then: Grub>setup (hd0)
quit
This seems to work. But I don't think I fully understand how....
Grub>device (hd0) /dev/hda
Alright first disk thus hd0
Grub>root (hd0,0) and then: Grub>setup (hd0)
See above
Grub>device (hd0) /dev/hdb
Why is it hd0 for the second disk and not hd1? <SNIP>
You are telling grub that device hd0 is now hdb. In other words, grub needs to see hdb as the main system drive so that will be the drive that has the mbr written to. In my case, it was actually hde. I added an additional ide card and used only one disk per channel. Just make it whatever your second bootable disk is. hda = drive 1 bootable hdb hdc = cdrom hdd hde = drive 2 bootable hdf hdg = drive 3 hdh -- Louis Richards
participants (2)
-
Louis Richards
-
Richard Bos