D
Deleted member 70846
Guest
Hello,
I've set up a ZFS pool, with each partition in it (da0p1 through da3p1) being encrypted with GELI.
(I know ZFS has it's own thing for encryption, but for an unrelated reason I won't use that for this pool.)
When I try to attach the disks at startup by including the following in rc.conf()...
... It prompts me with the following at startup:
Despite entering the correct passphrase. Note that I'm able to run something like
I've also seen some solutions on this forum using a numbered keyfile (e.g. geli_da0p1_keyfile0_type="da0p1:geli_keyfile0"), but no matter what number I'd use for that, it throws the same error.
here's the output of uname -a :
I've set up a ZFS pool, with each partition in it (da0p1 through da3p1) being encrypted with GELI.
(I know ZFS has it's own thing for encryption, but for an unrelated reason I won't use that for this pool.)
When I try to attach the disks at startup by including the following in rc.conf()...
Code:
zfs_enable="YES"
geli_devices="da0p1 da1p1 da2p1 da3p1"
geli_da0p1_keyfile_load="YES"
geli_da0p1_keyfile_type="da0p1:geli_keyfile"
geli_da0p1_keyfile_name="/root/geli/da0p1.key"
geli_da1p1_keyfile_load="YES"
geli_da1p1_keyfile_type="da1p1:geli_keyfile"
geli_da1p1_keyfile_name="/root/geli/da1p1.key"
geli_da2p1_keyfile_load="YES"
geli_da2p1_keyfile_type="da2p1:geli_keyfile"
geli_da2p1_keyfile_name="/root/geli/da2p1.key"
geli_da3p1_keyfile_load="YES"
geli_da3p1_keyfile_type="da3p1:geli_keyfile"
geli_da3p1_keyfile_name="/root/geli/da3p1.key"
... It prompts me with the following at startup:
Code:
Configuring Disk Encryption for da0p1.
Enter passphrase:
geli: Wrong key for da0p1.
Despite entering the correct passphrase. Note that I'm able to run something like
geli attach -k /root/geli/da0p1.key /dev/da0p1
just fine, and it's instantly added to the pool. It's only when I try and attach it at startup that it's using the "wrong" key, so it must be something wrong with what I've put in rc.conf .I've also seen some solutions on this forum using a numbered keyfile (e.g. geli_da0p1_keyfile0_type="da0p1:geli_keyfile0"), but no matter what number I'd use for that, it throws the same error.
here's the output of uname -a :
Code:
FreeBSD $HOST 12.3-RELEASE FreeBSD 12.3-RELEASE r371126 GENERIC amd64