linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Best Practice for Raid1 Root
@ 2004-01-14 23:43 Terrence Martin
  2004-01-15  0:06 ` Christian Kivalo
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Terrence Martin @ 2004-01-14 23:43 UTC (permalink / raw)
  To: linux-raid

Hi,

I wanted to post this question for a while.

On several systems I have configured a root software raid setup with two 
IDE hard drives. The systems are always some version of redhat. Each 
disk has its own controller and is partitioned similar to the following, 
maybe with more partitions, but this is the minimum.

hda1 fd   100M
hda2 swap 1024M
hda3 fd   10G

hdc1 fd   100M
hdc2 swap 1024M
hdc3 fd   10G

The Raid devices would be

/dev/md0 mounted under /boot made of /dev/hda1 and /dev/hdc1
/dev/md1 mounted under / made of /dev/hda3 and /dev/hdc3

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? How are other people making sure that their system 
remains bootable after a disk failure of the boot disk? Is it even 
possible with software raid and PC BIOS? Also when you replace /dev/hda 
how are you getting a valid boot sector on that disk?

I have found grub to often be problematic so that even when I move the 
good drive to be hda grub does not like to install itself correctly.

I am sure I am approaching this incorrect in some way, I am just not 
sure what is the right way.

Terrence Martin
UCSD Physics


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-01-18 21:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-14 23:43 Best Practice for Raid1 Root Terrence Martin
2004-01-15  0:06 ` Christian Kivalo
2004-01-15  0:32   ` Michael Tokarev
2004-01-15 12:48     ` Luca Berra
2004-01-15  0:26 ` Michael Tokarev
2004-01-15  0:59   ` Terrence Martin
2004-01-15  1:22     ` Terrence Martin
2004-01-15  8:42 ` Gordon Henderson
2004-01-18 21:58 ` Frank van Maarseveen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).