ZFSD(8) | MidnightBSD System Manager's Manual | ZFSD(8) |
zfsd
— ZFS fault
management daemon
zfsd |
[-d ] |
zfsd
attempts to resolve ZFS faults that
the kernel can't resolve by itself. It listens to
devctl(4) events, which
are how the kernel notifies userland of events such as I/O errors and disk
removals. zfsd
attempts to resolve these faults by
activating or deactivating hot spares and onlining offline vdevs.
The following options are available:
-d
System administrators never interact with
zfsd
directly. Instead, they control its behavior
indirectly through zpool configuration. There are two ways to influence
zfsd
: assigning hotspares and setting pool
properties. Currently, only the
autoreplace
property has any effect. See
zpool(8) for details.
zfsd
will attempt to resolve the following
types of fault:
zfsd
will activate
any available hotspare.zfsd
will attempt
to read its ZFS label, if any. If it matches a previously removed vdev on
an active pool, zfsd
will online it. Once
resilvering completes, any active hotspare will detach automatically.
If the new device has no ZFS label but its physical path
matches the physical path of a previously removed vdev on an active
pool, and that pool has the autoreplace property set, then
zfsd
will replace the missing vdev with the
newly arrived device. Once resilvering completes, any active hotspare
will detach automatically.
zfsd
will
activate any available hotspare.zfsd
will mark that vdev as
FAULTED. ZFS
will no longer issue any I/Os to it. zfsd
will
activate a hotspare if one is available.zfsd
will mark that vdev as
DEGRADED. ZFS
will still use it, but zfsd will activate a spare anyway.zfsd
will activate the spare.zfsd
will detach any hotspare once a permanent
replacement finishes resilvering.zfsd
will attempt to replace any missing disk with
the same physical path, if its pool's autoreplace property is set.zfsd
will log interesting
events and its actions to syslog with facility
daemon and
identity [zfsd].
zfsd
exits, it serializes any unresolved
casefiles here, then reads them back in when next it starts up.zfsd
first appeared in
FreeBSD 11.0.
zfsd
was originally written by
Justin Gibbs
<gibbs@FreeBSD.org>
and
Alan Somers
<asomers@FreeBSD.org>
In the future, zfsd
should be able to
resume a pool that became suspended due to device removals, if enough
missing devices have returned.
April 18, 2020 | midnightbsd-3.1 |