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?
Anyone use Linux RAID + LUKS + LVM?
Anyone use Linux RAID + LUKS + LVM?
We are prepared to live in the plain and die in the plain!
Re: Anyone use Linux RAID + LUKS + LVM?
You could make a shell script that does it automatically on bootup?
Marurun wrote:Don’t mind-shart your pants, guys
Re: Anyone use Linux RAID + LUKS + LVM?
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!