RAID (Redundant Arrays of Independent Disks) | Database Management System (DBMS) - Computer Science Engineering (CSE) PDF Download

Introduction

RAID, or “Redundant Arrays of Independent Disks” is a technique which 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, 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 just multiple disks without the RAID technique, the loss of a single disk can affect the entire data.

Key evaluation points for a RAID System

  • Reliability: How many disk faults can the system tolerate?
  • Availability: What fraction of the total session time is a system in uptime mode, i.e. how available is the system for actual use?
  • Performance: How good is the response time? How high is the throughput (rate of processing work)? Note that performance contains a lot of parameters and not just the two.
  • Capacity: Given a set of N disks each with B blocks, how much useful capacity is available to the user?

RAID is very transparent to the underlying system. This means, 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 in the existing code.

Different RAID levels

1. RAID-0 (Striping)
Blocks are “striped” across disks.

RAID (Redundant Arrays of Independent Disks) | Database Management System (DBMS) - Computer Science Engineering (CSE)

In the figure, blocks “0, 1, 2, 3” form a stripe.

  • Instead of placing just one block into a disk at a time, we can work with two (or more) blocks placed into a disk before moving on to the next one.

RAID (Redundant Arrays of Independent Disks) | Database Management System (DBMS) - Computer Science Engineering (CSE)

Evaluation:

  • Reliability: 0
    There is no duplication of data. Hence, a block once lost cannot be recovered.
  • Capacity: N*B
    The entire space is being used to store data. Since there is no duplication, N disks each having B blocks are fully utilized.

2. RAID-1 (Mirroring)

  • More than one copy of each block is stored in a separate disk. Thus, every block has two (or more) copies, lying on different disks.

RAID (Redundant Arrays of Independent Disks) | Database Management System (DBMS) - Computer Science Engineering (CSE)

The above figure shows a RAID-1 system with mirroring level 2.

  • RAID 0 was unable to tolerate any disk failure. But RAID 1 is capable of reliability.

Evaluation:
Assume a RAID system with mirroring level 2.

  • Reliability: 1 to N/2
    1 disk failure can be handled for certain, because blocks of that disk would have duplicates on some other disk. If we are lucky enough and disks 0 and 2 fail, then again this can be handled as the blocks of these disks have duplicates on disks 1 and 3. So, in the best case, N/2 disk failures can be handled.
  • Capacity: N * B/2
    Only half the space is being used to store data. The other half is just a mirror to the already stored data.

3. RAID-4 (Block-Level Striping with Dedicated Parity)

  • Instead of duplicating data, this adopts a parity-based approach.
    RAID (Redundant Arrays of Independent Disks) | Database Management System (DBMS) - Computer Science Engineering (CSE)In the figure, we can observe one column (disk) dedicated to parity.
  • Parity is calculated using a simple XOR function. If the data bits are 0,0,0,1 the parity bit is XOR(0, 0, 0, 1) = 1. If the data bits are 0, 1, 1, 0 the parity bit is XOR(0, 1, 1, 0) = 0. A simple approach is that even number of ones results in parity 0, and an odd number of ones results in parity 1.
    RAID (Redundant Arrays of Independent Disks) | Database Management System (DBMS) - Computer Science Engineering (CSE)

Assume that in the above figure, C3 is lost due to some disk failure. Then, we can recompute the data bit stored in C3 by looking at the values of all the other columns and the parity bit. This allows us to recover lost data.

Evaluation:

  • Reliability: 1
    RAID-4 allows recovery of at most 1 disk failure (because of the way parity works). If more than one disk fails, there is no way to recover the data.
  • Capacity: (N - 1) * B
    One disk in the system is reserved for storing the parity. Hence, (N - 1) disks are made available for data storage, each disk having B blocks.

4. RAID-5 (Block-Level Striping with Distributed Parity)
This is a slight modification of the RAID-4 system where the only difference is that the parity rotates among the drives.
RAID (Redundant Arrays of Independent Disks) | Database Management System (DBMS) - Computer Science Engineering (CSE)

In the figure, we can notice how the parity bit “rotates”.

  • This was introduced to make the random write performance better.

Evaluation:

  • Reliability: 1
    RAID-5 allows recovery of at most 1 disk failure (because of the way parity works). If more than one disk fails, there is no way to recover the data. This is identical to RAID-4.
  • Capacity: (N-1)*B
    Overall, space equivalent to one disk is utilized in storing the parity. Hence, (N-1) disks are made available for data storage, each disk having B blocks.

What about the other RAID levels?
RAID-2 consists of bit-level striping using a Hamming Code parity. RAID-3 consists of byte-level striping with a dedicated parity. These two are less commonly used.
RAID-6 is a recent advancement which contains a distributed double parity, which involves block-level striping with 2 parity bits instead of just 1 distributed across all the disks. There are also hybrid RAIDs, which make use of more than one RAID levels nested one after the other, to fulfill specific requirements.

The document RAID (Redundant Arrays of Independent Disks) | Database Management System (DBMS) - Computer Science Engineering (CSE) is a part of the Computer Science Engineering (CSE) Course Database Management System (DBMS).
All you need of Computer Science Engineering (CSE) at this link: Computer Science Engineering (CSE)
62 videos|66 docs|35 tests

Top Courses for Computer Science Engineering (CSE)

62 videos|66 docs|35 tests
Download as PDF
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

Objective type Questions

,

RAID (Redundant Arrays of Independent Disks) | Database Management System (DBMS) - Computer Science Engineering (CSE)

,

study material

,

Exam

,

Sample Paper

,

Free

,

mock tests for examination

,

Viva Questions

,

practice quizzes

,

MCQs

,

Summary

,

video lectures

,

RAID (Redundant Arrays of Independent Disks) | Database Management System (DBMS) - Computer Science Engineering (CSE)

,

pdf

,

Previous Year Questions with Solutions

,

past year papers

,

Extra Questions

,

ppt

,

Semester Notes

,

RAID (Redundant Arrays of Independent Disks) | Database Management System (DBMS) - Computer Science Engineering (CSE)

,

Important questions

,

shortcuts and tricks

;