You are not logged in.

#1 2024-12-14 15:01:33

pidaras
Member
Registered: 2024-12-14
Posts: 7

how to boot 2 drive system with lvm over luks

i have 2 luks disks covered by lvm. I dont know how to mount to disks simultaneously. I tried rd.luks.name=UUID=disk1 rd.luks.name=UUID=disk2 root=/dev/mapper/lvm-vol but it only detect first one, decrypt it and then trying to mount rootfs. Also i tried to specify 2 disks in crypttab.initramfs with the same result. I boot my uki with efistub, so i need to specify kernel params in /etc/kernel/cmdline

Offline

#2 2024-12-20 21:19:36

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,489

Re: how to boot 2 drive system with lvm over luks

If you have created the luks devices first and then lvm, you cannot join the system root (but other mount points can be on disk2). This only works by creating the LVM spanning the disks first, then initialising luks in the logical volume. During boot the lvm will assemble first, and you only need one rd.luks.name, which spans the disks.

Offline

Board footer

Powered by FluxBB