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
Parents
rG92fc218205b2: intptr_t definition is canonically signed
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rGa4f82db53d6d: zed: Add zedlet to power off slot when drive is faulted (authored by Tony Hutter <hutter2@llnl.gov>).Sep 12 2023, 4:22 PM