Upload
doomachaley
View
223
Download
0
Embed Size (px)
Citation preview
8/9/2019 lec11-storage-raid.ppt
1/56
Lecture 11: Storage SystemsDisk, RAID, Dependability
http://list.zju.edu.cn/kaibu/comparch
8/9/2019 lec11-storage-raid.ppt
2/56
8/9/2019 lec11-storage-raid.ppt
3/56
Appendi! D"1#D"3
8/9/2019 lec11-storage-raid.ppt
4/56
1$%&s # 1$'&s
(omputing Re)olution
8/9/2019 lec11-storage-raid.ppt
5/56
1$$& #
In*ormation Age
8/9/2019 lec11-storage-raid.ppt
6/56
(ommunication(omputation
Storage
8/9/2019 lec11-storage-raid.ppt
7/56
(ommunication(omputation
Storage
8/9/2019 lec11-storage-raid.ppt
8/56
(ommunication(omputation
Storagerequires higher standard ofdependability than the rest of the computer
8/9/2019 lec11-storage-raid.ppt
9/56
(ommunication(omputation
Storagerequires higher standard ofdependability than the rest of the computer
program crash
8/9/2019 lec11-storage-raid.ppt
10/56
(ommunication(omputation
Storagerequires higher standard ofdependability than the rest of the computer
data loss
8/9/2019 lec11-storage-raid.ppt
11/56
(ommunication
Storagemagnetic disks dominate
8/9/2019 lec11-storage-raid.ppt
12/56
+utline
iskisk 3rray: R34
ependability: 5ault6 7rror6 5ailure
8/9/2019 lec11-storage-raid.ppt
13/56
+utline
iskisk 3rray: R34
ependability: 5ault6 7rror6 5ailure
8/9/2019 lec11-storage-raid.ppt
14/56
Disk
http://c8.ydcdn.net/ .0. . &/ima(es/computer/M39 4 K.945
8/9/2019 lec11-storage-raid.ppt
15/56
Disk
http://%%%.cs.uic.edu/;jbell/peratin( ystems/ima(es/
8/9/2019 lec11-storage-raid.ppt
16/56
Disk (apacity
Areal Density*bits/inch 2
* tracks/inchA bitsCperCtrack/inchA
8/9/2019 lec11-storage-raid.ppt
17/56
Disk (apacity
Areal Densityin 20 6 the hi(hest density
-00 billion bits per sDuare inch(osts per gigabytebet%een &' and 20 6
improEed by almosta 8actor o8 60006000
8/9/2019 lec11-storage-raid.ppt
18/56
Disk *or Secondary Storage
Cost DRAM >> DISK
Access time DRAM
8/9/2019 lec11-storage-raid.ppt
19/56
Disk s (ompetitor
-las .emorynonCEolatile semiconductor memoryF
same band%idth as disksF00 to 000 times 8asterF to 2 times hi(her cost/(i(abyteF
/ear outlimited to million %ritesPopular in cell p ones,
but not in desktop and ser)er
8/9/2019 lec11-storage-raid.ppt
20/56
Disk Po0er
Po0er by disk motoriameter -.+ R#M 2.' =o. o8 platters
R#M: ReEolutions #er Minute rotation speed maller patters6 slo%er rotation6 and
8e%er platters reduce disk motor po%er
8/9/2019 lec11-storage-raid.ppt
21/56
Disk Po0er
8/9/2019 lec11-storage-raid.ppt
22/56
+utline
iskisk 3rray: R34
ependability: 5ault6 7rror6 5ailure
8/9/2019 lec11-storage-raid.ppt
23/56
Disk Arrays
isk arrays %ith redundant disks totolerate 8aults48 a sin(le disk 8ails6 the lostin8ormation is reconstructed 8romredundant in8ormationStriping : simply spreadin( data oEermultiple disksRAID: redundant array o8ine pensiEe/independent disks
8/9/2019 lec11-storage-raid.ppt
24/56
RAID
8/9/2019 lec11-storage-raid.ppt
25/56
RAID &
2 +D: just a bunch o8 disks=o redundancy
=o 8ailure toleratedMeasurin( stick 8or other R34 leEels interms o8 cost6 per8ormance6 and
dependability
8/9/2019 lec11-storage-raid.ppt
26/56
RAID 1
.irroring or S ado0ingG%o copies 8or eEery piece o8 dataone lo(ical %rite * t%o physical %rites
00H capacity/spaceoEerhead
http://%%%.petemaroEichima(es.com/%pCcontent/uploads/20 / /R34 .jp(
8/9/2019 lec11-storage-raid.ppt
27/56
https://%%%.iccCusa.com/content/raidCcalculator/raidC0C .pn(
8/9/2019 lec11-storage-raid.ppt
28/56
RAID
http://%%%.acnc.com/raidedu/27ach bit o8 data %ord is %ritten to a data diskdriEe
7ach data %ord has its "ammin(
8/9/2019 lec11-storage-raid.ppt
29/56
RAID 3
http://%%%.acnc.com/raidedu/ata striped oEer all data disks
#arity o8 a stripe to parity diskReDuire at least disks to implement
8/9/2019 lec11-storage-raid.ppt
30/56
P
10100011
11001101
10100011
11001101
RAID 3
7Een #arityparity bit makes
the 1 o8 eEenp * sum data A mod 2RecoEery
i8 a disk 8ails6 IsubtractJ (ood data8rom (ood blocksF
%hat remains is missin( dataF
8/9/2019 lec11-storage-raid.ppt
31/56
RAID 4
http://%%%.acnc.com/raidedu/-5aEor small accesses
3llo%s each disk to per8ormindependent reads6 usin( sectors o%nerror checkin(
8/9/2019 lec11-storage-raid.ppt
32/56
RAID 5
http://%%%.acnc.com/raidedu/istributes the parity in8o across all
disks in the arrayRemoEes the bottleneck o8 a sin(leparity disk as R34 and R34 -
8/9/2019 lec11-storage-raid.ppt
33/56
RAID %: Ro06diagonal Parity
RAID6DPRecoEer 8rom t%o 8ailures
orro%: 00L L22L *r-
dia(onal: 0 L L Lr *d
8/9/2019 lec11-storage-raid.ppt
34/56
Double6-ailure Reco)ery
8/9/2019 lec11-storage-raid.ppt
35/56
Double6-ailure Reco)ery
8/9/2019 lec11-storage-raid.ppt
36/56
Double6-ailure Reco)ery
8/9/2019 lec11-storage-raid.ppt
37/56
Double6-ailure Reco)ery
8/9/2019 lec11-storage-raid.ppt
38/56
Double6-ailure Reco)ery
8/9/2019 lec11-storage-raid.ppt
39/56
Double6-ailure Reco)ery
8/9/2019 lec11-storage-raid.ppt
40/56
Double6-ailure Reco)ery
8/9/2019 lec11-storage-raid.ppt
41/56
Double6-ailure Reco)ery
8/9/2019 lec11-storage-raid.ppt
42/56
Double6-ailure Reco)ery
8/9/2019 lec11-storage-raid.ppt
43/56
RAID: -urt er Readings
Raid Gypes
8/9/2019 lec11-storage-raid.ppt
44/56
+utline
iskisk 3rray: R34
ependability: 5ault6 7rror6 5ailure
8/9/2019 lec11-storage-raid.ppt
45/56
8/9/2019 lec11-storage-raid.ppt
46/56
Ghe ser)ice deliEered by a system isits obserEed actual be a)ior asperceiEed by other system sAinteractin( %ith this system s users.
8/9/2019 lec11-storage-raid.ppt
47/56
7ach module also has an idealspeci*ied be a)ior 6 %here a ser)icespeci*ication is an a(reed descriptiono8 the e pected behaEior.
8/9/2019 lec11-storage-raid.ppt
48/56
-ailure
3 system *ailure occurs %hen theactual behaEior deEiates 8rom thespeci8ied behaEior.
8/9/2019 lec11-storage-raid.ppt
49/56
7rror, -ault
Ghe 8ailure occurred because o8 anerror 6 a de8ect in that module.Ghe cause o8 an error is a *ault .
Ohen a 8ault occurs6 it creates a latenterror 6 %hich becomes e**ecti)e %henit is actiEatedFOhen the error actually a88ects thedeliEered serEice6 a 8ailure occurs.
8/9/2019 lec11-storage-raid.ppt
50/56
-ault, 7rror, -ailure
3 8ault creates one or more latenterrors7ither an e88ectiEe error is a 8ormerlylatent error in that component or it haspropa(ated 8rom another error in thatcomponent or 8rom else %here3 component 8ailure occurs %hen theerror a88ects the deliEered serEice
8/9/2019 lec11-storage-raid.ppt
51/56
(ategories o* -aults by (ause
8ard0are *aults8ailed deEicesDesign *aults
usually in so8t%are desi(nFoccasionally in hard%are desi(nF+peration *aults
mistakes by operations and maintenancepersonnelF7n)ironmental *aults8ire6 8lood6 earthDuake6 po%er 8ailure6
sabota(eF
8/9/2019 lec11-storage-raid.ppt
52/56
(ategories o* -aults by Duration
9ransient *aultse ist 8or a limited time and are notrecurrin(FIntermittent *aultscause a system to oscillate bet%een8aulty and 8aultC8ree operationPermanent *aultsdo not correct themselEes %ith the
passin( o8 timeF
l k l
8/9/2019 lec11-storage-raid.ppt
53/56
7!ample: erkeley s9ertiary Disk
8/9/2019 lec11-storage-raid.ppt
54/56
7!ample: 9andem
8/9/2019 lec11-storage-raid.ppt
55/56
7!ample: 9andem
8/9/2019 lec11-storage-raid.ppt
56/56