From bf95a000c432dc92591432bfd2b7943cbbfb6708 Mon Sep 17 00:00:00 2001 From: Tony Hutter Date: Fri, 23 Feb 2018 11:38:05 -0800 Subject: 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 Reviewed-by: Richard Laager Signed-off-by: Tony Hutter Closes #4662 Closes #7086 --- cmd/zed/Makefile.am | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cmd/zed/Makefile.am') diff --git a/cmd/zed/Makefile.am b/cmd/zed/Makefile.am index 53d5aa71c..37739696e 100644 --- a/cmd/zed/Makefile.am +++ b/cmd/zed/Makefile.am @@ -66,7 +66,8 @@ dist_zedexec_SCRIPTS = \ zed.d/statechange-notify.sh \ zed.d/vdev_clear-led.sh \ zed.d/vdev_attach-led.sh \ - zed.d/pool_import-led.sh + zed.d/pool_import-led.sh \ + zed.d/resilver_finish-start-scrub.sh zedconfdefaults = \ all-syslog.sh \ @@ -77,7 +78,8 @@ zedconfdefaults = \ statechange-notify.sh \ vdev_clear-led.sh \ vdev_attach-led.sh \ - pool_import-led.sh + pool_import-led.sh \ + resilver_finish-start-scrub.sh install-data-hook: $(MKDIR_P) "$(DESTDIR)$(zedconfdir)" -- cgit v1.2.3