Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/etc/zfs/zsysctl.conf not loaded after installation (v2.2.3rc4)? #128

Open
Haravikk opened this issue Mar 31, 2024 · 0 comments
Open

/etc/zfs/zsysctl.conf not loaded after installation (v2.2.3rc4)? #128

Haravikk opened this issue Mar 31, 2024 · 0 comments

Comments

@Haravikk
Copy link

Haravikk commented Mar 31, 2024

System information

Type Version/Name
Distribution Name macOS
Distribution Version 10.15.7
Linux Kernel Darwin Kernel Version 19.6.0
Architecture x86_64
ZFS Version zfs-macOS-2.2.3-rc4

Describe the problem you're observing

After installing a newer version of ZFS, all tunables are set to defaults, as the content of /etc/zfs/zsysctl.conf does not appear to be loaded afterwards.

This is not the case for v2.1.0, which loads the contents of /etc/zfs/zsysctl.conf immediately after installation.

Describe how to reproduce the problem

  1. Configure some customised settings in /etc/zfs/zsysctl.conf, e.g- a custom value for kstat.zfs.darwin.tunable.zfs_arc.max.
  2. Install a new version of ZFS using one of the macOS installer packages.

Additional Information

I'm aware that some tunables have changed in later versions of ZFS, which is why my /etc/zfs/zsysctl.conf looks like:

kstat.zfs.darwin.tunable.zfs_arc_max=12884901888
kstat.zfs.darwin.tunable.zfs_arc.max=12884901888

kstat.zfs.darwin.tunable.zfs_dirty_data_max=6442450944
kstat.zfs.darwin.tunable.zfs.dirty_data_max=6442450944

This is to maintain compatibility with v2.1.0 which uses the older form of each of these (zfs_ rather than zfs., and zfs_arc_ rather than zfs_arc.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant