keepcalculator

06 Numbers and Powers

Hard Disk Array & RAID Explained

Card No. 06·68866 · Updated · Standard formula, shown below

A hard disk array is a collection of two or more physical hard drives that a computer treats as a single storage unit. RAID (Redundant Array of Independent Disks) is the technology that defines how those drives work together, providing either increased performance, data redundancy, or both.

What Exactly Is a Hard Disk Array?

At its most basic, a hard disk array is simply a group of drives. You could plug three separate drives into a computer and call them an array, but without a controller or software to manage them, they would just appear as three separate drives. The real value comes when you add a layer of management—either a dedicated RAID controller card or the operating system’s built-in RAID software. This management layer makes the drives act as one logical unit, so the operating system sees a single volume (like C: or /data) instead of several.

Arrays exist for two main reasons: to make data access faster by splitting data across multiple drives, and to protect against data loss if one drive fails. Some configurations do both. The way you configure the drives—the RAID level—determines which of these goals you achieve and at what cost.

How RAID Fits Into the Picture

RAID is the set of rules that govern how data is written to and read from the drives in the array. It was developed in the late 1980s at the University of California, Berkeley, by David Patterson, Garth Gibson, and Randy Katz. Their original paper defined five levels (RAID 1 through RAID 5), but the concept has grown to include many more. Each RAID level is a different arrangement of data and redundancy, with its own trade-offs between speed, capacity, and fault tolerance.

RAID is not a backup. This is a critical distinction. RAID protects against a single drive failure, but it does not protect against accidental file deletion, malware, theft, fire, or a power surge that destroys the entire array. A proper backup strategy is separate from RAID.

Common RAID Levels and How They Work

Here are the RAID levels you are most likely to encounter, explained in plain terms:

  • RAID 0 (striping): Data is split into blocks and written across all drives. This improves read and write performance because multiple drives work at once. However, there is no redundancy—if one drive fails, all data is lost. RAID 0 is best for non-critical data like game installs or scratch files.
  • RAID 1 (mirroring): Data is written identically to two drives. If one fails, the other has a complete copy. You get high fault tolerance but only half the total capacity (two 1 TB drives give you 1 TB of usable space). Performance is good for reads, but writes are slightly slower because each write goes to both drives.
  • RAID 5 (striping with distributed parity): Data and parity (error-checking) information are striped across three or more drives. If any one drive fails, the missing data can be reconstructed from the remaining drives and the parity. You lose the capacity of one drive to parity, so three 1 TB drives give you 2 TB of usable space. RAID 5 offers a good balance of performance, capacity, and safety.
  • RAID 6 (striping with dual parity): Similar to RAID 5 but with two parity blocks, so it can survive two drive failures. It requires at least four drives and the usable capacity is total minus two drives. Write performance is slower than RAID 5 due to the extra parity calculations.
  • RAID 10 (1+0, mirroring + striping): Combines RAID 1 and RAID 0. You need at least four drives. Data is mirrored in pairs, and then striped across the pairs. It offers both high performance and high fault tolerance, but you only get half the total capacity. This is a popular choice for databases and other high-availability applications.

There are also nested levels like RAID 50 and RAID 60, which combine striping with RAID 5 or 6, but these are typically used in enterprise environments.

Hardware RAID vs. Software RAID

There are two main ways to implement RAID:

  • Hardware RAID: A dedicated controller card handles all the RAID processing. It has its own processor and cache, so it does not burden the main CPU. Hardware RAID often offers better performance and more features, but it costs more. If the controller fails, you usually need an identical card to recover the array.
  • Software RAID: The operating system (like Windows, Linux, or macOS) manages the array using the main CPU. This is cheaper and simpler to set up, but it uses system resources. Performance can be lower than hardware RAID, especially under heavy load. The advantage is portability—you can often move a software RAID array to another machine with the same OS.

Motherboard “RAID” that uses a chip on the motherboard is technically a hybrid—it uses the CPU but has some BIOS-level support. It is often called “fake RAID” because it is neither fully hardware nor fully software.

