Upgraded from 12.2 to 13.0, ZFS issues reddit / freebsd ---------------------------------------------------------------------- the_humeister · 2021-05-18 14:00 In past versions, my zfs pool automatically mounted when the system boots. After upgrading to 13.0 this no longer happens. However yyping in "zpool import " in the command-line does work. What's the proper way to mount it? ---------------------------------------------------------------------- urglecom · 2021-05-18 14:13 Do you have zfs\_enable=YES in /etc/rc.conf? I've seen the behaviour you describe when that line got nuked. ---------------------------------------------------------------------- the_humeister · 2021-05-18 14:18 I do. The workaround I did was to put "zpool import" in the next line, but I'm not sure that's proper ---------------------------------------------------------------------- ketchupnsketti · 2021-05-18 14:56 Take a look at /etc/rc.d/zpool This should be running on boot as long as zfs\_enable="YES" is set in rc.conf So, i'd probably look for typeos, maybe you have a broken rc.conf, or you didn't upgrade correctly and your /etc is still on 12.2 or partially updated, or some other misconfiguration... but it does absolutely still work the way it did in terms of auto-importing. ---------------------------------------------------------------------- ChunkyBezel · 2021-05-18 16:28 I had this issue too. I only had to do the manual 'zpool import' once after the upgrade, then the pools would import automatically on subsequent boots. Did you complete the FreeBSD upgrade properly by running 'freebsd- update install' a second time after the reboot? ---------------------------------------------------------------------- the_humeister · 2021-05-18 20:43 I have zfs_enable="YES" is set in rc.conf. I'll keep looking elsewhere ---------------------------------------------------------------------- rykolepl · 2021-05-18 21:54 I'd try zpool import, then zpool export, then zpool import again. After reboot, check if it mounts automatically. ---------------------------------------------------------------------- ketchupnsketti · 2021-05-18 22:08 No I meant like literally look at /etc/rc.d/zpool it's the thing that imports your pool at boot and keys off of rc.conf what does `service zpool rcvar` return? ---------------------------------------------------------------------- grahamperrin · 2021-05-19 03:19 Encryption? ### [rc\(8\)](https://man.freebsd.org/rc\(8\)) `file /etc/rc.conf.d/zfs` – if the file exists, remove it. ### Boot loader configuration `sysrc -f /boot/loader.conf zfs_load="YES"` `sed -i '' '/opensolaris/d' /boot/loader.conf && cat /boot/loader.conf` ### Obscurely In this extraordinary case, there was corruption of the base system (cause uncertain): * [zpools not auto-mounting after upgrade to 13.0-REL : freebsd](https ://old.reddit.com/r/freebsd/comments/mrvv77/zpools_not_automounting_af ter_upgrade_to_130rel/) ---------------------------------------------------------------------- Street_Struggle3937 · 2021-05-19 09:12 Maybe you still have the old startup files in /etc/rc.d! I had the same issue after doing the buildworld cycle. Try copy them from your source dir to /etc/rc.d manually. ---------------------------------------------------------------------- vivekkhera · 2021-05-20 17:20 How did you upgrade? If via source be sure to mergemaster the rc files. I upgraded via freebsd-update and it just worked no problems. ---------------------------------------------------------------------- uszeraj · 2021-05-24 15:55 Last time this happened to me was due to the zpool cache file. Try running this while the pools are loaded: \# backup the current file just in case cp /boot/zfs/zpool.cache /boot/zfs/zpool.cache.0 zpool set cachefile=/boot/zfs/zpool.cache