RAID 5 (striping with parity)

RAID 5 stripes data across three or more drives and stores parity information, so one drive can fail without data loss and the usable capacity is the sum of all drives minus one.

In plain words

RAID 5 spreads data across the drives like RAID 0, and adds a block of parity for every stripe. Parity is a calculated value from which any one missing block can be rebuilt from the others. The parity is rotated across all the drives, so no single drive is the parity drive. Usable capacity is n minus 1 drives, where n is the number of drives: six 1.92 TB drives give 5 x 1.92 = 9.6 TB, and the protection is against the loss of any one drive.

The price of parity is write speed. To change a small piece of data, the controller must read the old data and the old parity, then write the new data and the new parity: about four drive operations for one logical write. Large sequential writes cost less, and reads are fast. A controller with a protected write cache hides much of the delay.

The larger risk is the rebuild. After a failure, every remaining drive is read in full to rebuild the missing one, which takes hours to days for large hard drives. During that time the volume has no redundancy, and a second failure, or an unreadable block on one of the survivors, loses the volume. That risk grows with drive size, which is why RAID 6 is preferred for large hard drives.

RAID 5 suits read-heavy data on solid-state drives or moderate-size drives, with a tested backup behind it.

Why it matters when you buy a server

RAID 5 gives the most usable capacity for one-drive protection, which is why it appears in quotations. Ask how large the drives are, how long a rebuild would take and whether the workload writes a lot. For a database with heavy writes, RAID 10 is usually the safer design.

Keep reading

Sources: SNIA Common RAID Disk Data Format specification; RAID controller QuickSpecs.

Related terms

Tell us what the server must run.

An engineer checks the configuration against the manufacturer's specifications and replies with a formal quotation.