How to Choose a RAID Level

Choosing the right RAID level depends entirely on your priorities. Ask yourself these questions:

  • Is data loss catastrophic? If yes, avoid RAID 0.
  • How much capacity do you need? RAID 1 and 10 halve your capacity; RAID 5 and 6 use one or two drives for parity.
  • Do you need maximum read/write speed? RAID 0 and 10 are fastest; RAID 5 and 6 are slower for writes due to parity calculations.
  • How many drives do you have? RAID 5 requires at least 3, RAID 6 and 10 require at least 4.

For a home user who wants safety, a simple RAID 1 mirror of two drives is often enough. For a small business server, RAID 5 or RAID 10 are common choices. For a video editing workstation where speed is king and you have good backups, RAID 0 might be acceptable.

Common Problems and Misconceptions

One of the biggest misconceptions is that RAID makes your data safe. It does not. RAID is about availability—keeping the system running when a drive fails—not about backup. If you accidentally delete a file, RAID does not help. If ransomware encrypts your files, RAID does not help. Only a separate backup (ideally offsite) does.

Another common problem is the “RAID rebuild” failure. When a drive fails in a RAID 5 array, the system must rebuild the data onto a replacement drive. During this rebuild, the array is under heavy stress, and if another drive fails, you lose everything. This is why RAID 6 exists—it can survive two failures.

People also often confuse RAID with other storage concepts like JBOD (Just a Bunch Of Disks), which simply spans drives without any redundancy or striping, or with SSDs (solid-state drives). RAID works with SSDs too, but the performance benefits are different because SSDs are already fast.

Costs and Capacity Considerations

The cost of a RAID array is not just the drives—it includes the controller (if hardware RAID), the enclosure, and the electricity to run it. You also lose capacity to redundancy. For example, four 4 TB drives in RAID 5 give you 12 TB of usable space (16 TB total minus one drive for parity). In RAID 10, you get 8 TB. In RAID 0, you get all 16 TB but with zero fault tolerance.

You should also consider the cost of downtime. If a drive fails and you have no redundancy, you lose data and time. If you have RAID, you can often swap the drive while the system is still running (hot-swap) and continue working, though you should always back up before a rebuild.

Alternatives to Traditional RAID

RAID is not the only way to manage multiple drives. Modern alternatives include:

  • ZFS (Zettabyte File System): A file system that includes its own RAID-like features (RAID-Z) with built-in checksums to detect and repair data corruption. It is popular in NAS devices and servers.
  • Unraid: A proprietary NAS operating system that allows you to mix different drive sizes and provides parity protection without striping. It is user-friendly and popular for home servers.
  • Storage Spaces (Windows) and Apple File System (APFS): Built-in software solutions that offer similar functionality to RAID but with more flexibility and easier management.
  • Cloud storage: For some use cases, off-site cloud storage can replace the need for local redundancy, though it introduces latency and ongoing costs.

Frequently Asked Questions

Is RAID a backup?
No. RAID protects against drive failure, not against data loss from deletion, corruption, malware, or disasters. Always maintain a separate backup.

Can I use different size drives in a RAID array?
In most RAID levels, the array will use the capacity of the smallest drive for each slot. For example, in a RAID 5 with a 2 TB and two 1 TB drives, each drive contributes 1 TB, so you get 2 TB usable (minus parity). Some systems like Unraid allow mixed sizes.

What happens if I remove a drive from a RAID 0 array?
You lose all data on that array. RAID 0 has no redundancy, so the array is broken and the data is unrecoverable without a professional data recovery service, which is very expensive.

Can I convert a RAID 1 array to RAID 5 without losing data?
Sometimes, depending on the controller. Many hardware controllers allow migration to a different RAID level, but it is risky and you should always back up first. Software RAID may not support this.

How many drives do I need for RAID 10?
At least four. RAID 10 requires an even number of drives (4, 6, 8, etc.) because it mirrors pairs and then stripes across them.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →