RAID (Redundant Array of Independent Disks) is a data storage virtualization technology that combines multiple physical disk drives into one or more logical units to improve performance, data redundancy, or both. It addresses the input/output bottlenecks and hardware failure risks of single disks through parallel data access and fault tolerance. The operating system sees the array as a single volume while a controller or kernel driver manages reads and writes underneath.
How it works
Arrays combine drives using three foundational mechanisms: striping, which splits sequential data blocks across multiple disks to multiply throughput; mirroring, which writes identical copies of data to two or more drives; and parity, which calculates mathematical checksums stored across the disks to rebuild missing data if a drive fails.
RAID can be managed by a dedicated hardware controller card with its own processor and battery-backed cache, or in software using operating system tools like Linux mdadm, ZFS, or Windows Storage Spaces. Common levels balance capacity, speed, and fault tolerance differently:
RAID 0: Pure block striping across at least two drives. Maximizes read/write speed and capacity, but offers zero redundancy—if one drive fails, all data is lost.RAID 1: Exact mirroring across two or more drives. Provides high read speeds and survives single-drive failure, but usable capacity equals only a single disk.RAID 5: Striping with distributed parity across at least three drives. Survives one disk failure while preserving more usable space than mirroring, though write operations incur a parity calculation penalty.RAID 6: Extends parity striping to two independent parity blocks across at least four drives, tolerating two simultaneous disk failures.RAID 10: A striped set of mirrored pairs requiring at least four drives. Delivers fast random I/O and quick rebuild times, surviving multiple failures as long as both drives in the same mirror pair do not fail together.
Example
On a Linux server, engineers frequently configure software arrays with mdadm rather than relying on motherboard-level firmware RAID. Creating a four-drive RAID 10 array from NVMe devices looks like this:
sudo mdadm --create --verbose /dev/md0 --level=10 --raid-devices=4 /dev/nvme0n1 /dev/nvme1n1 /dev/nvme2n1 /dev/nvme3n1
Once initialized, /dev/md0 is formatted with a filesystem such as ext4 or XFS and mounted like a standard partition, while cat /proc/mdstat reports synchronization progress and drive health.
What matters when choosing a server or hosting
When provisioning dedicated servers or storage nodes, match the RAID level to your workload's I/O profile rather than defaulting to maximum capacity. Database servers with heavy random writes perform significantly better on RAID 10 than on parity-based RAID 5 or RAID 6, which suffer from write amplification.
Also weigh hardware controllers against modern OS-level storage stacks. While hardware cards offload parity math, they introduce a single point of failure: if the card dies, you often need an identical model to import the array metadata. Reviewing real-world benchmarks from a manual software RAID setup helps determine whether kernel-level arrays meet your throughput targets without proprietary hardware lock-in.
Common mistakes
- Treating RAID as a backup: Redundancy protects against physical disk failure, not accidental file deletion, ransomware, filesystem corruption, or datacenter fire.
- Using parity RAID on large-capacity HDDs: Rebuilding a multi-terabyte
RAID 5array puts intense read stress on surviving disks, increasing the risk of a second drive failing or hitting an unrecoverable read error before recovery finishes. - Ignoring monitoring and scrubbing: Running an array in a degraded state without alerts—or skipping periodic parity checks—leaves silent bit rot undetected until a failure occurs.
- Mixing mismatched drives: Combining disks of different sizes caps every member to the capacity of the smallest drive, and mixing enterprise drives with consumer disks lacking TLER (Time-Limited Error Recovery) can cause healthy drives to drop out of hardware arrays prematurely. For more on hardware selection, see DIY RAID: array reliability and performance.
FAQ
Can I expand an existing RAID array by adding more drives?
Yes, many software tools like mdadm and enterprise hardware controllers support online capacity expansion for levels such as RAID 5 and RAID 6, though reshaping the stripe layout takes significant time and heavy disk I/O.
Should I use RAID with enterprise NVMe SSDs?
Yes. Even though solid-state drives have no moving parts, they still fail abruptly due to controller faults or flash wear, making RAID 1 or RAID 10 essential for production uptime—especially when building a high-performance storage array.
What happens if a server loses power during a write operation?
Without a battery-backed cache unit (BBU) on a hardware controller or power-loss protection (PLP) capacitors on SSDs, sudden power loss can cause a "write hole," leaving data and parity blocks out of sync.