RAID rebuild time used to be a footnote. With 2 TB drives, a failed disk was replaced and rebuilt within a few hours. With today's 16, 20 and larger drives, a rebuild can run for a day or more, and during that window the array has less protection, more load and a higher chance of a second problem.
That changes how storage should be designed: which RAID level to choose, whether to keep hot spares, how wide to make each group, and how quickly someone must respond to a failure. This post shows how to estimate the rebuild window and make those choices deliberately.
Why large drives rebuild slowly
Drive capacity has grown far faster than drive throughput. A rebuild must write the entire replacement drive (on traditional RAID) while reading all the surviving drives. The lower bound is simply capacity divided by sustained write speed.
A worked estimate
Using hypothetical but realistic figures, a 16 TB drive with an average sustained rate of 150 MB/s across the platter:
- 16,000,000 MB ÷ 150 MB/s = about 106,700 seconds
- 106,700 ÷ 3,600 = about 30 hours, on an idle system
| Drive size | Idle rebuild at 150 MB/s | Under load at an effective 50 MB/s |
|---|---|---|
| 4 TB | about 7 hours | about 22 hours |
| 8 TB | about 15 hours | about 44 hours |
| 16 TB | about 30 hours | about 89 hours |
| 20 TB | about 37 hours | about 111 hours |
Production systems are rarely idle. Surveillance recording, backups and users all compete with the rebuild, so a rebuild throttled to protect performance can stretch to several days. Measure your own rebuild time during commissioning, with a realistic load, so you know the real figure.
What can go wrong during a rebuild
- A second drive failure. Drives bought together share age and workload; the rebuild's heavy reading stresses them all.
- Unreadable sectors. Drive datasheets quote an unrecoverable read error rate, typically one per 10^14 bits on desktop-class drives and one per 10^15 on many enterprise drives. Reading tens of terabytes during a rebuild makes encountering an unreadable sector plausible. On single parity in a degraded state, there is nothing left to reconstruct it from.
- Performance loss. Reconstruction reads from every drive, slowing client I/O until it finishes.
This is why RAID 5 or raidz1 is a poor choice for large drives holding data you care about. With RAID 6 or raidz2, one failure still leaves a full level of parity during the rebuild. For very large or wide groups, ZFS also offers raidz3. See RAID for surveillance recording for a workload-specific view.
Hot spares: what they solve and what they do not
A hot spare is an installed, idle drive that the system uses automatically when another fails. The rebuild starts within minutes instead of waiting for someone to notice an alert, buy or find a drive and visit the site.
That delay is the real benefit. In many organisations, especially branch offices, factories or remote sites, the gap between failure and replacement can be days. A hot spare removes it.
What a hot spare does not do:
- It does not shorten the rebuild itself.
- It does not add redundancy on top of RAID 6; it restores redundancy sooner.
- It costs a bay that could otherwise add capacity.
When to keep a hot spare
| Situation | Recommendation |
|---|---|
| Unattended or remote site | Hot spare strongly advised |
| Single parity unavoidable | Hot spare essential, plus good backups |
| Staffed data centre, spare drives on the shelf | Cold spare may be enough with RAID 6 |
| 24-bay chassis with two groups | One shared hot spare covers both groups |
A cold spare, an identical tested drive kept on site, is the low-cost middle ground: no bay used, but someone must swap it in.
How ZFS changes the picture
ZFS calls rebuilds resilvering, and it rebuilds only allocated blocks, not the whole drive. A pool 40% full resilvers far faster than a full one. ZFS also verifies checksums while resilvering, so it will not copy silently corrupted data onto the new drive; see ZFS checksums and scrubs.
Newer OpenZFS releases include dRAID, which spreads spare capacity across all drives so rebuilds write to many drives in parallel. It suits large drive counts; ask whether your platform version supports it.
Design choices that shorten the risk window
- Use double parity (RAID 6 / raidz2) or mirrors for large drives.
- Keep group width moderate, for example 6 to 12 drives per group; a 24-bay system as two 12-drive RAID 6 groups (RAID 60) limits each rebuild's reach.
- Keep one hot spare, or at least a cold spare on site.
- Run regular scrubs, so latent bad sectors are found before a rebuild depends on them.
- Alert on failure immediately, by email or monitoring, and have a named person respond.
- Keep backups current: RAID is never a backup.
Running a drive replacement well
Many data-loss incidents during rebuilds are caused by people, not drives. A short procedure, written down and followed, removes most of that risk:
- Confirm the failed drive. Match the serial number in the alert with the bay label, and use the locate LED if available.
- Check the rest of the pool. If any other drive shows errors, stop and take advice before pulling anything.
- Make sure backups are current. If the last backup is old, run one before starting the rebuild where practical.
- Replace with an equal or larger drive of the same class: enterprise or NAS-rated, matching interface and sector size.
- Watch the rebuild. Note start and finish times and check that it completes without new errors.
- Return the hot spare. If a spare took over, decide whether the new drive becomes the spare or replaces it in the group, and restore your spare policy.
- Run a scrub afterwards to confirm the pool is fully consistent.
Reducing rebuild exposure with drive choice
Very large drives offer the lowest cost per terabyte but the longest rebuilds. If a workload has high uptime needs and modest capacity, more drives of a smaller size can be the safer choice: each rebuild finishes sooner, and performance during the rebuild suffers less. For surveillance, see also surveillance drives vs NAS drives.
Questions to ask your vendor
- What is the measured rebuild time for the proposed drive size, at our expected load?
- Is a hot spare included, and is it global or per group?
- Does rebuild priority adjust automatically under load?
- Are replacement drives stocked locally, and how are they dispatched?
- Are drives sourced from mixed batches?
Panaro's 24-bay D4X24CL supports RAID 6 and 60 as upgrades and has hot-swap bays for replacements without downtime. To plan a group layout and spare policy, send your requirement.
Frequently asked questions
How long does it take to rebuild a 16 TB drive?
On an idle system with an average sustained rate of about 150 MB/s, roughly 30 hours, because 16 TB divided by 150 MB/s is about 107,000 seconds. Under production load, rebuilds are throttled and can take several days. Measure it on your own system during commissioning.
Is RAID 5 safe with large drives?
It is risky for important data. Rebuilds take many hours, and during that time the array has no remaining redundancy. A second failure or an unreadable sector can cause data loss. RAID 6 or raidz2 keeps one level of parity during the rebuild and is the safer baseline.
Does a hot spare make rebuilds faster?
No. A hot spare starts the rebuild automatically within minutes of a failure, removing the delay of noticing the alert and fitting a new drive. The rebuild itself takes the same time. Its value is greatest at unattended or remote sites.
Why is a ZFS resilver faster than a RAID rebuild?
ZFS knows which blocks are in use and resilvers only allocated data, while traditional RAID rebuilds every sector of the drive. A pool that is 40% full resilvers in a fraction of the time of a full one, and checksums are verified as data is copied.