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
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Mar 27 2023, 6:32 PM
Parents
rG43d63ab2d4c1: zed: post a udev change event from spa_vdev_attach()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGdedd8243fc8c: zed: add hotplug support for spare vdevs (authored by Ameer Hamza <106930537+ixhamza@users.noreply.github.com>).Mar 27 2023, 6:32 PM