Skip to content

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

@Haravikk

Description

@Haravikk

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.).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions