]> git.proxmox.com Git - mirror_zfs.git/commit - tests/zfs-tests/tests/Makefile.am
Configure zed's diagnosis engine with vdev properties
authorrob-wing <98866084+rob-wing@users.noreply.github.com>
Mon, 23 Jan 2023 21:14:25 +0000 (12:14 -0900)
committerGitHub <noreply@github.com>
Mon, 23 Jan 2023 21:14:25 +0000 (13:14 -0800)
commit69f024a56e25e9d1a220f9fa35e46c235aa5bf03
tree0608e9a12fb92d9a987b429f45063a9f9b54c9c5
parentf091db924883ef4a053d3619e0af6ff05956ae8c
Configure zed's diagnosis engine with vdev properties

Introduce four new vdev properties:
    checksum_n
    checksum_t
    io_n
    io_t

These properties can be used for configuring the thresholds of zed's
diagnosis engine and are interpeted as <N> events in T <seconds>.

When this property is set to a non-default value on a top-level vdev,
those thresholds will also apply to its leaf vdevs. This behavior can be
overridden by explicitly setting the property on the leaf vdev.

Note that, these properties do not persist across vdev replacement. For
this reason, it is advisable to set the property on the top-level vdev
instead of the leaf vdev.

The default values for zed's diagnosis engine (10 events, 600 seconds)
remains unchanged.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Allan Jude <allan@klarasystems.com>
Signed-off-by: Rob Wing <rob.wing@klarasystems.com>
Sponsored-by: Seagate Technology LLC
Closes #13805
15 files changed:
cmd/zed/agents/zfs_diagnosis.c
include/sys/fm/fs/zfs.h
include/sys/fs/zfs.h
include/sys/vdev_impl.h
lib/libzfs/libzfs.abi
lib/libzfs/libzfs_pool.c
lib/libzfs/libzfs_util.c
man/man7/vdevprops.7
module/zcommon/zpool_prop.c
module/zfs/vdev.c
module/zfs/zfs_fm.c
tests/runfiles/linux.run
tests/zfs-tests/tests/Makefile.am
tests/zfs-tests/tests/functional/events/zed_cksum_config.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/events/zed_io_config.ksh [new file with mode: 0755]