Re: Draft Mirrored Linux Mini How-to

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Thu, 6 Aug 2009, Harold Pritchett wrote:

...

In the event of a disk failure, follow the below procedure.

1.  Shutdown the system and remove the failed drive.

2. If the second (non boot) drive is the failing drive, skip to step 9 below.

3.  Move the second (non boot) drive to the boot drive position.

4.  Boot from the linux rescue CD/DVD and start the system, no network.

5.  Use the "chroot /mnt/sysimage" command to mount the system.

6.  Run the command "/sbin/grub-install /dev/sda" or whatever your drive is
    to write a boot image into the MBR of the new boot drive.

I think you may be making things a bit more complicated then they need to be.

Would it not make sense to just install grub on both drives right from the start (so on both /dev/sda and /dev/sdb)? If you then configure the bios to boot from sda first and if that fails boot from sdb then the system should be able to keep on rebooting etc. even if one drive has failed. It also means there is no need to move disks around or boot from a rescue CD to recover from a failed drive, just shut down, replace drive, reboot, partition, mdadm --add and finally install grub on the newly replaced drive.

In fact I'm pretty sure I've seen it described like that in other howtos, a quick google found this guy (using lilo but the teory is the same):
http://www.willert.dk/geek/raid.html

This one is a bit old, but the theory is the same there as well and it is using grub:
http://www.somedec.com/downloads/howto-bootable-linux-raid1.html

Other than that I don't see any obvious problems with your description of the process.

BR,

/Fredrk Pettersson
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux