HomeFreeBSD

zed: mark disks as REMOVED when they are removed

Description

zed: mark disks as REMOVED when they are removed

ZED does not take any action for disk removal events if there is no
spare VDEV available. Added zpool_vdev_remove_wanted() in libzfs
and vdev_remove_wanted() in vdev.c to remove the VDEV through ZED
on removal event. This means that if you are running zed and
remove a disk, it will be propertly marked as REMOVED.

Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>

Details

Provenance
Ameer Hamza <ahamza@ixsystems.com>Authored on Sep 26 2022, 11:32 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Mar 27 2023, 6:32 PM
Parents
rG5219a2691e3b: FreeBSD: Remove extra arc_reduce_target_size() call
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGbd9a9a4e1ad3: zed: mark disks as REMOVED when they are removed (authored by Ameer Hamza <ahamza@ixsystems.com>).Mar 27 2023, 6:32 PM