created by Aha00aAha00a at 2009-02-11
last modified by Aha00aAha00a at 2026-11-15
revision: 7

RAID

http://williamstallings.com/COA6e.html

Redundant Array of Independent Disks

  • Disk Performance = bottle neck of computer system
  • RAID - better transfer with simultaneous access
  • 7 Levels in common use (0-6)
  • Not a hierarchy
    • 운영체제에 의해 하나의 논리적 드라이브로 보여지는 물리적 디스크드라이브들의 집합이다.
    • 데이터는 분산저장됨
    • 여분의 디스크는 복구를 위한 패리티로 사용된다

0.1. Glossary

  • Strip : physical blocks, sector
  • Stripe : a set of logically consecutive strips

0.2. RAID Summary

RAID Levels

|| Category || Level || Description || I/O Request Rate (Read/Write) || Data Transfer Rate (Read/Write) || Typical Application ||

|| Striping || 0 ||Nonredundant || Large strips: Excellent || Small strips: Excellent || Applications requiring high performance for noncritical data ||

|| Mirroring || 1 ||Mirrored || Good/Fair || Fair/Fair || System drives; critical files ||

||<|2> Parallel access || 2 || Redundant via Hamming code || Poor || Excellent || ||

|| 3 || Bit-interleaved parity || Poor || Excellent || Large I/O request size applications, such as imaging, CAD ||

||<|3> Independent access || 4 || Block-interleaved parity || Excellent/Fair || Fair/Poor || ||

|| 5 || Block-interleaved distributed parity || Excellent/Fair || Fair/Poor || High request rate, read intensive, data lookup ||

|| 6 || Block-interleaved dual distributed parity || Excellent/Poor || Fair/Poor || Applications requiring extremely high availability ||

0.3. RAID 0

  • No redundancy
  • Asynchronous disks
  • Data striped across all disks
  • Round Robin striping
  • Increase speed
    • Multiple data requests probably not on same disk
    • Disks seek in parallel
    • A set of data is likely to be striped across multiple disks
    • For performance and capacity

0.4. RAID 1

  • Mirrored Disks
  • Asynchronous disks
  • Data is striped across disks as RAID0
  • 2 copies of each stripe on separate disks
  • Read from either
  • Write to both - takes time( parallel )
  • Recovery is simple
    • Swap faulty disk & re-mirror
    • No down time
  • Expensive

0.5. RAID 2

  • Disks are synchronized
  • Very small stripes
    • Often single byte/word
  • Error correction calculated across corresponding bits on disks
  • Multiple parity disks store Hamming code error correction in corresponding positions
  • Lots of redundancy
    • Expensive
    • Not used

0.6. RAID 3

  • Similar to RAID 2
  • Bit level synchronized
  • Only one redundant disk, no matter how large the array
  • Simple parity bit for all of the corresponding bits of all the data disk
  • Data on failed drive can be reconstructed from surviving data and parity info
  • Very high transfer rates
  • Example)
    • Assume data drive X0 ~ X3, Parity disk X4, and X1 failed
    • X4(i) = X3(i) @ X2(i) @ X1(i) @ X0(i) * @ X4(i) @ X1(i)
    • X1(i) = X4(i) @ X3(i) @ X2(i) @ X0(i)

0.7. RAID 4

  • Each disk operates independently
Good for high I/O request rate 
(can handle separate I/O request in parallel) 
Less suited for high data transfer rate 
Large stripes 
Bit by bit parity calculated across stripes on each disk 
Parity stored on parity disk 
Write penalty => 2 reads & 2 writes for a data write. 
Example) 
Assume data drive X0 ~ X3, Parity disk X4, and X1(i) changed, 
X4(i) = X3(i) @ X2(i) @ X1(i) @ X0(i) 
X4’(i) = X3(i) @ X2(i) @ X1’(i) @ X0(i) 
= X3(i) @ X2(i) @ X1’(i) @ X0(i) @ X1(i) @ X1(i) 
= X4(i) @ X1’(i) @ X1(i) = > read X1, X4; write X1’& X4’ 

0.8. RAID 5

Like RAID 4 
Parity striped across all disks 
Round robin allocation for parity stripe 
Avoids RAID 4 bottleneck at parity disk 
Commonly used in network servers 

N.B. DOES NOT MEAN 5 DISKS!!!!! 

0.9. RAID 6

2 Redundancy. 
double redundancy (parity + another check algorithm) 
High write penalty 
2 disk fail can be recovered 
Extremely reliable 

see also Computer Architecture, HD Tune

1. See Also

1.2. Adjacent Pages

≤ 32
all
1.0x
1.0x
80
-120
ON
0/0
0/0
0.00
0
0 / 0
1.00x