Re: Best Practice for Raid1 Root

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

 



On Wed, 14 Jan 2004, Terrence Martin wrote:

> The boot loader is grub and I want both /boot and / raided.
>
> In the event of a failure of hda I would like the system to switch to
> hdc. This works fine. However what I have had problems with is if the
> system reboots. If /dev/hda is unavailable I no longer have a disk with
> a boot sector set up correctly. Unless I have a floppy or CDROM with a
> boot loader the system will not come up.
>
> So my main question is what is the best practice to get a workable boot
> sector on /dev/hdc?

Use LILO.

Works just fine.

My standard layout on a 2-disk systems these days is usuely something like

  /		256MB
  swap		1GB (depends on system memory though)
  /usr		2GB
  /var		just under half of rest of disk
  /archive	rest of disk

I don't bother with a separate /boot partition. It's not needed in these
enlightened days of BIOSes that can boot from modern disks, and in
any-case a small / partition is inside the 1024 cylinder limit anyway.
Disks are cheap and I can keep an N-day archive on the same system (see
rsync documentation) which is normally re-mounted read only and then that
can be dumped to tape, etc.

I've deployed a lot of little servers and routers like this and I'm
pleased with their usbility.

The runes in a lilo.conf file are:

  boot=/dev/md0
  root=/dev/md0
  raid-extra-boot=/dev/hda,/dev/hdc

I've no idea how to integrate lilo into a modern RH distribution though. I
use Debian for all my stuff.

Gordon
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
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