RAID learning

RAID learning

Table of Contents

  • RAID's benefit
  • RAID's types
    • type 0
    • type 1
    • type 10
    • type 2, 3, 4
    • type 5
    • type 6
  • RAID's limitation


1 RAID's benefit

So, what the RAID is? RAID is short for Redundant Array of Independent Disks. In the storage industry, the speed, redundancy, and cost are the three factors that the market cares about.

I/O speed: hard drive's I/O performance is limited by the physical law, if we continue to use magnetic storage materials.

redundancy: the fault of a subset disks in an array can't damage the whole data stored in them.

cost: the density of data per dollar.

RAID is a common solution to face that.

2 RAID's types

2.1 type 0


parallel multi disks together, with the highest disk write/read IO performance, but none data security.

split the data into n pieces, n equals to the array size of the disks. And both the write and read are parallel to improve the speed, but one disk's damage can destroy the whole data.

2.2 type 1


lower performance but with the highest security.

the data was written to one disk with another disk as images, so even one disk is left after the disaster, the data is still there.

2.3 type 10

the combination of type 0 and type 1

2.4 type 2, 3, 4

type2 rarely used, type 3 and 4 are abandoned without any benefit compared to type 5.

2.5 type 5


type 1 is high speed but with none redundancy, type 2 are the highest security but without speed, also the most expensive cost. So type 5 is the most trade off of them.

the redundancy method is different, its is based on byte level parity check. Data is split to (n-1) pieces, with one parity check piece. those n pieces are written to disk arrays synchronously and randomly, one piece to one disk. So, if one disk is damaged, the reverse parity check algorithm can restore it. Because of that, only one disk's fault is sustainable.

2.6 type 6


upgrade redundancy method of type 5, this time, it employs two verification check blocks with two different kinds of parity check methods. The only benefit is the redundancy performance can sustain two simultaneous disks damage.

3 RAID's limitation

In the desktop environment, RAID type 1 and 0 are the common solutions, for the server side, the trade-off solutions was type 5 and 6, this trade-off is balanced by the cost, security, and speed. But for the huge cloud, both of them are not the best solutions, one strong evidence is the industry leading enterprises like google and amazon, are developed their own storage stack instead of use RAID.


Notice:


the above SVG images are a reference from https://en.wikipedia.org/wiki/Standard_RAID_levels.

Comments

Popular posts from this blog

Bluedroid stack in android

How to setup a NAT server?

Network programming in elisp