Request a quote
Emergency SectorsCareers About us Blog Get in touch
Kneeling technician sliding a unit into an open server rack with bundled blue and yellow cables

RAID 5: how it works and when to use it

RAID 5 combines at least three disks into one array and writes parity alongside the data, so the contents of any one failed disk can be calculated from the others. The server or NAS keeps running after a disk failure. This page explains how it works, where its limits are, and when another level is the better choice.

How RAID 5 works

RAID 5 splits data into blocks and writes them across all the disks in the array, a technique called striping. For every row of blocks it also calculates a parity block, using an XOR calculation over the data blocks in that row. If one disk fails, the controller can work out what was on it from the remaining data and parity. Unlike RAID 4, which keeps all parity on one dedicated disk, RAID 5 spreads the parity across every disk, so no single disk becomes the bottleneck.

The cost of that protection is one disk’s worth of capacity. With four 4 TB disks you get 12 TB of usable space: the capacity of all disks minus one, and always based on the smallest disk in the array.

  • Minimum of three disks Two for data and one for parity per row, with the parity moving from disk to disk.
  • Survives one failure Any one disk can fail and the array keeps running. A second failure before the rebuild finishes loses the array.
  • Fast reads Reads come from all disks at once, so read performance scales with the number of disks.
  • Slower small writes Changing one block means reading the old data and parity, then writing both again: four operations for one write.

RAID 5 compared with RAID 1, 6 and 10

Four common RAID levels side by side.
LevelMinimum disksUsable capacityDisk failures it survives
RAID 12Half, as each disk is a mirrorOne, as long as one copy remains
RAID 53All disks minus oneOne
RAID 64All disks minus twoAny two
RAID 104Half, mirrored pairs striped togetherOne per mirrored pair

RAID 10 avoids the parity calculation and suits databases and virtual machines with many small writes. RAID 6 is the safer choice for arrays of large hard disks, for the reason in the next section.

Risk

The rebuild is the weak moment

A RAID 5 array is at its most vulnerable just after a disk has failed.

Degraded mode

With one disk gone, every read from that disk has to be recalculated from the others. The array works, but slower, and without any protection left.

Reading every sector

A rebuild reads every sector of every remaining disk. On large hard disks that can take a day or more, and an unreadable sector or a second failure in that time can stop the rebuild.

What reduces the risk

A hot spare that starts the rebuild straight away, monitoring that reports a failing disk early, RAID 6 for large disks, and a backup that does not depend on the array at all.

RAID 5 is not a backup

RAID protects against one thing: a disk that stops working. A deleted file, a ransomware attack, a failed controller, a fire or a flood affects every disk in the array at once, and RAID faithfully keeps the damage consistent across all of them. A backup is a copy on a different device and in a different place, ideally with one copy that cannot be changed. That is the 3-2-1 backup rule, and how to make one copy unchangeable is covered in Immutable backup.

Where our work stops

This is an explanation, not advice on a particular make or model. We supply servers and storage, design and set up the array, monitor it and replace a failed disk: see Storage systems, Business computers and servers and Server parts. Physical recovery of damaged disks in a clean room is not something we do; that is work for a specialist data recovery lab. The difference between storage types is explained in SAN vs NAS, and backup outside the array in Backup as a service.

Related topics

What it connects to

These pages cover the neighbouring part of the same environment.

Frequently asked

Questions we get about this

The ones that come up most, answered briefly.

How many disks do you need for RAID 5?

At least three. The usable capacity is the total of all disks minus one, based on the smallest disk. With four 4 TB disks you get 12 TB of usable space.

What happens when a disk fails in RAID 5?

The array keeps running in degraded mode and recalculates the missing data from parity. Once the failed disk is replaced, a rebuild restores the protection. If a second disk fails before the rebuild is finished, the array is lost.

Is RAID 5 better than RAID 10 or RAID 6?

It depends on the workload. RAID 5 gives the most usable space for one disk of protection. RAID 10 is faster for many small writes, and RAID 6 survives two failed disks, which matters for arrays of large hard disks with long rebuilds.

Can you recover data from a failed RAID 5 array?

Not physically. We replace failed disks, rebuild arrays and restore from backup. Recovering data from damaged disks in a clean room is work for a specialist data recovery lab, and that is where our work stops.

Curious what we would take over?

In a thirty-minute conversation we go through your current IT landscape and tell you honestly whether managed IT suits your situation.

Practical IT knowledge in your inbox

New guides on management, security and the workplace, written by the people doing the work. No sales talk, and you can unsubscribe in one click.

We use your address for the newsletter only. See our privacy policy.

Request a quote Call