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
GitHub <noreply@github.com>Committed on Aug 24 2023, 6:59 PM
Parents
rGcae502c17576: copy_file_range: fix fallback when source create on same txg
Branches
Unknown
Tags
Unknown