I've added a second zpool to my install and migrated /var to it. That part has worked fine, but when I reboot the second pool isn't being imported.
I can manually import the pool and mount everything on it, it's just not happening automatically at boot, even if the pool was imported and the filesystems mounted when the system was shutdown.
I don't know OPNsense's startup process all that well, but from what I can see, these lines in /etc/rc.d/zpool should do the trick (but they aren't).
for cachefile in /etc/zfs/zpool.cache /boot/zfs/zpool.cache; do
if [ -r $cachefile ]; then
zpool import -c $cachefile -a -N && break
fi
done
Can someone please tell me what I'm missing?
Thanks
Please refer to this thread: https://forum.opnsense.org/index.php?topic=26918.0
Cheers,
Franco
Thank you. Apologies, I don't know how I missed that when I searched for answers.
I'll try export-and-reboot later tonight.