Bug 248642

Summary: Openzfs 2.0 integration issue - zdb can't find zpool.cache
Product: Base System Reporter: Jeremy Faulkner <gldisater>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: emaste, freqlabs, lwhsu, markj, mmacy
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description Jeremy Faulkner 2020-08-13 14:45:53 UTC
On FreeBSD zpool.cache defaults to /boot/zfs/zpool.cache but openzfs 2.0 looks in /etc/zfs/zpool.cache
Comment 1 Matt Macy freebsd_committer 2020-08-13 23:23:17 UTC
I've updated ZPOOL_CACHE for FreeBSD. Presumably this doesn't cause other problems.
Comment 2 Andriy Gapon freebsd_committer 2020-08-14 07:37:42 UTC
I believe that /etc/zfs is better location for a variety of reasons.
I think that we should support /boot/zfs as a fallback during the migration, but we should write new zpool.cache to /etc/zfs and eventually completely migrate to that location.
Comment 3 Ryan Moeller freebsd_committer 2020-08-14 20:04:48 UTC
(In reply to Andriy Gapon from comment #2)

That's my preference as well. We'll try that out.
Comment 4 Mark Johnston freebsd_committer 2020-08-19 14:25:24 UTC