HomeFreeBSD

zed: add hotplug support for spare vdevs

Description

zed: add hotplug support for spare vdevs

This commit supports for spare vdev hotplug. The
spare vdev associated with all the pools will be
marked as "Removed" when the driveĀ is physically
detached and will become "Available" when the
drive is reattached. Currently, the spare vdev
status does not change on the drive removal and
the same is the case with reattachment.

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

Details

Provenance
Ameer Hamza <106930537+ixhamza@users.noreply.github.com>Authored on Jan 9 2023, 8:43 PM
GitHub <noreply@github.com>Committed on Jan 9 2023, 8:43 PM
Parents
rG289f7e6adb58: Remove some dead ARC code. (#14340)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG5091867ee664: zed: add hotplug support for spare vdevs (authored by Ameer Hamza <106930537+ixhamza@users.noreply.github.com>).Jan 9 2023, 8:43 PM