-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FreeBSD: zfskeys_enable: encryption key not loaded for a file system within a pool that imports automatically at startup #13038
Comments
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
|
The zfskeys script and other zfs rc sripts are part of FreeBSD. not OpenZFS. You'll want to get in touch with whoever wrote that in case they aren't watching the issues on this repo. |
|
@freqlabs thanks for direction. Now: Condensed:
(When I began here in the OpenZFS repo, I wondered whether something here might also cause the same effect on other platforms.) |
|
I've landed a patch in the FreeBSD src tree to address this issue. https://cgit.freebsd.org/src/commit/?id=97aeda2243568b386d792514996a06daec55eece |
|
Thanks! |
|
Likewise, thank you! |
System information
https://bsd-hardware.info/?probe=f47789d894
Describe the problem you're observing
When the operating system starts:
Transcendimports automaticallyTranscendmounts automaticallyTranscend/VirtualBoxcan not be mounted.Describe how to reproduce the problem
zfskeys_enable="YES"in/etc/rc.confHave a pool
Transcendon a mobile hard disk drive on USB.One non-encrypted file system.
One encrypted file system
Transcend/VirtualBoxwith a key that's stored in the home directory, for example:/usr/home/grahamperrin/Documents/personal/VirtualBox.keyAfter starting FreeBSD, import the pool, for example:
zpool import Transcend ; zpool status Transcend && zfs load-key Transcend/VirtualBox && zfs mount Transcend/VirtualBox ; mount | grep Transcend ; sleep 5 ; zpool iostat -vRestart the operating system.
Expected:
Actual result:
Workaround:
(Please ignore L2ARC cache device
gpt/cache-transcend. It's rarely connected.)Warning/errors/backtraces from the system logs
I see nothing relevant.
Additional information
https://github.com/freebsd/freebsd-src/blob/main/libexec/rc/rc.d/zfskeys
https://openzfs.github.io/openzfs-docs/man/8/zfs-load-key.8.html
Prior to restarting FreeBSD:
The text was updated successfully, but these errors were encountered: