grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* does grub understand LVM raid1 layouts?
@ 2014-08-28 13:31 Bayard Bell
  2014-08-28 15:49 ` Andrei Borzenkov
  2014-09-27  9:00 ` Andrei Borzenkov
  0 siblings, 2 replies; 3+ messages in thread
From: Bayard Bell @ 2014-08-28 13:31 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

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.

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?

Cheers,
Bayard

[-- Attachment #2: Type: text/html, Size: 1329 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-27  9:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-28 13:31 does grub understand LVM raid1 layouts? Bayard Bell
2014-08-28 15:49 ` Andrei Borzenkov
2014-09-27  9:00 ` Andrei Borzenkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).