You are not logged in.

#1 2013-01-01 17:04:41

dmillard
Member
From: /dev/pts/0
Registered: 2010-04-02
Posts: 22

LVM on LUKS split across drives

I'm installing LVM on LUKS, as follows:

/dev/sda1: boot
/dev/sda2: first LUKS device
/dev/sdb1: second LUKS device
/dev/sda2 and /dev/sdb1 are in a volume group, which is then split into logical volumes.
/dev/sda2 and /dev/sdb1 have the same password.

How can I only be prompted once for this password at boot?


"Cleverness is not wisdom." ~Euripides

Offline

#2 2013-01-01 17:31:30

Tarqi
Member
From: Ixtlan
Registered: 2012-11-27
Posts: 106
Website

Re: LVM on LUKS split across drives

Since LUKS will ask for each device you are about to open, the only way seems to be to put the LUKS part into the LVM and create a single logical (LUKS) volume. This way you will only be asked once.


Knowing others is wisdom, knowing yourself is enlightenment. ~Lao Tse

Offline

#3 2013-01-01 21:25:08

dmillard
Member
From: /dev/pts/0
Registered: 2010-04-02
Posts: 22

Re: LVM on LUKS split across drives

However, I'd like LVM on top of LUKS.  Is it possible?  As I understand, initramfs doesn't support LVM on LUKS on LVM, but that would be ideal.  Is there a way to accomplish this?


"Cleverness is not wisdom." ~Euripides

Offline

#4 2013-01-02 01:04:02

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: LVM on LUKS split across drives

Strike0 has told me in the past that this is actually supported.  Just use the LVM2 hook twice, once before and once after the encrypt hook.  There is also the cryptsetup-multi package, but it is partially broken. In these forums somewhere there are instructions from falconindy on using the hook (maybe the install) file from the multi package in the current cryptsetup package.  but you are going to have to seach for that yourself.

Offline

Board footer

Powered by FluxBB