This change adds the following symlinks:
vdev_attach-lustre -> statechange-lustre.sh
vdev_remove-lustre -> statechange-lustre.sh
vdev_clear-lustre -> statechange-lustre.sh
This makes it so the statechange-lustre.sh script is also called on
all ZFS events that could change the pool state.
Lustre-change: https://review.whamcloud.com/43552
Lustre-commit:
e11a47da71a2e2482e4c4cf582d663cd76a2ecab
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Change-Id: I18edc86749e8ab91bb45f21aafd3fd47e78cbaef
Reviewed-by: Olaf Faaland-LLNL <faaland1@llnl.gov>
Reviewed-by: Nathaniel Clark <nclark@whamcloud.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/43929
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
if ZFS_ENABLED
zedletdir = $(sysconfdir)/zfs/zed.d/
-zedlet_SCRIPTS = statechange-lustre.sh
+zedlet_SCRIPTS = statechange-lustre.sh vdev_attach-lustre.sh \
+ vdev_remove-lustre.sh vdev_clear-lustre.sh
endif
scriptlibdir = @libexecdir@/@PACKAGE@
$(addsuffix .in,$(genscripts)) lfs_migrate lustre_req_history \
lustre lsvcgss lc_common haconfig Lustre.ha_v2 dkms.mkconf \
zfsobj2fid ko2iblnd-probe statechange-lustre.sh \
+ vdev_attach-lustre.sh vdev_remove-lustre.sh vdev_clear-lustre.sh \
bash-completion/lustre bash-completion/lctl bash-completion/lfs
CLEANFILES = $(genscripts)
# 2: zpool missing
# 3: zfs missing
# 4: Pool status neither "ONLINE" nor "DEGRADED
+#
+# This script is also symlinked as vdev_attach-lustre.sh, vdev_remove-lustre.sh
+# and vdev_clear-lustre.sh, since it needs to take the same action on those
+# ZFS events as well.
[ -f "${ZED_ZEDLET_DIR}/zed.rc" ] && . "${ZED_ZEDLET_DIR}/zed.rc"
. "${ZED_ZEDLET_DIR}/zed-functions.sh"
--- /dev/null
+statechange-lustre.sh
\ No newline at end of file
--- /dev/null
+statechange-lustre.sh
\ No newline at end of file
--- /dev/null
+statechange-lustre.sh
\ No newline at end of file