RAID

RAID Levels Explained

By AtomicDisks Editorial Team · · 4 min read

RAID stands for Redundant Array of Independent Disks. The idea is to combine several physical drives into one logical unit that behaves like a single disk. Depending on the arrangement, you get more speed, more fault tolerance, or some balance of both.

Each arrangement is called a level. They use three basic techniques: striping, mirroring and parity. Once you understand those, the levels are easy to compare.

The building blocks

Striping splits data into chunks and spreads them across several drives, so reads and writes can happen in parallel. This improves speed but does not by itself protect data.

Mirroring writes identical copies to two or more drives. If one fails, another still holds everything.

Parity stores a calculated value that lets the array rebuild missing data. If one drive fails, the system uses the remaining data and the parity to reconstruct what was lost.

RAID 0: striping

RAID 0 stripes data across two or more drives with no redundancy. Capacity is the sum of all drives, and performance can be high because several drives work together.

The danger is that failure of any single drive destroys the whole array, since every file has pieces on every disk. The more drives you add, the higher the overall risk. It suits temporary data or work files that can be recreated, not anything you cannot afford to lose.

RAID 1: mirroring

RAID 1 keeps a complete copy of the data on each of two drives. If one fails, the other carries on without interruption. Read speed can improve because either disk can serve a request, while write speed is about that of a single drive.

The cost is capacity: you only get the space of one drive. RAID 1 is simple, easy to recover, and a common choice for small servers and home systems where reliability matters more than size.

RAID 5: striping with single parity

RAID 5 needs at least three drives. Data and parity are striped across all of them, with the parity blocks rotated between disks. The array survives one drive failure. Usable capacity equals the total of all drives minus one drive's worth, which is used for parity.

Reads are fast. Writes are slower, because each write requires updating the parity as well. When a drive fails, the array runs in a degraded state and rebuilding onto a replacement puts heavy load on the remaining disks. With very large drives, the long rebuild raises the chance that a second drive or an unreadable sector causes a failure during the process.

RAID 6: striping with double parity

RAID 6 works like RAID 5 but stores two independent parity values, so it tolerates two simultaneous drive failures. It needs at least four drives, and usable capacity is the total minus two drives. Write performance is lower than RAID 5 because of the extra parity work, but the added safety is worthwhile for large arrays where rebuilds take a long time.

RAID 10: mirrors then stripes

RAID 10, sometimes written 1+0, combines mirroring and striping. Drives are paired into mirrors, and data is striped across the pairs. It needs at least four drives and gives half the total capacity.

It offers good read and write speed and fast rebuilds, since a failed drive only needs to copy from its mirror partner. It can survive multiple failures as long as both drives in a single pair do not fail. This is a popular layout for databases and busy servers.

Quick comparison

  • RAID 0: Fastest, no protection, all capacity.
  • RAID 1: Survives one failure, half the capacity with two drives.
  • RAID 5: Survives one failure, capacity of N minus one drives.
  • RAID 6: Survives two failures, capacity of N minus two drives.
  • RAID 10: Survives at least one failure, half the capacity, strong performance.

Hardware, software and file system RAID

RAID can be run by a dedicated controller card, by the motherboard chipset, or by the operating system in software. Software RAID is flexible and does not tie your data to one specific controller model. Some file systems also include their own built-in redundancy features that act like RAID but with extra checks on data integrity.

If you use a hardware controller, keep in mind that a failed controller may require a similar replacement to read the array again.

RAID is not a backup

This point cannot be overstated. RAID protects against drive failure, not against deletion, corruption, malware, fire, theft or a controller fault. If you delete a file or ransomware encrypts it, every drive in the array dutifully reflects the change.

Treat RAID as a way to keep a system running when a disk dies, and keep separate backups, including one stored elsewhere, for real data protection.

Choosing a level

For a single desktop with important files, RAID 1 is easy to understand. For a home server with several disks, RAID 5 or 6 trades some speed for better capacity. For performance-sensitive workloads that cannot go down, RAID 10 is common. Use RAID 0 only when speed matters more than the data.

Frequently Asked Questions

Can I mix drives of different sizes in a RAID array?

Usually yes, but the array treats every drive as if it were the size of the smallest one, wasting the extra space on larger drives. For best results, use identical or very similar drives.

What happens when a drive in a RAID 1 or RAID 5 fails?

The array continues in a degraded mode, still serving data. You should replace the failed drive promptly and let the array rebuild. Performance is lower and the risk is higher until the rebuild finishes.

Is RAID needed for a home computer?

Most home users are better served by regular backups than by RAID. RAID adds uptime for servers, but it does not protect your files from accidents or malware.

Related reading