summaryrefslogtreecommitdiffstats
path: root/cmd/zed/zed.d/all-syslog.sh
diff options
context:
space:
mode:
authorTony Hutter <[email protected]>2017-02-10 16:09:45 -0800
committerBrian Behlendorf <[email protected]>2017-02-10 16:09:45 -0800
commitb291029e8661dfc2f03118921e854eec4e5bbb75 (patch)
tree6df732938171565a0dc1a82778e28101a6511f26 /cmd/zed/zed.d/all-syslog.sh
parent65a736bc0df16561bac14bee6bf9a6752cf8bc39 (diff)
Enclosure LED fixes
- Pass $VDEV_ENC_SYSFS_PATH to 'zpool [iostat|status] -c' to include enclosure LED sysfs path. - Set LEDs correctly after import. This includes clearing any erroniously set LEDs prior to the import, and setting the LED for any UNAVAIL drives. - Include symlink for vdev_attach-led.sh in Makefile.am. - Print the VDEV path in all-syslog.sh, and fix it so the pool GUID actually prints. Reviewed-by: Don Brady <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Tony Hutter <[email protected]> Closes #5716 Closes #5751
Diffstat (limited to 'cmd/zed/zed.d/all-syslog.sh')
-rwxr-xr-xcmd/zed/zed.d/all-syslog.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/zed/zed.d/all-syslog.sh b/cmd/zed/zed.d/all-syslog.sh
index 5a3c8ad4d..68d3cf360 100755
--- a/cmd/zed/zed.d/all-syslog.sh
+++ b/cmd/zed/zed.d/all-syslog.sh
@@ -6,6 +6,7 @@
. "${ZED_ZEDLET_DIR}/zed-functions.sh"
zed_log_msg "eid=${ZEVENT_EID}" "class=${ZEVENT_SUBCLASS}" \
- "${ZEVENT_POOL:+"pool=${ZEVENT_POOL}"}" \
+ "${ZEVENT_POOL_GUID:+"pool_guid=${ZEVENT_POOL_GUID}"}" \
+ "${ZEVENT_VDEV_PATH:+"vdev_path=${ZEVENT_VDEV_PATH}"}" \
"${ZEVENT_VDEV_STATE_STR:+"vdev_state=${ZEVENT_VDEV_STATE_STR}"}"
exit 0