Manpage of ZFS\-MOUNT\-GENERATOR
Return to Main Contents
zfs-mount-generator - generates systemd mount units for ZFS
zfs-mount-generator implements the Generators Specification
and is called during early boot to generate
units for automatically mounted datasets. Mount ordering and dependencies
are created for all tracked pools (see below). If a dataset has
mount option will be set, and a dependency for
on the mount will be created.
Because zfs pools may not be available very early in the boot process,
information on ZFS mountpoints must be stored separately. The output
of the command
zfs list -H -o name,mountpoint,canmount,atime,relatime,devices,exec,readonly,setuid,nbmand,encroot,keylocation
for datasets that should be mounted by systemd, should be kept
separate from the pool, at
The cache file, if writeable, will be kept synchronized with the pool
state by the ZEDLET
To begin, enable tracking for the pool:
Then, enable the tracking ZEDLET:
ln -s "/usr/local/libexec/zfs/zed.d/history_event-zfs-list-cacher.sh" "/usr/local/etc/zfs/zed.d"
systemctl enable zed.service
systemctl restart zed.service
Force the running of the ZEDLET by setting canmount=on for at least one dataset in the pool:
zfs set canmount=on
This forces an update to the stale cache file.
- SEE ALSO
This document was created by
using the manual pages.
Time: 00:49:32 GMT, September 27, 2019