Casbay Knowledge Base

Search our articles or browse by category below

What is RAID?

Last modified: October 1, 2022
Estimated reading time: 3 min

What is RAID?

The Redundant Array of Inexpensive Disks or RAID is a robust method of storing data efficiently. It uses techniques like striping, mirroring, and parity to utilize multiple hard drives combined into larger volumes.

However, RAID serves two main purposes it can be configured to mirror your data. It gives you the potential opportunity to survive a catastrophic disk crash (depending on the configurations). Another of its purpose is to make data reading and writing faster. Some RAID configurations do both.

Although you can recover data in some instances and some configurations, RAID will not save your data in the event of a catastrophic failure. For example, all of the drives failing. Therefore, a good backup schedule is essential to protect your data.

Some of the more commonly used RAID configurations are RAID 0, RAID 1, and RAID 5. There are also configurations that combine two or more RAID levels, such as RAID 01, RAID 10, and RAID 50. Some RAID configurations exist but are very rarely used, for example, RAID 2, RAID 3, RAID 4, and RAID 03.

There is another type of configuration, we call it JBOD. It stands for Just a Bunch Of Disks. This configuration can use any number of disparate drives and combine them into volumes. We consider this as a non-standard RAID configuration and it doesn’t provide data redundancy or recovery.

In software or hardware, RAID can be introduced. If the RAID is based on software, your operating system will regulate it if its hardware is based on a RAID controller extension card using one of your expansion slots for motherboards. You can configure a hardware RAID card through your own BIOS.

RAID

has many configurations depending on your needs and hardware availability. Most of those configurations are based on some form or combination of the first two levels. If you understand RAID level 0 and RAID level 1 you can understand any of the others. So what are RAID 0 and RAID 1?

RAID 0

aka Striping is a way of storing data on a volume. The data is written in stripes across all of the drives in the array. Striping improves read/write speeds, but has no protection against drive failure. In order to have that protection, you need to use other techniques like parity and/or mirroring.

Parity is a redundancy mechanism somewhat like a data checksum that is created by the RAID controller. It uses a parity bit that is a calculation representing the total data in a stripe. This bit can be on a separate drive, as is usual for RAID level 5, or striped across the drives in the volume. In the event of one of the drives crashing, the RAID can be rebuilt using the parity data.

RAID 1

aka Mirroring is another way of storing data and is fundamental to RAID’s ability to recover from a drive failure. The volume(s) are mirrored, that is, there is an identical copy of the data on another volume. This method requires twice the amount of hard drives that you would need for a server without RAID but gives you both redundancy and recoverability. Due to the information being written concurrently on both sides of the mirror, read speeds are slower, but if one of the mirrored volumes fails, the RAID can still access the other side of the mirror, and information reading/writing is not influenced.

The most common RAID levels are: RAID 0, RAID 1, RAID 5, and RAID 10 (aka 1+0). Each of them offers different advantages and disadvantages as outlined below.

LEVEL 0 – stripe

  • Minimum number of drives: 2
  • R/W Speed: Excellent
  • Data recovery: none, no mirror

LEVEL 1 – mirror

  • Minimum number of drives: 2
  • R/W Speed: Good
  • Data recovery: The mirrored volume can be recovered in most instances.

LEVEL 5 – striping with parity

  • Minimum number of drives: 3
  • R/W Speed: Excellent
  • Data recovery: no mirror, however, the RAID can be rebuilt from parity in some instances

LEVEL 10 – striped and mirrored volumes with parity

  • Minimum number of drives: 4
  • R/W Speed: Excellent

RAID 1+0 (often referred to as RAID 10) is a combination of RAID 1 and RAID 0 meaning that it will be able to provide both a read/write performance increase and data recoverability. A RAID 10 requires at least four identical drives. 

If you are interested in Dedicated Server, click here to browse more guide articles or visit our Dedicated Server page.

Was this article helpful?
Dislike 0
Previous: Working with MySQL database engines
Next: Transfer Files via rsync and SSH on Linux