linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] GRUB boot problem with lvm mirror type raid1
@ 2014-04-14  8:42 gk180984
  2014-04-14  9:40 ` Peter Rajnoha
  0 siblings, 1 reply; 4+ messages in thread
From: gk180984 @ 2014-04-14  8:42 UTC (permalink / raw)
  To: linux-lvm

Hi
I want to ask it is possible boot root file system (via GRUB) from LVM RAID1 volume?
I can boot root file system (with /boot) from linera LVM volume and from mirror volume, but when I create raid1 mirror GRUB can't boot from it:

lvconvert --type raid1 -m1 gsys/vsys

LVM mirror is work:
lvconvert -m1 gsys/vsys

I have two disk and use only LVM, not other raid software. GRUB have lvm module.
Thanks

-- 
Grzesiek

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

* Re: [linux-lvm] GRUB boot problem with lvm mirror type raid1
  2014-04-14  8:42 [linux-lvm] GRUB boot problem with lvm mirror type raid1 gk180984
@ 2014-04-14  9:40 ` Peter Rajnoha
  2014-04-14  9:51   ` [linux-lvm] Re : " georges.giralt
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Rajnoha @ 2014-04-14  9:40 UTC (permalink / raw)
  To: gk180984; +Cc: LVM general discussion and development

On 04/14/2014 10:42 AM, gk180984@interia.pl wrote:
> Hi
> I want to ask it is possible boot root file system (via GRUB) from LVM RAID1 volume?
> I can boot root file system (with /boot) from linera LVM volume and from mirror volume, but when I create raid1 mirror GRUB can't boot from it:
> 
> lvconvert --type raid1 -m1 gsys/vsys
> 
> LVM mirror is work:
> lvconvert -m1 gsys/vsys
> 
> I have two disk and use only LVM, not other raid software. GRUB have lvm module.

Grub doesn't support LVM RAID1 (it supports only RAID 4/5/6 type IIRC).

However, I don't recommend using /boot on LVM at the moment since
grub support for LVM is limited and unofficial. There's a plan to add
official and more robust support though - there are ongoing discussions
between grub and LVM team...

-- 
Peter

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

* [linux-lvm] Re : Re:  GRUB boot problem with lvm mirror type raid1
  2014-04-14  9:40 ` Peter Rajnoha
@ 2014-04-14  9:51   ` georges.giralt
  2014-04-14 10:39     ` Peter Rajnoha
  0 siblings, 1 reply; 4+ messages in thread
From: georges.giralt @ 2014-04-14  9:51 UTC (permalink / raw)
  To: LVM general discussion and development


----- Mail d'origine -----
De: Peter Rajnoha <prajnoha@redhat.com>
À: gk180984@interia.pl
Cc: LVM general discussion and development <linux-lvm@redhat.com>
Envoyé: Mon, 14 Apr 2014 11:40:36 +0200 (CEST)
Objet: Re: [linux-lvm] GRUB boot problem with lvm mirror type raid1

On 04/14/2014 10:42 AM, gk180984@interia.pl wrote:
> Hi
> I want to ask it is possible boot root file system (via GRUB) from LVM RAID1 volume?
> I can boot root file system (with /boot) from linera LVM volume and from mirror volume, but when I create raid1 mirror GRUB can't boot from it:
> 
> lvconvert --type raid1 -m1 gsys/vsys
> 
> LVM mirror is work:
> lvconvert -m1 gsys/vsys
> 
> I have two disk and use only LVM, not other raid software. GRUB have lvm module.

Grub doesn't support LVM RAID1 (it supports only RAID 4/5/6 type IIRC).

However, I don't recommend using /boot on LVM at the moment since
grub support for LVM is limited and unofficial. There's a plan to add
official and more robust support though - there are ongoing discussions
between grub and LVM team...

-- 
Peter
Hello !
May I chime in on this ? 
If the raid1 is made OUTSIDE lvm (ie soft raid1 giving /dev/md0 as a PV for LVM) will the Grub be apt to find it and boot ? 
Or is it the same case as above ? 
Thanks.

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

* Re: [linux-lvm] Re : Re:  GRUB boot problem with lvm mirror type raid1
  2014-04-14  9:51   ` [linux-lvm] Re : " georges.giralt
@ 2014-04-14 10:39     ` Peter Rajnoha
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Rajnoha @ 2014-04-14 10:39 UTC (permalink / raw)
  To: georges.giralt; +Cc: phcoder, LVM general discussion and development

On 04/14/2014 11:51 AM, georges.giralt@free.fr wrote:
> -- 
> Peter
> Hello !
> May I chime in on this ? 
> If the raid1 is made OUTSIDE lvm (ie soft raid1 giving /dev/md0 as a PV for LVM) will the Grub be apt to find it and boot ? 
> Or is it the same case as above ? 
> Thanks.

Grub should support MD RAID 0/1/4/5/6 and 10.

Though there's the same question about its limitations and
whether it's not similar to LVM support where we know that
an update in metadata format (e.g. adding new items or changing
the order of metadata items) can cause grub to not recognize
the volume anymore (since grub expects the metadata to be in
predefined and static form that doesn't change its layout in
future). There may be missing sanity checks too, like CRC checking
in case of LVM etc.

I'm not sure about LVM on MD at the moment. It depends on whether
grub supports device stacking. If grub supports iterative device/metadata
recognition, then yes, it's possible. (CC-ing phcoder to confirm)

-- 
Peter

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

end of thread, other threads:[~2014-04-14 10:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-14  8:42 [linux-lvm] GRUB boot problem with lvm mirror type raid1 gk180984
2014-04-14  9:40 ` Peter Rajnoha
2014-04-14  9:51   ` [linux-lvm] Re : " georges.giralt
2014-04-14 10:39     ` Peter Rajnoha

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).