Open In App

RAID (Redundant Arrays of Independent Disks)

RAID is a technique that makes use of a combination of multiple disks instead of using a single disk for increased performance, data redundancy, or both. The term was coined by David Patterson, Garth A. Gibson, and Randy Katz at the University of California, Berkeley in 1987. 

Why Data Redundancy?

Data redundancy, although taking up extra space, adds to disk reliability. This means, that in case of disk failure, if the same data is also backed up onto another disk, we can retrieve the data and go on with the operation. On the other hand, if the data is spread across multiple disks without the RAID technique, the loss of a single disk can affect the entire data. 



Key Evaluation Points for a RAID System

RAID is very transparent to the underlying system. This means, that to the host system, it appears as a single big disk presenting itself as a linear array of blocks. This allows older technologies to be replaced by RAID without making too many changes to the existing code. 

Different RAID Levels

  1. RAID-0 (Stripping)  
  2. RAID-1 (Mirroring) 
  3. RAID-2 (Bit-Level Stripping with Dedicated Parity)
  4. RAID-3 (Byte-Level Stripping with Dedicated Parity)
  5. RAID-4 (Block-Level Stripping with Dedicated Parity) 
  6. RAID-5 (Block-Level Stripping with Distributed Parity) 
  7. RAID-6 (Block-Level Stripping with two Parity Bits)

Raid Controller

1. RAID-0 (Stripping)

RAID-0

Raid-0

Evaluation

Advantages

  1. It is easy to implement.
  2. It utilizes the storage capacity in a better way.

Disadvantages

  1. A single drive loss can result in the complete failure of the system.
  2. Not a good choice for a critical system.

2. RAID-1 (Mirroring)

Raid-1

Evaluation

Assume a RAID system with mirroring level 2.  



Advantages

  1. It covers complete redundancy.
  2. It can increase data security and speed.

Disadvantages

  1. It is highly expensive.
  2. Storage capacity is less.

3. RAID-2 (Bit-Level Stripping with Dedicated Parity)

Advantages

  1. In case of Error Correction, it uses hamming code.
  2. It Uses one designated drive to store parity.

Disadvantages

  1. It has a complex structure and high cost due to extra drive.
  2. It requires an extra drive for error detection.

4. RAID-3 (Byte-Level Stripping with Dedicated Parity)

Raid-3

Advantages

  1. Data can be transferred in bulk.
  2. Data can be accessed in parallel.

Disadvantages

  1. It requires an additional drive for parity.
  2. In the case of small-size files, it performs slowly.

5. RAID-4 (Block-Level Stripping with Dedicated Parity)

Raid-4

Raid-4

Evaluation

Advantages

  1. It helps in reconstructing the data if at most one data is lost.

Disadvantages

  1. It can’t help in reconstructing when more than one data is lost.

6. RAID-5 (Block-Level Stripping with Distributed Parity)

Raid-5

Evaluation

Advantages

  1. Data can be reconstructed using parity bits.
  2. It makes the performance better.

Disadvantages

  1. Its technology is complex and extra space is required.
  2. If both discs get damaged, data will be lost forever.

7. RAID-6 (Block-Level Stripping with two Parity Bits)

Raid-6

Advantages

  1. Very high data Accessibility.
  2. Fast read data transactions.

Disadvantages

  1. Due to double parity, it has slow write data transactions.
  2. Extra space is required.

Advantages of RAID

Disadvantages of RAID

Conclusion

In Conclusion, RAID technology in database management systems distributes and replicates data across several drives to improve data performance and reliability. It is a useful tool in contemporary database setups since it is essential to preserving system availability and protecting sensitive data.


Article Tags :