mirror_zfs/cmd/zed
Ameer Hamza 30cc2331f4
zed: Ensure spare activation after kernel-initiated device removal
In addition to hotplug events, the kernel may also mark a failing vdev
as REMOVED. This was observed in a customer report and reproduced by
forcing the NVMe host driver to disable the device after a failed reset
due to command timeout. In such cases, the spare was not activated
because the device had already transitioned to a REMOVED state before
zed processed the event.
To address this, explicitly attempt hot spare activation when the
kernel marks a device as REMOVED.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
Closes #17187
2025-03-28 15:48:38 -04:00
..
agents zed: Ensure spare activation after kernel-initiated device removal 2025-03-28 15:48:38 -04:00
zed.d SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
.gitignore Initial implementation of zed (ZFS Event Daemon) 2014-04-02 13:10:03 -07:00
Makefile.am Replace EXTRA_DIST with dist_noinst_DATA 2022-05-26 09:24:50 -07:00
zed_conf.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zed_conf.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zed_disk_event.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zed_disk_event.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zed_event.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zed_event.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zed_exec.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zed_exec.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zed_file.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zed_file.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zed_log.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zed_log.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zed_strings.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zed_strings.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zed.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zed.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00