Second zpool not getting imported at boot time

Started by amuckart, March 15, 2023, 09:53:08 AM

Previous topic - Next topic
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


Thank you. Apologies, I don't know how I missed that when I searched for answers.

I'll try export-and-reboot later tonight.