HomeFreeBSD

zed: Add zedlet to power off slot when drive is faulted

Description

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

Details

Provenance
Tony Hutter <hutter2@llnl.gov>Authored on Aug 24 2023, 6:59 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 25 2023, 8:33 PM
Parents
rG92f095a903f8: copy_file_range: fix fallback when source create on same txg
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGd19304ffeec5: zed: Add zedlet to power off slot when drive is faulted (authored by Tony Hutter <hutter2@llnl.gov>).Aug 25 2023, 8:33 PM