Save 10%Pay yearly on any plan. 6% half-yearly, 3% quarterly. Help centreWhatsAppTelegram TeamsOpen a ticket

RAID Explained: Levels 0, 1, 5, 6 and 10, and Why RAID Is Not a Backup

RAID joins several disks for speed, for safety against a disk failure, or both. The common levels compared, hardware vs software, and what RAID cannot do.

3 min readBy Daniel

Reviewed by the AmazingRDP technical team

RAID levels explained

Several disks of your own to build an array on. See our dedicated servers. See Cheap Dedicated Servers from $38.99

RAID stands for Redundant Array of Independent Disks. It combines several drives so that the system sees one, with one or both of two aims: the array survives when a drive dies, or it is faster than a single drive. Which you get depends on the "level". Five levels cover nearly every real installation.

The three building blocks

  • Striping: data is cut into pieces and spread over the drives. Fast; no protection.
  • Mirroring: every piece is written to two drives. Safe; half the space.
  • Parity: extra check data is calculated so that a missing drive's content can be worked out from the others. Safe with less waste; slower to write and to repair.

The levels compared

LevelMinimum drivesSurvivesUsable space (n drives)Good for
RAID 0 (striping)2Nothing: one failure loses everythingAllScratch space, caches
RAID 1 (mirror)21 driveHalfSystem disks, small servers
RAID 5 (single parity)31 driven − 1File storage on small arrays
RAID 6 (double parity)42 drivesn − 2Large-capacity storage
RAID 10 (mirrors, striped)41 drive per mirror pairHalfDatabases, virtual machines

RAID 0

The fastest, and with two drives twice as likely to fail as one. Use it only for data you can recreate.

RAID 1

Simple and robust. Reads can be faster than a single drive; writes are the same. The standard choice for a server with two drives.

RAID 5

Efficient with space. Its weakness appears after a failure: rebuilding onto a new drive means reading every remaining drive completely, which takes many hours on large disks, and a second failure or a read error in that time loses the array. With today's very large hard disks, RAID 5 is no longer advised; it remains reasonable on small SSD arrays.

RAID 6

Like RAID 5 with a second set of parity, so a rebuild is survivable even if another drive fails. Slower to write.

RAID 10

Fast for reading and writing, and quick to rebuild because only one mirror is copied. It costs half the capacity. The usual choice where performance matters.

Hardware or software RAID

Hardware RAIDSoftware RAID
Done byA controller cardThe operating system
CostThe cardNone
If the controller diesYou may need the same model to read the disksAny computer with the same system reads them
ExamplesServer controllers with a battery or flash cacheLinux mdadm, ZFS, Windows Storage Spaces

Software RAID is the norm on rented servers today. Avoid the "RAID" built into cheap PC mainboards, which combines the drawbacks of both.

A mirror on Linux in four commands

sudo apt install mdadm
sudo mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb /dev/sdc
cat /proc/mdstat
sudo mkfs.ext4 /dev/md0

This erases both drives. Check the device names with lsblk first. Mounting the new device is covered in mounting drives in Linux; volume management on top of it in LVM; the Windows equivalent across several servers in Storage Spaces Direct.

Watch the array

RAID hides a failed drive from you: everything keeps working. If nobody notices, the second failure is the one that hurts. Set up notifications (mdadm --monitor with a mail address, or your controller's tool) and look at /proc/mdstat now and then. Replace a failed drive promptly.

RAID is not a backup

EventDoes RAID help?
A drive failsYes
You delete a file by mistakeNo. It is deleted on all drives at once
Ransomware encrypts the dataNo
A software fault corrupts a databaseNo
Fire, theft, or the whole server failsNo

RAID is about staying online through a hardware fault. A backup is a separate copy, somewhere else, from an earlier time. You need both: see server backup methods.

Which level?

SituationLevel
Two drives in a serverRAID 1
Four or more drives, performance mattersRAID 10
Many large drives for storageRAID 6
Temporary data, speed above allRAID 0

On rented servers

On a VPS the provider's storage sits underneath; you see one virtual disk and RAID is not yours to configure. On a dedicated server with two or more drives you choose. Several of our builds have two NVMe drives; ask support at ordering time how they should be set up. See dedicated servers and the advantages of a dedicated server.

Questions

What is RAID?

A way of combining several drives into one unit for protection against a drive failure, for speed, or both.

Which RAID level is best?

RAID 1 for two drives, RAID 10 for performance with four or more, RAID 6 for large storage arrays.

Is RAID a backup?

No. RAID protects against a failed drive only. Deleted files, ransomware and disasters need a separate backup.

What is the difference between RAID 5 and RAID 6?

RAID 5 survives one failed drive, RAID 6 two. RAID 6 is safer during the long rebuild of large disks.