]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
zed: Add zedlet to power off slot when drive is faulted
authorTony Hutter <hutter2@llnl.gov>
Thu, 24 Aug 2023 18:59:03 +0000 (11:59 -0700)
committerGitHub <noreply@github.com>
Thu, 24 Aug 2023 18:59:03 +0000 (11:59 -0700)
commit11fbcacf37d1a66c7a40bb8920c70ce9a87270ea
tree9d61fc4a9aac330902cd8b13b7b7081219f4ba2a
parentcae502c17576694721d290c2506880d0caa872c7
zed: Add zedlet to power off slot when drive is faulted

If ZED_POWER_OFF_ENCLOUSRE_SLOT_ON_FAULT is enabled in zed.rc, then
power off the drive's slot in the enclosure if it becomes FAULTED.
This can help silence misbehaving drives.  This assumes your drive
enclosure fully supports slot power control via sysfs.

Reviewed-by: @AllKind
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #15200
cmd/zed/zed.d/statechange-slot_off.sh [new file with mode: 0755]
cmd/zed/zed.d/zed.rc