From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1XN1xl-0006bs-Q9 for mharc-grub-devel@gnu.org; Thu, 28 Aug 2014 11:50:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XN1xa-0006V0-S1 for grub-devel@gnu.org; Thu, 28 Aug 2014 11:50:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XN1xR-0008Lo-R8 for grub-devel@gnu.org; Thu, 28 Aug 2014 11:50:02 -0400 Received: from mail-lb0-x22e.google.com ([2a00:1450:4010:c04::22e]:61578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XN1xR-0008Le-Ja for grub-devel@gnu.org; Thu, 28 Aug 2014 11:49:53 -0400 Received: by mail-lb0-f174.google.com with SMTP id p9so1129143lbv.5 for ; Thu, 28 Aug 2014 08:49:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=PbUwEzygJysYPSDgQgG6EbRwwRGlmmw5inRvvC5XqLc=; b=Loh/PWcYbVxlgNsE2x+V89rbIYoYsH04rLFXrVQtVxR3kLUT/fSGXF30vJPsPEWqTv CXDjapcapOx/u6MQ0MB5RIfAf5F9PSGWbsi17+GlIWMCQeB8lBGoA2/4Rt/Oj3z/MpoV yjTtQ1Ua1WZGm2j3sDcLBviPGlvPyWrjhtYb9DSbwBXIxtT4R5gDMxMX4LoUFvvUBn+K xciRS2zet+EMZXTa1ZqpSJD+e1VOSHJOhUHOE78E3lR/1Vco69yPP5qDV+67bPLX7W7D TebTv/JcTPrY6qlneNjCcoI/NzSXQvjoCDJnncB6rrD+Ox82C/VxrSkDNVWOTmWVGuXo bEIw== X-Received: by 10.152.27.134 with SMTP id t6mr5346979lag.56.1409240992191; Thu, 28 Aug 2014 08:49:52 -0700 (PDT) Received: from opensuse.site ([37.190.69.201]) by mx.google.com with ESMTPSA id ai1sm6543312lbd.12.2014.08.28.08.49.50 for (version=SSLv3 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Aug 2014 08:49:51 -0700 (PDT) Date: Thu, 28 Aug 2014 19:49:47 +0400 From: Andrei Borzenkov To: The development of GNU GRUB Subject: Re: does grub understand LVM raid1 layouts? Message-ID: <20140828194947.491c71c4@opensuse.site> In-Reply-To: References: X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.22; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22e Cc: buffer.g.overflow@gmail.com X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 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: Thu, 28 Aug 2014 15:50:12 -0000 В Thu, 28 Aug 2014 14:31:30 +0100 Bayard Bell пишет: > In moving my boot device to mirrored LVM under Debian jessie, I ended up > unable to boot. I thought my problem was that I failed to run install-grub > after adding GRUB_PRELOAD_MODULES=lvm to /etc/default/grub, but when I > finally sorted out a working PXE image for rescue, I found that I was > unable to install while mirrored. That appears to be in part because Debian > has taken upgrades to LVM2 that change the default mirroring layout from > "mirror" to "raid1" (mirror_segtype_default = "raid1" in /etc/lvm/lvm.conf; > the lvm pages are also clear on this distinction and the defaults), which > results in an inability to successfully probe /boot/grub, which breaks > grub-install. The clearest indication I could find of this as likely root > cause was a debug message from grub-probe "Unknown LVM format raid1". > Looking at the source head, it appears that there's first a check for raidX > in lines 580-583 of grub-core/disk/lvm.c but that the subsequent switch at > lines 587-600 provides for raid[456] but not raid1, which isn't defined in > include/grub/diskfilter.h. > Is there functional difference (to the extent grub is using it) between mirror and raid1 in LVM? If not, just use GRUB_DISKFILTER_MIRROR in this case. > I'm looking at doing a bit more debug to confirm this before assessing fix > options, but am I on the right track thus far? > Yes. Patch is appreciated.