<br><br><div><span class="gmail_quote">On 9/1/05, <b class="gmail_sendername">Les Mikesell</b> <<a href="mailto:les@futuresource.com">les@futuresource.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Grub doesn't even install correctly on the first drive of<br>a RAID1 with Centos. Fortunately it is not difficult to</blockquote><div><br>
<br>
You would think it should set it up right on the first drive at least!?!? <br>
 </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">do it by hand and you only have to do it once.  You<br>can either ctl-alt-F2 to a shell prompt at the end
<br>of an install before the reboot or boot from the<br>install cd with 'linux rescue' and chroot to /mnt/sysinstall<br>after it mounts the drives for you.  Then:<br><br>grub<br>> device (hd0) /dev/sda<br>> root (hd0,0)
<br>> setup (hd0)<br>> device (hd1) /dev/sdb<br>> root (hd1,0)<br>> setup (hd1)<br>> quit<br><br>If you are in rescue mode, exit twice to reboot.<br><br>That assumes scsi disks and /boot as the first partition
<br>of each.  Whether it works in practice or not will depend<br>partly on how the drives fail.  Some failure modes will<br>still hang the system.  If you simulate a failure by<br>removing the 1st drive in a scsi system, it will usually
<br>boot from the 2nd but all the device names will shift<br>up so your swap or other unlabled partitions may land<br>in the wrong place.<br></blockquote></div><br>
Wow thanks for the excellent reply Les! I was thinking of four primary
partitions having both sda and sdb exactly the same.(36 GB each)<br>
<br>
/         13 GB<br>
/home  20 GB <br>
/var     2 GB<br>
swap   1 GB (since I've got 4 GB of ram and I never hit swap)<br>
<br>
So if sda failed, would the swap on the second drive shift?  BTW I
thought multiple swap partitions on seperate drives automatically use
raid 0. So do I need to state that they are a raid device? Wait I just
thought about this for a second. I think they HAVE to be defined as a
raid1 device. Assume you go into swap then one drive fails. If it's
raid0 you are going down bigtime!! So I think they have to be
explicitly defined as a raid1 device.<br>
<br>-- <br>Robert Arkiletian<br>C++ GUI tutorial <a href="http://fltk.org/links.php?V19">http://fltk.org/links.php?V19</a>