Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How can I create a root zfs mirror on top of LUKS?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 558

PostPosted: Sat Nov 20, 2021 7:53 am    Post subject: How can I create a root zfs mirror on top of LUKS? Reply with quote

Is there any guide?

Ideally, I don't want to use a keyfile, and I want to enter the password only once.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sat Nov 20, 2021 3:31 pm    Post subject: Reply with quote

https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/Debian%20Buster%20Root%20on%20ZFS.html

It doesn't matter its Debian.
Its the most comrehensive and it works.
_________________
:)
Back to top
View user's profile Send private message
Juippisi
Developer
Developer


Joined: 30 Sep 2005
Posts: 724
Location: /home

PostPosted: Sun Nov 21, 2021 7:11 am    Post subject: Reply with quote

zfs has its own encryption built-in, you don't need to involve luks.

Here's how I do it:
passphrase to open zfs partition, which holds keyfile to open any HDDs. So, password is only entered once, then HDD-luks partitions gets mounted automatically via /etc/conf.d/dmcrypt

(Note that my zfs-encrypted-mirror is only on /home, not on / but I'd imagine it should still work)
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 558

PostPosted: Wed Nov 24, 2021 4:49 am    Post subject: Reply with quote

Juippisi wrote:
zfs has its own encryption built-in, you don't need to involve luks.

Here's how I do it:
passphrase to open zfs partition, which holds keyfile to open any HDDs. So, password is only entered once, then HDD-luks partitions gets mounted automatically via /etc/conf.d/dmcrypt

(Note that my zfs-encrypted-mirror is only on /home, not on / but I'd imagine it should still work)


I also discovered zfs native encryption and prefer it to LUKS.

The problem is that a zfs dataset can't contain multiple keys and I don't know a way to open all encrypted zfs datasets by entering a password once.

There are an encrypted root zfs dataset and another encrypted zfs dataset that belongs to another zfs pool.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum