RAID rebuild calculator: how long will your array stay degraded?

Version 1.1.0

Estimate how long a RAID array stays degraded after a drive fails, how much data the rebuild has to read, and how likely a read error is along the way.

Have the RAID level, the number and size of drives, a rebuild speed, and the read error rate from the drive's datasheet.

RAID level Required
Drive count
drives
Drive capacity Required
Drive capacity unit
Rebuild throughput
MB/s
Member read scope
%
URE specification Required
Replacement delay
hours

Rebuild result

Total degraded window2 days 11 hours
Rebuild copy time
2 days 11 hours
Replacement delay
0 hours
Source media read
32.0 TB
Additional errors tolerated
1
Modeled read-error exposure22.6%

What to enter

Rebuild throughput is the speed the array reads the surviving drives during a rebuild. A speed from an earlier rebuild on similar hardware is best. A drive's top sequential speed is too high, because the array keeps serving other work. If you're unsure, try a few speeds and compare.

Member read scope is the share of each drive the rebuild reads. Leave it at 100% unless your system only rebuilds used space, as ZFS does.

The URE specification is on the drive's datasheet, usually as "nonrecoverable read errors per bits read". The Seagate IronWolf manual, for example, lists 1 per 10^15 bits.

Replacement delay is the time before a new drive goes in. It adds to the degraded window but not to the read.

RAID 6 with six 8 TB drives at 150 MB/s

Example

The rebuild reads 32 TB and takes 2 days 11 hours. At 1 error per 10^15 bits, modeled read-error exposure is 22.6%. RAID 6 can still correct one more error, so this is not a 22.6% chance of losing data.

How long does a RAID rebuild take?

Rebuild time is the data read divided by the rebuild speed. Waiting for a replacement drive adds to the time the array runs without full protection.

Degraded window

Formula

Rebuild time = drives read × drive size × read scope ÷ rebuild speed

Degraded window = rebuild time + replacement delay

How many drives the rebuild reads depends on the layout:

LayoutDrives read to rebuild oneMore read errors it can correct
RAID 1 and RAID 101, the mirror partner0
RAID 5All the others, N - 10
RAID 6At least N - 21

N is the number of drives. A real RAID 6 rebuild may read more than N - 2 drives. Intel's RAID guide explains why mirror and parity rebuilds read differently.

What does read-error exposure mean?

It's the modeled chance of hitting at least one unreadable sector while the rebuild reads every bit, if each bit fails at the datasheet rate on its own. More data read, or a higher error rate, means more exposure.

Read-error exposure

Formula

Exposure = 1 - e^(-bits read ÷ bits per error)

On RAID 1, RAID 5, and RAID 10, one such error during a rebuild can leave a block that can't be rebuilt. RAID 6 can correct one.

Is a high exposure the chance of losing my array?

No. The datasheet rate is a maximum, not a measured rate, so real drives can do better. Errors also don't strike each bit independently. What happens after an error depends on your controller or software.

Treat the number as a way to compare layouts and drive sizes. With the example's drives in RAID 5, the read grows to 40 TB and exposure to 27.4%, with no error left to correct.

The model also leaves out a second drive failing during the rebuild. The drive reliability explorer shows how often drive models fail, and the RAID calculator compares the space each layout gives.