Unclear on how to recover from failed boot drive? SDA has failed but I'm still able to boot. I need to replace primary boot drive. Upon initial build I created a RAID 1 mirror of /boot dir/partition. How do I get system to boot off second or third drive so that I can replace /sda? I've successfully replaced /sdb & sdc raid 5 drives in the past but have always struggled to get primary boot drive replaced. Read HOWTO's in the past but it's been an unsuccessful pain and eventually just did a full rebuild.
I just read another HOWTO and as confused as I was several months ago, nothing on getting system to boot from alternate drive.
On Thu, May 22, 2008 at 3:42 PM, Dean Maluski dmaluski@n1ety.com wrote:
Unclear on how to recover from failed boot drive? SDA has failed but I'm still able to boot. I need to replace primary boot drive. Upon initial build I created a RAID 1 mirror of /boot dir/partition. How do I get system to boot off second or third drive so that I can replace /sda?
If you have mirrored /boot, when grub kicks in, go into edit mode and replace root (hd0,0) with (hd1,0) or so on.
If you want to do this automatically, you should have had fallback parameter in the menu.lst and two or more copies of the kernel entries but the change above will let you boot from one of the other drives.
Right now I am converting a system that was incorrectly set up to software RAID1. Hope it works, the server is in the wrong continent. :-) If only the sysadmin installed it with RAID1 to start with.
So the grub should look like:
default=0 fallback=1 and then two blocks of the same kernel configuration, one with root (hd0,0) and one with root (hd1,0).
The rest should be logical volumes or /dev/md references so the kernel will pick up the right one, hopefully.