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 properly marked as REMOVED.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
Closes #13797

Details

Provenance
Ameer Hamza <106930537+ixhamza@users.noreply.github.com>Authored on Sep 28 2022, 4:48 PM
GitHub <noreply@github.com>Committed on Sep 28 2022, 4:48 PM
Parents
rGeb9bec0a5d19: Bring per_txg_dirty_frees_percent back to 30
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG55c12724d377: zed: mark disks as REMOVED when they are removed (authored by Ameer Hamza <106930537+ixhamza@users.noreply.github.com>).Sep 28 2022, 4:48 PM