Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1L85zD-0006X6-G4 for mharc-grub-devel@gnu.org; Wed, 03 Dec 2008 23:38:47 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L85zB-0006Wc-PC for grub-devel@gnu.org; Wed, 03 Dec 2008 23:38:45 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L85z9-0006WH-C9 for grub-devel@gnu.org; Wed, 03 Dec 2008 23:38:44 -0500 Received: from [199.232.76.173] (port=44782 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L85z9-0006WE-6e for grub-devel@gnu.org; Wed, 03 Dec 2008 23:38:43 -0500 Received: from ti-out-0910.google.com ([209.85.142.186]:8020) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L85z8-0000Z7-E7 for grub-devel@gnu.org; Wed, 03 Dec 2008 23:38:42 -0500 Received: by ti-out-0910.google.com with SMTP id u5so2492377tia.10 for ; Wed, 03 Dec 2008 20:38:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=5iw7wvS3QnDwf0zWn4NEuyr045G4s8q900kcn4Ujl1k=; b=T2Tpgf/OwhTxnevBYSV+fvTcfcJyFem6yZMv4UtJyslyX0MhcrCOxG18cvoQuoumX7 gQKPBY3znIh7qwYBpCT/EJJ+6Xf/xiWLW8txreiODNeUnu/6pqfAj5EaA3uHUcNA9vlH pUQCfRLUeYZ7G7Ecdua5codmY9GH01OzMbBmQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=absqUsxf+MnaL/qNTNTtoDhEODkCKguG0LxoUgZ5UkW0tHIAZ4d7r8CYX40rIRpkL5 zmzcN5Sm197T2FvYggoG+6gFb7FXqjBhmEsgp0D4dMA/i1+HMiSX/Hw1Wx54Ve3IAFME QxSxJ9hSFkY/XaggJfMLqVOoQ8i7TyX2hVSyA= Received: by 10.110.61.16 with SMTP id j16mr2998654tia.46.1228365518638; Wed, 03 Dec 2008 20:38:38 -0800 (PST) Received: by 10.110.105.16 with HTTP; Wed, 3 Dec 2008 20:38:38 -0800 (PST) Message-ID: Date: Thu, 4 Dec 2008 12:38:38 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <493708F9.4000704@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <492B500A.8050506@gmail.com> <493708F9.4000704@gmail.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: LVM & RAID10 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2008 04:38:45 -0000 On Thu, Dec 4, 2008 at 6:32 AM, Wojciech Pyczak wrote: > >>> (...)The only clue I have is >>> (completly mysterius to me) error message: "We don't support multiple >>> metadata areas". >>> >> >> Hi, >> >> This error come from lvm, perhaps you can try raid10 first. >> >> > > I played a bit when I had free time and... > - I learned to ignore grub error messages :D > - RAID10 seems to work OK > - LVM @ RAID10 @ single partition (on each disk) results in above error > message but if I add small partition (so there are 2 partitions per disk) > there is no error. I tried with different number of LVs, different LV names, > anything.. could it be some error in grub after all ? > > Anyway even if there is no such error grub doesn't work - it appers that > core.img doesn't include LVM module (I tried to specify it manually) or just > doesn't install at all, of course grub-setup return some error (unknown root > device or something..) but in the other hand I saw the same error with root > filesystem on RAID device and it actually worked. > There is also another problem: when I installed grub on single HD with > LVM module in core.img, I couldn't see any LVM devices in the system (only > hdX, mdX..), I saw something similar on some mailing list (debian ?) - > removing LVM module then inserting it again fixed that problem, however in > my case it didn't worked. > I'm thinking about installing grub by hand, i.e. creating core.img and > copying it along with boot.img after mbr, will that work ? (I just want to > bypass grub-setup). Hi, Perhaps you can describe the steps used to create the LVM volume, along with version number of tools. Let me see if the error can be recreated in qemu. > >> >> Yes, it should work out of the box, although there is a small catch. >> If you're using raid5/raid6 and one/two of the disk is missing or >> corrupted, you need to add module raid5rec/raid6rec using the --module >> option in grub-install. >> > > Just curiosity - why it's in separate modules ? It's caused by size limitation of mbr, which is normally 63 sectors. When you use the following modules: biosdisk pc reiserfs lvm mdraid raid6 raid6rec The size of core.img would exceed 63 sectors, so that it can't be installed to mbr. -- Bean