Bug 248642 - Openzfs 2.0 integration issue - zdb can't find zpool.cache
Summary: Openzfs 2.0 integration issue - zdb can't find zpool.cache
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-13 14:45 UTC by Jeremy Faulkner
Modified: 2020-08-19 14:25 UTC (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
https://github.com/openzfs/zfs/pull/10720