From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1PPyEe-0005bm-PX for mharc-grub-devel@gnu.org; Tue, 07 Dec 2010 09:09:40 -0500 Received: from [140.186.70.92] (port=38385 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POjpJ-0003Fn-C7 for grub-devel@gnu.org; Fri, 03 Dec 2010 23:34:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1POjpG-0000Gl-Ie for grub-devel@gnu.org; Fri, 03 Dec 2010 23:34:25 -0500 Received: from cdptpa-omtalb.mail.rr.com ([75.180.132.120]:43435) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1POjpG-0000EU-Ei for grub-devel@gnu.org; Fri, 03 Dec 2010 23:34:22 -0500 X-Authority-Analysis: v=1.1 cv=pepdxKapwHuwCZNFD5uob2wvham6E+RljB0uXw08FdQ= c=1 sm=0 a=kj9zAlcOel0A:10 a=0URBxoVzdQso4VOmfIK3zA==:17 a=VwQbUJbxAAAA:8 a=ayC55rCoAAAA:8 a=7xnipElhNq6qhe751VcA:9 a=tZn3y6FaKxnLQQrMUhKnnCHPWhIA:4 a=CjuIK1q_8ugA:10 a=0URBxoVzdQso4VOmfIK3zA==:117 X-Cloudmark-Score: 0 X-Originating-IP: 67.11.24.240 Received: from [67.11.24.240] ([67.11.24.240:3371] helo=tiffany) by cdptpa-oedge03.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id DA/F2-19545-AC4C9FC4; Sat, 04 Dec 2010 04:34:19 +0000 Message-ID: From: "Leslie Rhorer" To: "'Neil Brown'" , "'Phillip Susi'" Date: Fri, 3 Dec 2010 22:34:15 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcuQ3aAybcQMgKElSuWHZCWLoNiaTACji9ow In-Reply-To: <20101201092508.7023f974@notabene.brown> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.3959 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Mailman-Approved-At: Tue, 07 Dec 2010 09:09:37 -0500 Cc: 'The development of GNU GRUB' Subject: RE: Software RAID and Fakeraid X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Dec 2010 04:34:27 -0000 > -----Original Message----- > From: linux-raid-owner@vger.kernel.org [mailto:linux-raid- > owner@vger.kernel.org] On Behalf Of Neil Brown > Sent: Tuesday, November 30, 2010 4:25 PM > To: Phillip Susi > Cc: The development of GNU GRUB; John Sheu; linux-raid@vger.kernel.org > Subject: Re: Software RAID and Fakeraid > > On Tue, 30 Nov 2010 14:54:40 -0500 Phillip Susi wrote: > > > On 11/25/2010 5:26 AM, John Sheu wrote: > > > What's the preferred way to differentiate BIOS fakeraid from regular > > > software mdraid? > > > > The only way I know of is detecting that it is a dmraid device as > > opposed to md, which is why grub does it that way. This worked well in > > the past when each tool exclusively handled one type of raid. > > > > > I ask this as I'm booting with GRUB2 off a system that has one of > those > > > Intel fakeraid chipsets. As of a few months ago, the mdadm package > has > > > supported these fakeraid setups, so the RAID array comes up as a > /dev/md### > > > device. This is unfortunate, as GRUB2 assumes that any device of the > type > > > /dev/md### must be a pure software RAID device, and in > > > util/grub-setup.c:939, tries to install itself to the RAID members > > > individually: > > > > For grub to support fakeraids activated by the md driver, it needs some > > way to find out that it is actually a fake raid, and not a software > > raid. Adding linux-raid to Cc list to see if they can suggest a way of > > doing that. > > My feeling is that grub just needs to be a bit more careful. > > If the members of the md array are partitions, then installing itself in > the > boot blocks of the devices holding those partitions always makes sense. > > If the members of the md array are whole devices, then installing grub in > those devices might make sense depending on specific details of the > metadata. The default should be that it doesn't make sense, but specific > cases do. > e.g. if the metadata (/sys/block/mdX/md/metadata_version) is 0.90 or 1.0, > and > the array is RAID1, then grub should install itself in the *array*, not in > the devices. > If the metadata is 1.1, then grub cannot install itself > If the metadata is 1.2, then grub can install itself at the start > If the metadata is external:imsm then (I think) grub should install itself > in > the array ... though there are some complexities there. > > I often wonder why people who add knowledge of md to grub etc don't at > least > let me know what they are doing in case I can see something obviously > wrong > with their approach.. I wonder why GRUB2 only supports 0.90 version superblocks on arrays from which it can boot. I wonder even more why they seem to keep it a deep, dark secret. I tore my hair out for days trying to figure out why my upgraded Linux box would not boot. Under legacy GRUB, it took some fiddling, but 1.x RAID1 arrays were bootable.