Hot spare

On this page 7

A hot spare is a powered, idle drive installed in a storage system that a RAID controller or software volume manager automatically uses to replace a failed drive and start rebuilding the array without human intervention. In server storage, it shortens the window of reduced redundancy between a disk failure and the moment the array is fully protected again.

Without a spare, a degraded array waits until an administrator notices the alert, obtains a replacement and inserts it, which can take hours or days. With a hot spare, the rebuild starts within seconds, so the period during which a second failure could cause data loss is limited mainly by rebuild speed rather than by human response time on servers.

How a hot spare takes over a failed drive

A hot spare works by sitting spun up and monitored but unused until the controller marks a member drive as failed. At that point the controller logically substitutes the spare into the array and begins a rebuild, reconstructing the lost data from the surviving drives through mirroring or parity calculation.

The process follows a predictable sequence. The controller detects the failure through I/O errors, timeouts or SMART thresholds, removes the faulty drive from the array, assigns the spare and then writes the reconstructed data to it. Once the rebuild finishes, the array returns to an optimal state and the spare becomes a permanent member.

The table below shows the states a typical array passes through when a hot spare is available.

StateWhat happensRedundancy
OptimalAll members healthy, spare idleFull
DegradedA member failed, spare assignedReduced or none
RebuildingData reconstructed onto the spareReduced until complete
Optimal againSpare is now a full memberFull, but no spare left
Array states during a hot spare takeover

After the takeover, the system has no spare left until someone replaces the failed drive. Many controllers support copyback, which moves data from the former spare back to the new drive in the original slot so that the physical layout stays documented and predictable.

Types of hot spares

Hot spares differ mainly in scope, meaning which arrays they are allowed to protect. A dedicated spare serves one specific array, while a global spare can replace a failed drive in any compatible array on the same controller or enclosure. Software-defined storage adds further variants.

The following table compares the common types and their typical use.

TypeScopeTypical use
Dedicated hot spareOne assigned arrayCritical volume that needs guaranteed protection
Global hot spareAny compatible array on the controllerSeveral arrays sharing a pool of spares
ZFS spare vdevPools that list the spareZFS systems managed by the ZFS event daemon
Distributed spare capacitySpare space spread across all drivesdRAID, Ceph and modern storage arrays
Common hot spare types

Distributed sparing deserves special mention. Instead of one idle disk, reserved capacity is spread across every drive, so a rebuild writes to many disks in parallel. This can cut rebuild time from many hours to a fraction of that, which matters greatly for large capacity drives.

Hot spare compared with cold and warm spares

The word hot means the drive is installed, powered and ready for automatic use. A cold spare is a replacement drive kept on a shelf, and a warm spare is installed but powered down or not configured for automatic failover. The difference is the time to start the rebuild and the degree of human involvement.

Spare typeLocation and stateTime to start rebuild
Hot spareInstalled, powered, assignedSeconds, automatic
Warm spareInstalled, idle or unassignedMinutes, manual action
Cold spareOn site, not installedHours, physical swap
No spareOrdered after failureDays, depends on delivery
Hot, warm and cold spares

A hot spare should also not be confused with hot swap, which is the ability to remove and insert drives without powering down the server. Hot swap makes replacing a disk convenient, while a hot spare removes the need to wait for that replacement at all. Most enterprise systems offer both.

Sizing and configuring hot spares

A hot spare must be at least as large as the drive it replaces and should match it in interface, speed and media type. Mixing a slower drive into a fast array creates a performance bottleneck, and a spare that is smaller by even a few sectors cannot be used at all.

How many spares to keep depends on the number of drives, the RAID level and how quickly failed drives can be replaced. A common rule of thumb is one global spare per 12 to 24 drives of the same type, with more spares for remote sites that lack on-site staff. The table below summarizes typical decisions.

SituationRecommended approachReason
RAID 5 with large disksHot spare or move to RAID 6Long rebuilds raise second-failure risk
RAID 1 boot mirrorOptional dedicated spareSmall volume, quick rebuild
RAID 10 database arrayGlobal spare per enclosureFast recovery for busy workloads
Remote site without staffTwo or more sparesReplacement may take days
Large drive poolsDistributed spare capacityParallel rebuild shortens exposure
Choosing a hot spare strategy

Administrators should also test spare activation during commissioning and configure alerts so that the event is noticed. An array that silently consumed its only spare is no better protected than one that never had a spare.

Limitations and common mistakes

A hot spare reduces exposure time but does not add redundancy during the rebuild itself. In RAID 5, the array has no fault tolerance until the rebuild finishes, and with multi-terabyte drives that can take 10 to 30 hours or more under load. A read error on a surviving drive in that window can still cause data loss.

  • Treating a spare as a backup. A spare protects against drive failure only, not against deletion, ransomware or controller faults.
  • Ignoring spare health. An idle drive can fail silently, so it must be included in regular SMART monitoring.
  • Wrong drive type. An HDD spare in an SSD array or a smaller model will be rejected or will slow the array.
  • Not replacing the consumed spare. After a takeover, the failed drive must be replaced promptly to restore spare coverage.

For high-capacity disks, many architects consider double parity such as RAID 6 a better first line of defense than a single parity array with a spare, and then add a hot spare on top of that.

The idea in brief

Imagine a sports team that always has a substitute player sitting on the bench in full uniform. When a player gets injured, the substitute steps onto the field immediately instead of waiting for someone to be called from home.

A hot spare is that substitute for disks. It waits inside the server, and when a disk breaks, it takes over automatically so the system can restore its protection quickly, before a second problem has a chance to cause real damage.

A practical scenario

A logistics company runs its file server in a small branch office with no IT staff on site. The server holds eight 8 TB drives in a RAID 6 array plus one global hot spare, and the controller is configured to send email alerts to the central IT team.

One weekend, a drive starts reporting read errors and the controller marks it as failed. Within seconds, the spare joins the array and the rebuild begins; it finishes after about 14 hours while users continue working normally. The IT team sees the alert on Monday, ships a replacement drive and asks a local employee to insert it into the empty slot, where it is configured as the new spare. The array never ran unprotected for longer than the rebuild, even though nobody touched the server for two days.