Emergency repairs with GRUBThis server lost its boot drive today, which occasioned a certain amount
of flailing. We use mirrored drives, but there were two problems: the
dead disk wasn't actually dead, just puking, and the second disk
hadn't been set up to be bootable (although it had a fully populated
copy of the Although GRUB people may hem and haw about it, GRUB needs boot blocks
and other magic setup done just like LILO does (some more details are
here). If you don't have them set up, it doesn't matter
that all of the GRUB stuff is sitting in a First attempt: boot the FC2 CD in rescue mode. This failed to bring up the RAID-1 partitions on the remaining drive, so it couldn't find our install, so it went nowhere. (I don't know why it failed; possibly the rescue mode refuses to bring up incomplete RAID-1 mirrors.) Second attempt: boot through a GRUB boot floppy. This is the one area where GRUB is a clear win over LILO; armed with a boot floppy, you can boot anything that is sitting on a readable partition. The easy way to make a boot floppy is with:
(The fine manual has a more complicated incantation with multiple
This worked, once I had a working floppy. (Familiarity with kernel boot arguments is recommended.) With the system at least booted, I could make the drive bootable. The
important thing was to fix GRUB's idea of what Linux drive was what BIOS
drive; since The GRUB documentation will tell you to install GRUB with
Our boot partition copy was Fortunately the drive that died had starting glitching out a few days
earlier, so we had a replacement drive already on hand. Once the system
was at least up (and the mail backlog had cleared), I swapped it in
as Apart from that, bringing the new drive into service was pretty much like the last time we had to do this. (Department of belated corrections, November 14th: I've changed the
|
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |