Beruflich Dokumente
Kultur Dokumente
Chapter 3
Chapter Objectives
After completing this chapter, you will be able to: Describe what is RAID and the needs it addresses
Why RAID
Performance limitation of a single drive disk drive
Limited Capacity Limited access speed
RAID Controller
RAID Arrays - 4
Logical Array
RAID Controller
Hard Disks
RAID Implementations
Hardware (usually a specialized disk controller card)
Controls all drives attached to it Array(s) appear to host operating system as a regular disk drive Provided with administrative software
Software
Runs as part of the operating system Performance is dependent on CPU workload Does not support all RAID levels
RAID Levels
0 Striped array with no fault tolerance 1 Disk mirroring
2 6 10
3 7 11 0123 4567
8 9 10 11
Host
Parity Disk
2008 EMC Corporation. All rights reserved.
RAID Arrays - 8
Parity Calculation
5 + 3 + 4 + 2 = 14 5 3
Data
Data
4
2 14
Data
Data
Parity
RAID Array
2008 EMC Corporation. All rights reserved. RAID Arrays - 9
Stripe 1
Strip 1 Strip 2 Strip 3
Strips
Stripe
Strip 1
Strip 2
Strip 3
Stripe 1 Stripe 2
Strips
2009 EMC Corporation. All rights reserved. Data Protection: RAID - 10
1 5 9 RAID Controller
2 6 10
3 7 11
Host
Block 0 1
Host
Block 0 3 2 1
Block 3
Block 0 Block 2
Block 1 Block 3
Block 3
Block 2 0
Block 3
Block 1 Block 3
Block 1 Block 3
Block 2
RAID Arrays - 17
2 6 10
3 7 11 0123 4567
8 9 10 11
Host
Parity Disk
2009 EMC Corporation. All rights reserved.
RAID Arrays - 18
4
1 6 5 9 RAID Controller
1 ?
Host
3 7 7 11 0123 4 518 67
4 + 6 + ? + 7 = 18
? = 18 4 6 7
?=1 2009 EMC Corporation. All rights reserved.
Parity Disk
Data Protection: RAID - 19
Block 0 3 2 1
Host
Block 2
Block 6
Block 0
Host
RAID Arrays - 21
Block 2
Block 6
Block 0 4
Increasing number of drives in an array and increasing drive capacity leads to a higher probability of two disks failing in a RAID set RAID-6 protects against two disk failures by maintaining two parities
Horizontal parity which is the same as RAID-5 parity Diagonal parity is calculated by taking diagonal sets of data blocks from the RAID set members
Even-Odd, and Reed-Solomon are two commonly used algorithms for calculating parity in RAID-6
2009 EMC Corporation. All rights reserved. Data Protection: RAID - 23
RAID Implementations
Hardware (usually a specialized disk controller card)
Controls all drives attached to it Performs all RAID-related functions, including volume management Array(s) appear to the host operating system as a regular disk drive Dedicated cache to improve performance Generally provides some type of administrative software
Software
Generally runs as part of the operating system Volume management performed by the server Provides more flexibility for hardware, which can reduce the cost Performance is dependent on CPU load Has limited functionality
2009 EMC Corporation. All rights reserved. RAID Arrays - 24
RAID Comparison
RAID Min Disks Storage Efficiency % Cost Read Performance
Very good for both random and sequential read
Write Performance
100
Low
Very good
50 (n-1)*100/n where n= number of disks (n-1)*100/n where n= number of disks (n-2)*100/n where n= number of disks
High
Good Slower than a single disk, as every write must be committed to two disks Poor to fair for small random writes Good for large, sequential writes Fair for random write Slower due to parity overhead Fair to good for sequential writes Good for small, random writes (has write penalty)
Moderate
Good for random reads and very good for sequential reads Very good for random reads Good for sequential reads Very good for random reads Good for sequential reads
Moderate
50
High
Very good
Good
Ep new
Ep new
Ep old
Ep old
2 XOR
E4 old
+
E4 old
E4 new
E4 new
P0
D1
D2
D3
D4
Parity Vs Mirroring
Reading, calculating and writing parity segment introduces penalty to every write operation Parity RAID penalty manifests due to slower cache flushes Increased load in writes can cause contention and can cause slower read response times
2009 EMC Corporation. All rights reserved. Data Protection: RAID - 26
Hot Spares
RAID Controller
What methods can be used to provide higher data availability in a RAID array?
What is the primary difference between RAID 3 and RAID 5? What is advantage of using RAID 6? What is a hot spare?