]> git.proxmox.com Git - mirror_zfs.git/commit
Add scrub after resilver zed script
authorTony Hutter <hutter2@llnl.gov>
Fri, 23 Feb 2018 19:38:05 +0000 (11:38 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 23 Feb 2018 19:38:05 +0000 (11:38 -0800)
commitbf95a000c432dc92591432bfd2b7943cbbfb6708
tree427a2a5acfa354546ce03c4d957a7751b2853781
parente9a77290081b578144e9a911ad734f67274df82f
Add scrub after resilver zed script

* Add a zed script to kick off a scrub after a resilver.  The script is
disabled by default.

* Add a optional $PATH (-P) option to zed to allow it to use a custom
$PATH for its zedlets.  This is needed when you're running zed under
the ZTS in a local workspace.

* Update test scripts to not copy in all-debug.sh and all-syslog.sh by
default.  They can be optionally copied in as part of zed_setup().
These scripts slow down zed considerably under heavy events loads and
can cause events to be dropped or their delivery delayed. This was
causing some sporadic failures in the 'fault' tests.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Richard Laager <rlaager@wiktel.com>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #4662
Closes #7086
16 files changed:
cmd/zed/Makefile.am
cmd/zed/zed.d/resilver_finish-start-scrub.sh [new file with mode: 0755]
cmd/zed/zed.d/zed.rc
cmd/zed/zed_conf.c
cmd/zed/zed_conf.h
cmd/zed/zed_event.c
man/man8/zed.8.in
tests/runfiles/linux.run
tests/zfs-tests/include/commands.cfg
tests/zfs-tests/include/libtest.shlib
tests/zfs-tests/tests/functional/events/cleanup.ksh
tests/zfs-tests/tests/functional/events/setup.ksh
tests/zfs-tests/tests/functional/fault/Makefile.am
tests/zfs-tests/tests/functional/fault/cleanup.ksh
tests/zfs-tests/tests/functional/fault/scrub_after_resilver.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/fault/setup.ksh