Want to combine hard disks to form a RAID (Redundant Array of In­de­pen­dent Disks)? Then you’ve got a few different options. One of the most common levels is RAID 5. This com­bi­na­tion of three or more data carriers is char­ac­ter­ized by a good balance between high per­for­mance and security, and costs. So, what makes RAID 5 a good level in terms of its price-per­for­mance, and how does it work?

What is RAID 5?

RAID 5 is a com­bi­na­tion of three or more hard disks that function as a single logical drive and thereby out­per­form in­di­vid­ual data carriers in terms of re­li­a­bil­i­ty and read speed. But to offer these ad­van­tages, a RAID 5 system relies on two active methods. On the one hand, the network must dis­trib­ute files evenly over all clamped disks, which is also known as “striping”. On the other hand, a RAID 5 cal­cu­lates parity in­for­ma­tion for all stored data, which is also dis­trib­uted to the various storage media. Using a XOR link, the storage system then enables the re­con­struc­tion of lost or damaged data blocks.

Fact

XOR stands for eXclusive OR. A XOR link connects two state­ments via the two-digit junction of the same name “exclusive or” or “either ... or”. For data in a RAID 5 network, this means the following: all in­di­vid­ual elements of a data strip, which are evenly dis­trib­uted on the hard drives, are linked to the ap­pro­pri­ate parity in­for­ma­tion using XOR logic. When devices access the data record, they can either read the exemplary data “A1” on hard disk 1 directly from the disk or re­con­struct it using the parity block “Ap”.

The total capacity a RAID 5 system offers for user data can be cal­cu­lat­ed using the following formula:

(Number of hard drives - 1) x storage capacity of the smallest hard drive

For three storage media with 1 terabyte (TB) each, this results in a capacity of 2 terabytes. The remaining 1 terabyte is blocked for parity in­for­ma­tion. Re­gard­less of the total storage size, a RAID 5 is only at risk if at least two hard drives fail si­mul­ta­ne­ous­ly. That’s why, typically, an odd number of data carriers, i.e., three, five, seven, etc., is combined.

De­f­i­n­i­tion

A RAID (Redundant Array of In­de­pen­dent Disks) is a com­bi­na­tion of at least two different storage media to form a single large logical drive. The specific function is de­ter­mined by the re­spec­tive hard drive setups, which are defined in RAID levels such as RAID 5. Its key ad­van­tages are enhanced data security and an improved data through­put rate.

An overview of the func­tion­al­i­ty of RAID 5

Striping and parity are the decisive features of RAID 5. What makes the RAID level special is the com­bi­na­tion of drives and that the system dis­trib­utes user data and parity in­for­ma­tion to all in­te­grat­ed hard drives. For example, RAID 4 combines both methods, but saves the parity blocks on a dedicated disk.

To make the func­tion­al principle of RAID 5 more tangible, the following diagram il­lus­trates the data storage in a system using three hard drives as an example.

The ad­van­tages and dis­ad­van­tages of RAID 5 systems

RAID 5 is char­ac­ter­ized by a good price-per­for­mance ratio due to its efficient gen­er­a­tion of re­dun­dan­cy. In contrast to other systems, the files are not saved in multiple versions, but only re­dun­dant­ly thanks to the parity blocks. Compared to use of in­di­vid­ual drives, the storage capacity decreases, but RAID 5 networks retain a com­par­a­tive­ly large chunk of the original capacity. On the other hand, RAID 5 is a cost-effective solution to boost read speed. The striping of the data allows parallel access to several parts of a related data block, so that inquiring devices can complete the read process much faster.

Another strength of RAID 5 is increased re­li­a­bil­i­ty. If a hard disk fails because it is defective, or if the data on a disk is lost for other reasons, op­er­a­tions can still be main­tained. Since the remaining storage media are used more heavily during the recovery process, the risk of failure increases sig­nif­i­cant­ly during this period.

However, RAID 5 is not without its dis­ad­van­tages. Each write process to the hard disk cluster is connected with an ad­di­tion­al read step in order to check and re­cal­cu­late the parity in­for­ma­tion that is available. Another step is needed to dis­trib­ute the parity data for the newly stored user data on the disks. Compared to the in­di­vid­ual drives and other RAID levels such as RAID 0, the write speed of the data carriers in a RAID 5 system is much lower.

AdĀ­vanĀ­tages of RAID 5 DisĀ­adĀ­vanĀ­tages of RAID 5
Increased reĀ­liĀ­aĀ­bilĀ­iĀ­ty through parity Write speed reduced compared to single drives
Good price-perĀ­forĀ­mance ratio in terms of reĀ­dunĀ­danĀ­cy and storage opĀ­tiĀ­mizaĀ­tion The storage capacity of the inĀ­diĀ­vidĀ­ual hard drives is somewhat limited

What are typical usage scenarios for RAID 5?

RAID level 5 offers a good com­pro­mise between cost and per­for­mance op­ti­miza­tion compared to separate hard drives. The network also scores high for re­li­a­bil­i­ty. However, the reduced write rate means the storage solution is of little interest for databases with multiple larger files. In other words: RAID 5 is best used for ap­pli­ca­tions that access multiple small file blocks. Typical ap­pli­ca­tion scenarios of RAID 5 therefore include servers for mi­cro­trans­ac­tions and database servers, which can contain a large number of entries, but are clearly limited in terms of maximum file size.

Note

A RAID 5 is not a backup solution! If more than one hard disk fails, most of the data can no longer be restored – only the smallest files remain intact on a disk.

What other common RAID levels are there?

Data re­dun­dan­cy with parity, which is what makes RAID 5 so efficient, isn’t unique to the level. RAID 6 also relies on the principle and even dis­trib­utes the parity in­for­ma­tion twice to the in­te­grat­ed data carriers. Levels RAID 1 and RAID 10 take a different approach. Here, data is fully mirrored, which means that these systems offer one hundred percent re­dun­dan­cy. RAID 0 only increases the speed with striping and offers no re­dun­dan­cy at all.

A detailed com­par­i­son of the various systems can be found in our com­pre­hen­sive RAID level com­par­i­son.

Tip

Want a reliable cloud solution to secure your devices and data? Cloud Backup from IONOS encrypts and stores your data in certified IONOS data centers!

Go to Main Menu