Re: Managing LVM + RAID install on a machine with EFI

Rémy Dernat <[email protected]>
Newsgroups gmane.linux.debian.fai
Message-ID <CAA6Bz=fcjH3s-AxeOtky1B2NUFuC1i2ZBKHv2ZtD+34r8ujU2Q@mail.gmail.com>
Thomas,

Ok, this is helpful. I found this blog :
https://terrydactyl10.wordpress.com/2015/11/04/centos-7-with-mdadm-software-raid-and-uefi-boot/

So here is my resulting disk_config file now :

# example of new config file for setup-storage
#
# <type> <mountpoint> <size>   <fs type> <mount options> <misc options>

disk_config disk1 disklabel:gpt fstabkey:uuid bootable:1
primary - 500 - -
primary /boot/efi 1G vfat rw createopts="-F32"
primary swap 2G swap sw,pri=1
primary - 0- - -

#disk_config disk2 sameas:disk1
disk_config disk2 disklabel:gpt fstabkey:uuid
primary - 500 - -
primary /boot/efi2 1G vfat rw createopts="-F32"
primary swap 2G swap sw,pri=1
primary - 0- - -

disk_config raid disklabel:gpt fstabkey:uuid
raid1 /boot disk1.1,disk2.1 ext4 rw,noatime,errors=remount-ro
raid1 - disk1.4,disk2.4 - -

disk_config lvm fstabkey:uuid
vg vg_system md1
vg_system-root / 40G-200G ext4 rw,noatime
vg_system-tmp /tmp 20G-50G ext4 rw,noatime,nosuid,nodev
vg_system-scratch /scratch 30%- ext2 rw,noatime
##vg_system-home /home 30%- ext4 rw,noatime,nosuid,nodev

Maybe I can try it now.

Best regards,

Le mer. 10 mars 2021 à 10:24, Thomas Lange <[email protected]> a écrit :
>
>
> >>>>> On Wed, 10 Mar 2021 10:00:30 +0100, Rémy Dernat <[email protected]> said:
>
>     > disk config disk1
> First, you need a GPT disk label for UEFI.
>
>     > disk_config raid fstabkey:uuid
>     > radi1 /boot/efi disk1.1,disk2.1 vfat  rw createopts="-F32"
>
> I'm not sure if raid for /boot/efi will work, since the UEFI bios must
> read this partition. UEFI does not have any knowledge about linux raid.
>
> Search the internet for UEFI /boot/efi and raid setup. IIRC people do
> not use raid on /boot/efi but they have a secondary copy which must be
> synced if you change files on the original /boot/efi partition. And
> you need two entries in your UEFI bios for both /boot/efi copies.
>
> --
> viele Grüße Thomas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.