openzfs / zfs

OpenZFS on Linux and FreeBSD
https://openzfs.github.io/openzfs-docs
Other
10.68k stars 1.76k forks source link

Can't clear force fault on spare #16725

Open tonyhutter opened 2 weeks ago

tonyhutter commented 2 weeks ago

System information

Type Version/Name
Distribution Name RHEL
Distribution Version 8.10
Kernel Version 4.18
Architecture x86-64
OpenZFS Version 2.2.4

Describe the problem you're observing

Our operators had force-faulted a vanilla spare (non-dRAID) with zpool offline -f <tank> <spare-vdev>. They then tried the normal zpool clear <tank> <spare-vdev> to clear the fault, but got this error:

cannot clear errors for <spare-vdev>: device is reserved as a hot spare

We should be able to clear the fault on spares like we do on normal vdevs.