May 7, 2020

Quick Guide to RAID and Distinct Types (RAID 0, RAID 1, RAID 5, RAID 6, and RAID 10)

Abhishek Thakur

Are you also on the journey to learn all about RAID!

Well, a week ago, I was also on the same journey, and then I wrote this blog for others like me.

With this blog piece, you will find all the relevant information about RAID and its various disk type in one place.

Let’s begin!

First things first, What is RAID?

For those who don’t know, RAID is a technology that’s utilized to increase the reliability and performance of data storage.

What does RAID stand for?

RAID is an abbreviation for Redundant Array of Inexpensive Disks.

Also, many experts refer RAID to as Redundant Array of Independent Drives as well.

Still, if you guys are confused with what RAID is! Let me simplify it for you:

RAID is a system that consists of two or more drives working in parallel. With drives here, I am referring to hard discs. So, the setup of multiple disks used for data storage purposes is referred to as RAID.

Currently, there’s a trend to use the technology for SSD (Solid State Drives).

You might ask, why do we link multiple disks in RAID?

The disks are linked together to prevent data loss and speed up the performance of data storage i.e., the storing speed of data.

This multiple disk system enables you to employ various techniques such as disk mirroring, parity, and disk striping.

Levels of RAID

There are five significant RAID levels, each of which is optimized for a specific situation.

You must note here, that these levels aren’t standardized by any authorized standardization committee or industry group. That’s the reason you might find different companies introducing their implementations and unique numbered RAID systems.

What are the different RAID levels?

  • RAID 0: Striping
  • RAID 1: Mirroring
  • RAID 5: Striping with Parity
  • RAID 6: Striping with double parity
  • RAID 10: combining mirroring and striping

If you’re a newbie, let me clear the air by addressing that here striping doesn’t mean what you might be thinking of! 🙂 Read on to learn what exactly is disk striping, mirroring, and parity.

RAID Level 0: Striping

RAID 0 is also known as disk striping.

Within this RAID system, the data is divided evenly across two or more storage devices (SSD or HDD). Such division is done to speed up the performance by the proper organization of data, which allows a more expeditious way to read and write files.

You must note, disk striping is one of the best solutions for large applications (that deal with an enormous amount of data) to increase their performance.

RAID 0 is the most affordable type of redundant disk system and is uncomplicated to set up. However, an important fact to note here is that RAID 0 is not error-free or fault-tolerant. Therefore, it’s not recommended for critical data, as when this system fails, it may lead to complete data loss.

RAID 0: Advantages

  • No overhead. Complete Overhead capacity is used.
  • Be it read or write operations, RAID 0 offers exceptional performance.
  • Easy to implement technology

RAID 0: Disadvantages

  • Data isn’t safe. Since RAID 0 is not fault-tolerant, if one of the drives in the system fails, all the data in the array will be lost. Hence, it’s not recommended for mission-critical systems.

RAID Level 1: Mirroring

 

RAID 1 is already one up from the previous level (i.e., RAID 0) by being fault-tolerant. It does so by duplicating data by simultaneously writing on two storage devices. Such an internal process lets one disk create an exact copy on another drive. Hence it is referred to as mirroring as well.

Having a RAID 1 system will ensure any possible chances of data losses. In case one of the disks runs into some problem, the data is secured with the other one.

The system with this setup can read simultaneously from both disks and hence leads to a speedier availability and performance.

RAID 1: Advantages

  • RAID 1 setups present you with an exceptional read and write speed, that’s comparable to that of a single drive.
  • When a drive fails, no rebuilding of data is required as the data can be easily copied from the other drive in the system.
  • It’s a simple technology.

RAID 1: Disadvantages

  • Since all data is written twice, the effective storage capacity becomes half of the total drive capacity.
  • Hot swapping of the failed drive isn’t possible, which means that you’ll have to power down the computer to replace the failed drive.

RAID Level 5: Disk Striping and Parity

It’s one of the most common and popular choices for organizing independent disks.

A minimum of three disks is required for this setup. These disks are employed for data striping but not for duplication. To protect the system from any catastrophe of disk failure, it utilizes parity spread across all drives to rebuild data (whenever required).

In the event of data loss, it’s one of the most reliable RAID levels.

Not only it’s reliable with the data, but it’s also efficient in providing high performance and reliability.

RAID 5: Advantages

  • Offers a surpassing fast reading transactions
  • Consistent in accessing the data
  • Fault-tolerant

RAID 5: Disadvantages

  • A complicated technology to implement
  • More is required to build data (may take up to a couple of days)

RAID Level 6: Striping with Double Parity

RAID 6 can be understood easily as it’s quite similar to RAID 5, but with a simple additional feature of double parity i.e., the parity data are written to two drives.

To create such a system, you would require at least four drives. The system robust and can withstand even if two drives fail simultaneously. However, the chances of such an event are rare.

However, as seen in RAID 5, the failure of one disk will require swapping of drives, which may take hours or even days to rebuild. And if another drive fails, then the data will be lost forever. With RAID 6, the array will survive even when the second failure occurs.

RAID 6: Advantages

  • Just like RAID 5, reading of data transactions is expeditious.
  • Access of data is secured even if two drives fail simultaneously.
  • More securer that RAID 5

RAID 6: Disadvantages

  • Due to additional parity, the writing of data transactions is slower than RAID 5.
  • Complex technology to implement

RAID Level 10: a combination of RAID 1 & RAID 0

Yes, RAID 10 is nothing but a combination of RAID 0 and RAID 1 with a minimum of four disks.

Within this setup, two disks are striped and mirrored onto two other disks, creating a single array of disk drives—such collaboration benefits from the fault-tolerance feature of RAID 1 and high performance of RAID 0.

Thanks to the data redundancy, RAID 10 successfully offers faster data recovery in case of any disk failure. All such benefits come with a price, and hence the system is quite expensive to set up. Additionally, it primarily used only half of its storage capacity.

RAID 10: Advantages

  • In the case of disk failures, the rebuild time is quick.
  • Fault-tolerant
  • Higher and better performance

RAID 10: Disadvantages

  • Half of the storage capacity goes in mirroring.
  • Limited scalability

Other significant questions

On what interfaces do RAID systems operate?

RAID can be operated on diverse interfaces, which include the following major ones:

  • STA
  • FC (Fiber Channel)
  • SCSI
  • IDE

You may also find systems that may use SATA disks internally but would have a SCSI or FireWire interface for the host system.

What’s the difference between RAID and JBOD?

JBOD stands for Just a Bunch Of Disks.

Many times in a storage system, the disks do not comply with specific RAID levels and hence can be identified as the stand-alone disks. This is often accomplished for drives that contain swap files or spooling data.

I hope this blog was successful in explaining to you all the basics of RAID and its distinct levels.

What RAID level do you employ? Share it in the comments section!

Popular Blog Posts