linux-bcache.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* grub and bcache
@ 2012-08-12 11:17 James Harper
       [not found] ` <6035A0D088A63A46850C3988ED045A4B299F5324-mzsoxcrO4/2UD0RQwgcqbDSf8X3wrgjD@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: James Harper @ 2012-08-12 11:17 UTC (permalink / raw)
  To: linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

Is the underlying bdev bcache format such that bios/grub won't be able to boot off it?

Or to put it another way, I am wondering whether I can get away with:

/dev/sd[ab]
 md0
  bcache
   lvm
    lv-root
    lv-boot

like I do now without bcache and have grub find the lv-boot, or if I need a separate md device to hold /boot like:

/dev/sd[ab]
  md0
    boot
  md1
    bcache
      lvm
        lv-root
        lv-boot

thanks

James

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

* Re: grub and bcache
       [not found] ` <6035A0D088A63A46850C3988ED045A4B299F5324-mzsoxcrO4/2UD0RQwgcqbDSf8X3wrgjD@public.gmane.org>
@ 2012-08-13 21:26   ` Kent Overstreet
  0 siblings, 0 replies; 2+ messages in thread
From: Kent Overstreet @ 2012-08-13 21:26 UTC (permalink / raw)
  To: James Harper; +Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On Sun, Aug 12, 2012 at 11:17:39AM +0000, James Harper wrote:
> Is the underlying bdev bcache format such that bios/grub won't be able to boot off it?

Bios isn't an issue, because the mbr just takes up the first 512 bytes
of the hard drive and bcache leaves the first 4k of the device unused.
But grub needs to be able to read everything, and it doesn't know
anything about bcache devices.

> 
> Or to put it another way, I am wondering whether I can get away with:
> 
> /dev/sd[ab]
>  md0
>   bcache
>    lvm
>     lv-root
>     lv-boot
> 
> like I do now without bcache and have grub find the lv-boot, or if I need a separate md device to hold /boot like:

Yeah, this is the one you'll need.

> 
> /dev/sd[ab]
>   md0
>     boot
>   md1
>     bcache
>       lvm
>         lv-root
>         lv-boot
> 
> thanks
> 
> James
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bcache" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2012-08-13 21:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-12 11:17 grub and bcache James Harper
     [not found] ` <6035A0D088A63A46850C3988ED045A4B299F5324-mzsoxcrO4/2UD0RQwgcqbDSf8X3wrgjD@public.gmane.org>
2012-08-13 21:26   ` Kent Overstreet

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