You are not logged in.

#1 2015-10-15 12:14:19

janoliver
Member
Registered: 2011-06-01
Posts: 54

Question regarding "Software RAID and LVM" wiki article

Hi, I am trying to set up a software RAID1 with two identical hard drives in combination with LVM. I am following the instructions in the wiki article Software RAID and LVM, but I find the article is not clear (or not beginner friendly) in certain spots, so here are a few questions.

I created three partitions with a GPT partition table on each hard drive, /dev/md2 -> /boot (FAT32), /dev/md1 -> swap and /dev/md0 -> /, just like the article told me to. I added /dev/md0 to an LVM array, and created two logical volumes (lvroot and lvsrv). I then mounted lvroot to /mnt, /dev/md2 to /mnt/boot and installed arch.

1. Is it correct, that the /boot partition mentioned in the article is not managed by lvm? Did I do everything correctly so far?
2. What bootloader do I use now? It seems to me, as if both for UEFI and Grub on GPT a partition is missing. UEFI needs the EFI System Partition, which was never created in the RAID wiki article and GRUB on GPT needs a small partition to place core.img, according to the wiki. What is the intended way of installing a bootloader according to Software RAID and LVM?

Thank you!

Last edited by janoliver (2015-10-15 12:15:22)

Offline

#2 2015-10-20 23:23:56

madman_xxx
Member
From: PL
Registered: 2013-07-31
Posts: 35

Re: Question regarding "Software RAID and LVM" wiki article

Hello,

Is it correct, that the /boot partition mentioned in the article is not managed by lvm? Did I do everything correctly so far?

Yes, this is correct. This is because your BIOS / EFI firmware won't recognise the software RAID, so it needs a bootloader on a standard partition. The bootloader then loads the modules that enable the support for software RAID. It is a good practice to have an exact copy of this partition on both drives, but it's not required.

What bootloader do I use now? It seems to me, as if both for UEFI and Grub on GPT a partition is missing. UEFI needs the EFI System Partition, which was never created in the RAID wiki article and GRUB on GPT needs a small partition to place core.img, according to the wiki. What is the intended way of installing a bootloader according to Software RAID and LVM?

GRUB will do. Also I feel confused about your interchangeable use of UEFI / GPT / ESP terms. To use UEFI boot you must have a FAT32 partition within a GPT partition table, with the esp flag set - as I can see you already have it (/boot mountpoint). Then, you may configure GRUB to include software RAID modules and install GRUB on this FAT32 partition.

Offline

Board footer

Powered by FluxBB