linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Setup Recommendation on UEFI/GRUB/RAID1/LVM
@ 2020-04-14 13:02 Stefanie Leisestreichler
  2020-04-14 14:20 ` Wols Lists
                   ` (3 more replies)
  0 siblings, 4 replies; 29+ messages in thread
From: Stefanie Leisestreichler @ 2020-04-14 13:02 UTC (permalink / raw)
  To: linux-raid

Hi List.
I want to set up a new server. Data should be redundant that is why I 
want to use RAID level 1 using 2 HDs, each having 1TB. Like suggested in 
the wiki, I want to have the RAID running on a partition which has 
TOTAL_SIZE - 100M allocated for smoother replacement of an array-disk in 
case of failure.

The firmware is UEFI, Partitioning will be made using GPT/gdisk.

Boot manager should be GRUB (not legacy).

To be safe on system updates I want to use LVM snapshots. I like to make 
a LVM-based snapshot when the system comes up, do the system updates, 
perform the test and dicide either to go with the updates made or revert 
to the original state.

I have read that - when using UEFI - the EFI-System-Partition (ESP) has 
to reside in a own native partition, not in a RAID nor LVM block device.

Also I read a recommendation to put SWAP in a seperate native partition 
and raid it in case you want to avoid a software crash when 1 disk fails.

I wonder, how I should build up this construct. I thought I could build 
one partition with TOTAL_SIZE - 100M, Type FD00, on each device, take 
these two (sda1 + sdb1) and build a RAID 1 array named md0. Next make 
md0 the physical volume of my LVM (pvcreate /dev/md0) and after that add 
a volume group in which I put my logical volumes:
- swap - type EF00
- /boot - with filesystem fat32 for uefi
- /home - ext4
- /tmp - ext4
- / - ext4
- /var/lib/mysql - ext4 with special mount options
- /var/lib/vmimages - ext4 with special mount options

Is this doable or is it not working since UEFI will not find my 
bootimage, because in this config it is sitting not in an own native 
partition?

If it is not doable, do you see any suitable setup to archive my goals? 
I do not want to use btrfs.

Thanks,
Steffi

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

end of thread, other threads:[~2020-04-24 20:24 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-14 13:02 Setup Recommendation on UEFI/GRUB/RAID1/LVM Stefanie Leisestreichler
2020-04-14 14:20 ` Wols Lists
2020-04-14 14:27   ` Reindl Harald
2020-04-14 15:12   ` Stefanie Leisestreichler
2020-04-14 17:35     ` Wols Lists
2020-04-14 19:13       ` Stefanie Leisestreichler
2020-04-14 19:36         ` Wols Lists
2020-04-17 23:06       ` Nix
2020-04-20  9:23         ` Stefanie Leisestreichler
2020-04-20  9:45         ` Stefanie Leisestreichler
2020-04-20 11:05           ` Nix
2020-04-20 12:01             ` Stefanie Leisestreichler
2020-04-16  1:50   ` David C. Rankin
2020-04-16 11:16     ` Wols Lists
2020-04-16  1:58   ` David C. Rankin
2020-04-14 16:00 ` G
2020-04-14 16:14   ` Stefanie Leisestreichler
2020-04-17 23:10     ` Nix
2020-04-24 19:15       ` Phillip Susi
2020-04-24 20:24         ` Nix
2020-04-14 16:20   ` Reindl Harald
2020-04-14 16:41     ` Stefanie Leisestreichler
2020-04-16 17:00     ` G
2020-04-14 18:14 ` Phillip Susi
2020-04-14 19:00   ` Stefanie Leisestreichler
2020-04-14 20:05     ` antlists
2020-04-17 23:24       ` Nix
     [not found] ` <394a3255-251c-41d1-8a65-2451e5503ef9@teksavvy.com>
2020-04-15 15:53   ` Stefanie Leisestreichler
2020-04-15 16:10     ` Stefanie Leisestreichler

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