]> git.proxmox.com Git - mirror_zfs.git/commit
zed: add hotplug support for spare vdevs
authorAmeer Hamza <106930537+ixhamza@users.noreply.github.com>
Mon, 9 Jan 2023 20:43:03 +0000 (01:43 +0500)
committerGitHub <noreply@github.com>
Mon, 9 Jan 2023 20:43:03 +0000 (12:43 -0800)
commit5091867ee66489012473626c5f58f3c4d66ea5f0
tree2d62f29419646c9ec3a28d9411f4950d8f8075a3
parent289f7e6adb58336281e87bffe853b280fc8ee498
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
cmd/zed/agents/zfs_agents.c
cmd/zed/agents/zfs_mod.c
cmd/zed/agents/zfs_retire.c
include/sys/fs/zfs.h
lib/libzfs/libzfs_pool.c
module/zfs/spa_config.c