Hot spare
A hot spare is a standby device or reserved distributed spare capacity available to take over a failed member's role in a redundant array or pool.
An unused spare is not an already synchronized extra member or an independent backup: replacement still requires reconstruction [2]. In ZFS, spare activation and replacement state are distinct from completed resilvering [1]. A spare shortens the wait for replacement capacity; it does not add a parity level. OpenZFS documents ZED consuming pool events to automate replacement; monitoring and reconstruction completion still need separate checks [4]. Linux MD's spare state also covers a device being recovered, not only an idle reserve [5].
A completed rebuild can restore redundancy without replenishing standby capacity. One documented revertible-spare workflow copies data from the commissioned spare to a replacement in the original slot; the spare returns to standby after copying, while the virtual disk remains optimal [6]. A separate controller setting can disable this behavior, so spare reversion is not an automatic consequence of every successful rebuild [7].
Persistent spare-slot assignment is a separate policy, disabled by default in the documented implementation. When enabled, it can assign the spare role to a replacement inserted into the failed or removed spare's slot; matching protocol and drive technology are required [8]. This role assignment is distinct from copying data off a commissioned spare to return it to standby [7].
Automatic return in this workflow requires the original slot. With a replacement elsewhere, a manual Replace Member operation can return the commissioned spare to standby. It can temporarily affect disk performance; optimal redundancy does not imply unchanged performance [6].
Relations
Limitations
- Automatic activation depends on the platform's fault-management services and configuration; merely listing a spare does not prove replacement has started. [4]
- OpenZFS 2.3 warns of corruption if pools on different hosts concurrently claim a shared spare; its spares do not replace separate log devices, and a distributed dRAID spare serves only its own vdev. [1]
- Controller-reported optimal status does not by itself show that an eligible standby spare is available again. [6]
Citations
- OpenZFS 2.3: zpoolconcepts(7), device failure and hot spares
- OpenZFS 2.3: zpool-replace(8), replacement and sequential reconstruction
- OpenZFS 2.3: zpool(8), monitoring and event-driven spare replacement
- Linux 6.12: RAID arrays, per-device spare and in_sync states
- Dell PERC 11 User's Guide: Using replace member and revertible hot spares
- Dell PERC 11 User's Guide: Configure hot spare drives, revertible-spare setting
- Dell PERC 11 User's Guide: Using persistent hot spare slots
Further reading
Sources & caveats
- The revertible-spare example and its settings refer to Dell PERC 11, not a requirement for every array [6] [7].
- The persistent-slot default and protocol/technology requirements refer to Dell PERC 11. The protocol and technology checks are necessary conditions in that documented workflow, not a complete spare-eligibility checklist for every array [8].