<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: grub, yaird, mdadm, and missing drives</title>
	<atom:link href="http://www.outflux.net/blog/archives/2006/04/23/grub-yaird-mdadm-and-missing-drives/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.outflux.net/blog/archives/2006/04/23/grub-yaird-mdadm-and-missing-drives/</link>
	<description>code is freedom -- patching my itch</description>
	<pubDate>Tue, 06 Jan 2009 13:57:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Derek P. Moore</title>
		<link>http://www.outflux.net/blog/archives/2006/04/23/grub-yaird-mdadm-and-missing-drives/#comment-236</link>
		<dc:creator>Derek P. Moore</dc:creator>
		<pubDate>Mon, 24 Apr 2006 15:33:42 +0000</pubDate>
		<guid isPermaLink="false">http://outflux.net/blog/archives/2006/04/23/grub-yaird-mdadm-and-missing-drives/#comment-236</guid>
		<description>Hey, Kees,

I had to figure out this problem for Linux cubes we're installing into client sites at work.  Actually, the second fix you point to is the proper way to configure GRUB for RAID-1.  You should find it works beautifully.

The problem is because GRUB probes the BIOS directly to build its drive numbering scheme.  With the GRUB config (/boot/grub.conf or /boot/grub/menu.lst) being mirrored onto both drives, that one file tells GRUB to boot off of, say, (hd0), even when GRUB is running off of (hd1) because (hd0) is down.  So when installing GRUB onto the second drive, you alias (hd0) to (hd1) with the command "device (hd0) /dev/sdb", then install GRUB onto that drive or partition [with "root (hd0,0)" and "setup (hd0)"].

At work we use SUSE Linux 10.0 (unfortunately), and its installer, even though it supports RAID and GRUB, doesn't take this into account, so you have to install GRUB onto the second drive manually.  I think this is the situation for most distributions.  I don't know if Fedora's installer (anaconda) configures GRUB properly when booting from a RAID-1 device, but I hope it would (I use Fedora at home, but don't have the funds to run RAID-1 on my personal machines).

At work I have a post-install script that hardware techs run on every new Linux cube which automates (among other things) the installing of GRUB onto their secondary drives.

It's not at all that GRUB doesn't support this situation, because it does with device aliasing.  It's that (most or all) distribution installers don't support this situation.</description>
		<content:encoded><![CDATA[<p>Hey, Kees,</p>
<p>I had to figure out this problem for Linux cubes we&#8217;re installing into client sites at work.  Actually, the second fix you point to is the proper way to configure GRUB for RAID-1.  You should find it works beautifully.</p>
<p>The problem is because GRUB probes the BIOS directly to build its drive numbering scheme.  With the GRUB config (/boot/grub.conf or /boot/grub/menu.lst) being mirrored onto both drives, that one file tells GRUB to boot off of, say, (hd0), even when GRUB is running off of (hd1) because (hd0) is down.  So when installing GRUB onto the second drive, you alias (hd0) to (hd1) with the command &#8220;device (hd0) /dev/sdb&#8221;, then install GRUB onto that drive or partition [with "root (hd0,0)" and "setup (hd0)"].</p>
<p>At work we use SUSE Linux 10.0 (unfortunately), and its installer, even though it supports RAID and GRUB, doesn&#8217;t take this into account, so you have to install GRUB onto the second drive manually.  I think this is the situation for most distributions.  I don&#8217;t know if Fedora&#8217;s installer (anaconda) configures GRUB properly when booting from a RAID-1 device, but I hope it would (I use Fedora at home, but don&#8217;t have the funds to run RAID-1 on my personal machines).</p>
<p>At work I have a post-install script that hardware techs run on every new Linux cube which automates (among other things) the installing of GRUB onto their secondary drives.</p>
<p>It&#8217;s not at all that GRUB doesn&#8217;t support this situation, because it does with device aliasing.  It&#8217;s that (most or all) distribution installers don&#8217;t support this situation.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
