Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #157483

Re: How to Boot with LVM

From Pascal Hambourg <pascal@plouf.fr.eu.org>
Newsgroups linux.debian.user
Subject Re: How to Boot with LVM
Date 2015-09-06 22:40 +0200
Message-ID <q5OTf-15a-11@gated-at.bofh.it> (permalink)
References <q5ybL-2wJ-7@gated-at.bofh.it>
Organization Plouf !

Show all headers | View raw


Hello,

ray a écrit :
> I would like to configure LVMs for everything including boot.  I have
> read that others have done this but an I have not found the method.
(...)
> System description:
> amd64 with a HDD and 3 pairs of SSDs.  The SSD are set up as RAID0 in
> pairs.  The HDD currently hosts Debian 8.  I used this to configure the
> SSDs to overlay the RAID0s with an LVM.  The RAIDs were built on a
> second partition of each SSD.  The first partition is 1G for potential
> boot use.  

LVM on multiple RAID0 ? You don't care much about reliability, do you ?
Lose a single disk and you may lose all your LVM.

> I use a USB stick to load the second Debian.  I have a lVM partition
> for the new installation.  When I select it, the installer (in manual
> mode) says it is not bootable and go back to setup to correct.  When I
> go back to setup, I don't see any way to do anything but select a VG,
> dm, sdx, or HDD.

I assume the architecture is i386 or amd64.

If /boot is on LVM and you choose GRUB as the bootloader in BIOS/legacy
mode (grub-pc), you must select a whole disk.

If the disk has an MSDOS partition table, it should have enough
unallocated space before the first partition ; modern partition
management tools including the Debian installer will leave ~1 MB
unallocated space by default, which is enough.

If the disk has a GPT partition table, it should contain a small
unformatted partition of type "BIOS boot" or "bios_grub" ; again, 1 MB
is enough. If the disk is larger than 2 TiB, the BIOS boot partition
should be located within the 2 TiB boundary so that it can be accessed
through the BIOS disk functions.

The unallocated space or BIOS boot partition is required to install the
GRUB's core image which can be booted by the GRUB's boot image installed
in the MBR of the disk. The core image will include modules to be able
to read RAID and LVM volumes in order to access other required boot
files located in /boot. Otherwise, GRUB's core image will be installed
in /boot/grub and retrieved by GRUB's boot image using block lists ;
however this is less reliable because blocks may be moved around by LVM
or the filesystem.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to Boot with LVM ray <ray@aarden.us> - 2015-09-06 04:50 +0200
  Re: How to Boot with LVM Pascal Hambourg <pascal@plouf.fr.eu.org> - 2015-09-06 22:40 +0200
    Re: How to Boot with LVM ray <ray@aarden.us> - 2015-09-07 02:30 +0200
      Re: How to Boot with LVM Pascal Hambourg <pascal@plouf.fr.eu.org> - 2015-09-07 10:40 +0200
        Re: How to Boot with LVM ray <ray@aarden.us> - 2015-09-08 01:50 +0200
          Re: How to Boot with LVM Pascal Hambourg <pascal@plouf.fr.eu.org> - 2015-09-08 12:40 +0200
            Re: How to Boot with LVM ray <ray@aarden.us> - 2015-09-08 14:00 +0200
              Re: How to Boot with LVM Pascal Hambourg <pascal@plouf.fr.eu.org> - 2015-09-08 15:00 +0200
  Re: How to Boot with LVM Rick Thomas <rbthomas@pobox.com> - 2015-09-07 13:20 +0200
    Re: How to Boot with LVM Pascal Hambourg <pascal@plouf.fr.eu.org> - 2015-09-07 14:40 +0200
    Re: How to Boot with LVM ray <ray@aarden.us> - 2015-09-08 02:00 +0200
      Re: How to Boot with LVM ray <ray@aarden.us> - 2015-09-08 03:40 +0200
        Re: How to Boot with LVM ray <ray@aarden.us> - 2015-09-08 14:10 +0200
          Re: How to Boot with LVM Pascal Hambourg <pascal@plouf.fr.eu.org> - 2015-09-08 15:10 +0200
            Re: How to Boot with LVM ray <ray@aarden.us> - 2015-09-09 04:00 +0200
              Re: How to Boot with LVM Pascal Hambourg <pascal@plouf.fr.eu.org> - 2015-09-09 21:10 +0200
                Re: How to Boot with LVM ray <ray@aarden.us> - 2015-09-10 02:40 +0200
                Re: How to Boot with LVM Pascal Hambourg <pascal@plouf.fr.eu.org> - 2015-09-10 17:00 +0200
                Re: How to Boot with LVM ray <ray@aarden.us> - 2015-09-12 04:30 +0200
                Re: How to Boot with LVM ray <ray@aarden.us> - 2015-09-12 05:10 +0200
                Re: How to Boot with LVM ray <ray@aarden.us> - 2015-09-14 02:40 +0200
                Re: How to Boot with LVM David Wright <deblis@lionunicorn.co.uk> - 2015-09-10 18:10 +0200
                Re: How to Boot with LVM ray <ray@aarden.us> - 2015-09-12 05:10 +0200
      Re: How to Boot with LVM Rick Thomas <rbthomas@pobox.com> - 2015-09-08 10:50 +0200
        Re: How to Boot with LVM ray <ray@aarden.us> - 2015-09-09 04:10 +0200

csiph-web