I have a server running with multiple disks, all encrypted with the same keyfile and password.
I have these three option in loader.conf:
These allow me to type the password only once, at the bootloader prompt, and have all the disks automatically mounted at boot.
Everything works fine, but then I added a NVMe device to speed up the different ZFS pools, using it as a SLOG and CACHE device.
The problem is that I added these lines to loader.conf, to make sure that the nvd0 device gets mounted before the system tries to import the pools:
It's exactly the same as all the others disks, but it doesn't work.
What could be the problem? I checked the kernel log, the nvd0 device gets recognized _before_ the other disks, so it should be automatically mounted/decrypted like the other ones.