OPNsense Forum

English Forums => General Discussion => Topic started by: amuckart on March 15, 2023, 09:53:08 AM

Title: Second zpool not getting imported at boot time
Post by: amuckart on March 15, 2023, 09:53:08 AM
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
Title: Re: Second zpool not getting imported at boot time
Post by: franco on March 15, 2023, 09:56:00 AM
Please refer to this thread: https://forum.opnsense.org/index.php?topic=26918.0


Cheers,
Franco
Title: Re: Second zpool not getting imported at boot time
Post by: amuckart on March 16, 2023, 12:01:13 AM
Thank you. Apologies, I don't know how I missed that when I searched for answers.

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