Anyone use Linux RAID + LUKS + LVM?

Need help with your PC or Modding Projects?
Post Reply
Hatta
Next-Gen
Posts: 4030
Joined: Tue May 06, 2008 8:33 pm

Anyone use Linux RAID + LUKS + LVM?

Post by Hatta »

I know there are better places for this, but I figure it can't hurt to ask here either.

I currently have 2 discs in a RAID-1 array, which is encrypted with LUKS, and I have LVM on top of that. I am adding 2 more discs, also in RAID-1. The obvious thing for me to do is to just encrypt the array with LUKS, and add that as a physical volume to my volume group.

However, if I understand correctly, this would require me to enter my passphrase once for each RAID array. Obviously, that's less than ideal. Anyone know a good way around this?
We are prepared to live in the plain and die in the plain!
Niode
Next-Gen
Posts: 7831
Joined: Wed Jan 04, 2006 2:34 pm
Location: UK

Re: Anyone use Linux RAID + LUKS + LVM?

Post by Niode »

You could make a shell script that does it automatically on bootup?
Marurun wrote:Don’t mind-shart your pants, guys
Hatta
Next-Gen
Posts: 4030
Joined: Tue May 06, 2008 8:33 pm

Re: Anyone use Linux RAID + LUKS + LVM?

Post by Hatta »

That's not a bad idea. I could replace the script that currently calls luksOpen with one that just prompts for my passphrase and then calls luksOpen with the same --keyfile for both arrays.
We are prepared to live in the plain and die in the plain!
Post Reply