SlideShare a Scribd company logo
Operating Systems
RAIDRAID ––
Redundant Array ofRedundant Array of
Independent DisksIndependent Disks
Submitted by
Ankur Niyogi
2003EE20367
YOUR DATA IS LOST@#!!
• Do we have backups of all our data????
- The stuff we cannot afford to lose??
• How often do we do backups???
- Daily, Weekly or Monthly??
• Are they magnetic, optical or physical??
• How long would it take to totally recover from the
disaster???
FLOW OF PRESENTATION
• Secondary storage – advantages and limitations
• Increasing Reliability via Redundancy
• RAID
• Mirroring and Data-Striping
• RAID Levels
Secondary Storage Devices
• Significant role in storing large amount of data as
memory is expensive
• Plays a vital role when disk is used as virtual memory
• Magnetic in nature
• Characteristically uses a “moving head disk” mechanism
to read and write data
RAID : Redundant Array of
Inexpensive Disks
Performance limitation of Disks:
- Performance of a single disk is very limited
• Throughput : 125 reqs/s
• Bandwidth : 20-200MB/s (max) 15-30MB/s (sustained)
• Very difficult to significantly improve the performance of disk
drives
- Disks are electromechanical devices
• Speed gap between disks and CPU/Memory is widening
- CPU speed increases @ 60% / year
- Disks speed increase @ 10-15% / year
• Improvement in disk technologies is still very impressive BUT only
in the capacity / cost area.
What does RAID stand for?
In 1987, Patterson, Gibson and Katz at the University of California
Berkeley, published a paper entitled “ A Case for Redundant Array
of Inexpensive Disks(RAID)”.
Described the various types of Disk Arrays, referred to as the
acronym RAID.
The basic idea of RAID was to combine multiple, small inexpensive
disks drive into an array of disk drives which yields performance
exceeding that of a Single, Large Expensive Drive(SLED).
Additionally this array of drives appear to the computer as a single
logical storage unit or drive.
Improvement of Reliability via
Redundancy
•In a SLED Reliabity becomes a big problem as the data in an
entire disk may be lost .
As the number of disks per component increases, the
probability of failure also increases .
- Suppose a (reliable) disk fails every 100,000 hrs.
Reliabity of a disk in an array of N disks = Reliability of 1 disk
/ N
100000hrs / 100 = 1000 hrs = 41.66 days !!
Solution ?
Redundancy
Redundancy
Mirroring
Data Striping
Mirroring
Duplicate every disk
Logical disk consists of two physical disks.
Every write is carried out on both disks.
If one of the disk fails, data read from the other
Data permanently lost only if the second disk fails before the first
failed disk is replaced.
Reliability in Mirroring
Suppose mean time to repair is 10 hrs ,
the mean time to data loss of a mirrored disk system is
100,000 ^ 2 / (2 * 10) hrs ~ 57,000 years !
Main disadvantage :
Most expensive approach .
Parallel Disk Systems
• We cannot improve the disk performance significantly as a single
drive
- But many applications require high performance storage systems ?
• Solutions :
- Parallel Disk Systems
- Higher Reliability and Higher data-transfer rate.
DATA STRIPING
Fundamental to RAID
A method of concatenating multiple drives into one logical storage
unit.
Splitting the bits of each byte across multiple disks : bit – level
striping
e.g. an array of eight disks, write bit i of each byte to disk I
Sectors are eight times the normal size
Eight times the access rate
Similarly for blocks of file, block-level striping
Logical to Physical Data mapping for striping
strip 0
strip 1
strip 2
strip 3
strip 4
strip 15
strip 14
strip 13
strip 12
strip11
strip 10
strip 9
strip 8
strip 7
strip 6
strip 5
strip 0
strip 4
strip 8
strip 12
strip 1
strip 5
strip 9
strip 13
strip 2
strip 6
strip 10
strip 14
strip 3
strip 7
strip 11
strip 15
Physical
Disk 0
Physical
Disk 1
Physical
Disk 2
Physical
Disk 3
RAID LEVELS
Data are distributed across the array of disk drives
Redundant disk capacity is used to store parity information, which
guarantees data recoverability in case of a disk failure
Levels decided according to schemes to provide redundancy at
lower cost by using striping and “parity” bits
Different cost-performance trade-offs
RAID 0
Striping at the level of blocks
Data split across in drives resulting in higher data throughput
Performance is very good but the failure of any disk in the array
results in data loss
RAID 0 commonly referred to as striping
Reliability Problems : No mirroring or parity bits
RAID 1
• Introduce redundancy through mirroring
• Expensive
• Performance Issues
-- No data loss if either drive fails
– Good read performance
– Reasonable write performance
• Cost / MB is high
• Commonly referred to as “mirroring”
RAID 1(Mirrored)
strip 0
strip 4
strip 8
strip 12
strip 1
strip 5
strip 9
strip 13
strip 2
strip 6
strip 10
strip 14
strip 3
strip 7
strip 11
strip 15
strip 0
strip 4
strip 8
strip 12
strip 1
strip 5
strip 9
strip 13
strip 2
strip 6
strip 10
strip 14
strip 3
strip 7
strip 11
strip 15
RAID 2
• Uses Hamming (or any other) error-correcting code (ECC)
• Intended for use in drives which do not have built-in error detection
• Central idea is if one of the disks fail the remaining bits of the byte
and the associated ECC bits can be used to reconstruct the data
• Not very popular
f0(b)b2b1b0 b2
f1(b) f2(b)
RAID 3
• Improves upon RAID 2, known as Bit-Interleaved Parity
• Disk Controllers can detect whether a sector has been read
correctly.
• Storage overhead is reduced – only 1 parity disk
• Expense of computing and writing parity
• Need to include a dedicated parity hardware
P(b)b2b1b0 b2
RAID 4
• Stripes data at a block level across several drives, with parity
stored on one drive - block-interleaved parity
• Allows recovery from the failure of any of the disks
• Performance is very good for reads
• Writes require that parity data be updated each time. Slows small
random writes but large writes are fairly fast
block 0
block 4
block 8
block 12
block 1
block 5
block 9
block 13
block 2
block 6
block 10
block 14
block 3
block 7
block 11
block 15
P(0-3)
P(4-7)
P(8-11)
P(12-15)
RAID 5
• Block-interleaved Distributed parity
• Spreads data and parity among all N+1 disks, rather than storing
data in N disks and parity in 1 disk
• Avoids potential overuse of a single parity disk – improvement
over RAID 4
• Most common parity RAID system
block 0
block 4
block 8
block 12
P(16-19)
block 1
block 5
block 9
P(12-15)
block 16
block 2
block 6
P(8-11)
block 13
block 17
block 3
P(4-7)
block 10
block 14
block 18
P(0-3)
block 7
block 11
block 15
block 19
RAID 6
• P+Q Redundancy
RAID(0+1) and RAID(1+0)
RAID 10
• Advantages
– Highly fault tolerant
– High data availability
– Very good read / write performance
• Disadvantages
– Very expensive
• Applications
– Where high performance and redundancy are critical
Selecting a RAID Level
•RAID 0 – High-Performance applications where data loss is not
critical
• RAID 1 – High Reliability with fast recovery
• RAID 10/01 – Both performance and reliability are important,
e.g. in small databases
• RAID 5 – Preferred for storing large volumes of data
• RAID 6 – Not Supported currently by many RAID
implementations
References
1.www.bridgeport.edu/sed/fcourses/cpe473/Lectures/RAID.ppt
2. r61505.csie.nctu.edu.tw/OG/project/extra6-Ch8-RAID.ppt
3. A. Silberschatz, P. B. Galvin, and G. Gagne, Operating System
Concepts, 7th Edition, John Wiley & Sons, 2005

More Related Content

What's hot

Distributed operating system
Distributed operating systemDistributed operating system
Distributed operating system
udaya khanal
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage Systems
Wayne Jones Jnr
 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)
Sandesh Jonchhe
 
DBMS - RAID
DBMS - RAIDDBMS - RAID
DBMS - RAID
MythiliMurugan3
 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in Linux
Henry Osborne
 
Raid- Redundant Array of Inexpensive Disks
Raid- Redundant Array of Inexpensive DisksRaid- Redundant Array of Inexpensive Disks
Raid- Redundant Array of Inexpensive Disks
Mudit Mishra
 
Presentation On RAID(Redundant Array Of Independent Disks) Basics
Presentation On RAID(Redundant Array Of Independent Disks) BasicsPresentation On RAID(Redundant Array Of Independent Disks) Basics
Presentation On RAID(Redundant Array Of Independent Disks) BasicsKuber Chandra
 
Database storage engines
Database storage enginesDatabase storage engines
Database storage engines
University of Sindh, Jamshoro
 
The CAP Theorem
The CAP Theorem The CAP Theorem
The CAP Theorem
Aleksandar Bradic
 
CDW: SAN vs. NAS
CDW: SAN vs. NASCDW: SAN vs. NAS
CDW: SAN vs. NAS
Spiceworks
 
Raid Technology
Raid TechnologyRaid Technology
Raid Technology
Aman Sadhwani
 
Oracle architecture ppt
Oracle architecture pptOracle architecture ppt
Oracle architecture ppt
Deepak Shetty
 
Basics of storage Technology
Basics of storage TechnologyBasics of storage Technology
Basics of storage Technology
Lopamudra Das
 
2 phase locking protocol DBMS
2 phase locking protocol DBMS2 phase locking protocol DBMS
2 phase locking protocol DBMS
Dhananjaysinh Jhala
 
Cache memory
Cache memoryCache memory
Cache memory
Ansari Maviya
 

What's hot (20)

Distributed operating system
Distributed operating systemDistributed operating system
Distributed operating system
 
Raid
RaidRaid
Raid
 
Raid
RaidRaid
Raid
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage Systems
 
Raid
Raid Raid
Raid
 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)
 
DBMS - RAID
DBMS - RAIDDBMS - RAID
DBMS - RAID
 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in Linux
 
Raid- Redundant Array of Inexpensive Disks
Raid- Redundant Array of Inexpensive DisksRaid- Redundant Array of Inexpensive Disks
Raid- Redundant Array of Inexpensive Disks
 
Presentation On RAID(Redundant Array Of Independent Disks) Basics
Presentation On RAID(Redundant Array Of Independent Disks) BasicsPresentation On RAID(Redundant Array Of Independent Disks) Basics
Presentation On RAID(Redundant Array Of Independent Disks) Basics
 
Database storage engines
Database storage enginesDatabase storage engines
Database storage engines
 
The CAP Theorem
The CAP Theorem The CAP Theorem
The CAP Theorem
 
CDW: SAN vs. NAS
CDW: SAN vs. NASCDW: SAN vs. NAS
CDW: SAN vs. NAS
 
Raid Technology
Raid TechnologyRaid Technology
Raid Technology
 
Oracle architecture ppt
Oracle architecture pptOracle architecture ppt
Oracle architecture ppt
 
Raid level
Raid levelRaid level
Raid level
 
Basics of storage Technology
Basics of storage TechnologyBasics of storage Technology
Basics of storage Technology
 
DAS RAID NAS SAN
DAS RAID NAS SANDAS RAID NAS SAN
DAS RAID NAS SAN
 
2 phase locking protocol DBMS
2 phase locking protocol DBMS2 phase locking protocol DBMS
2 phase locking protocol DBMS
 
Cache memory
Cache memoryCache memory
Cache memory
 

Viewers also liked

Storage Devices And Backup Media
Storage Devices And Backup MediaStorage Devices And Backup Media
Storage Devices And Backup MediaTyrone Turner
 
SCSI Protocol
SCSI ProtocolSCSI Protocol
SCSI ProtocolRakesh T
 
Using VMware Infrastructure for Backup and Restore
Using VMware Infrastructure for Backup and RestoreUsing VMware Infrastructure for Backup and Restore
Using VMware Infrastructure for Backup and Restorewebhostingguy
 
Avamar weekly webcast
Avamar weekly webcastAvamar weekly webcast
Avamar weekly webcaststefriche0199
 
TECHNICAL BRIEF▶ NDMP Backups with Backup Exec 2014
TECHNICAL BRIEF▶ NDMP Backups with Backup Exec 2014TECHNICAL BRIEF▶ NDMP Backups with Backup Exec 2014
TECHNICAL BRIEF▶ NDMP Backups with Backup Exec 2014
Symantec
 
Raid
RaidRaid
Understanding das-nas-san
Understanding das-nas-sanUnderstanding das-nas-san
Understanding das-nas-san
Ashwin Pawar
 
RAID
RAIDRAID

Viewers also liked (9)

Storage Devices And Backup Media
Storage Devices And Backup MediaStorage Devices And Backup Media
Storage Devices And Backup Media
 
SCSI Protocol
SCSI ProtocolSCSI Protocol
SCSI Protocol
 
Using VMware Infrastructure for Backup and Restore
Using VMware Infrastructure for Backup and RestoreUsing VMware Infrastructure for Backup and Restore
Using VMware Infrastructure for Backup and Restore
 
Avamar weekly webcast
Avamar weekly webcastAvamar weekly webcast
Avamar weekly webcast
 
TECHNICAL BRIEF▶ NDMP Backups with Backup Exec 2014
TECHNICAL BRIEF▶ NDMP Backups with Backup Exec 2014TECHNICAL BRIEF▶ NDMP Backups with Backup Exec 2014
TECHNICAL BRIEF▶ NDMP Backups with Backup Exec 2014
 
Raid
RaidRaid
Raid
 
SEMINAR
SEMINARSEMINAR
SEMINAR
 
Understanding das-nas-san
Understanding das-nas-sanUnderstanding das-nas-san
Understanding das-nas-san
 
RAID
RAIDRAID
RAID
 

Similar to Understanding RAID Levels (RAID 0, RAID 1, RAID 2, RAID 3, RAID 4, RAID 5)

RAID--16112022-093218am-16022024-061222pm.pdf
RAID--16112022-093218am-16022024-061222pm.pdfRAID--16112022-093218am-16022024-061222pm.pdf
RAID--16112022-093218am-16022024-061222pm.pdf
zainm7032
 
Storage memory
Storage memoryStorage memory
Storage memory
fika sweety
 
Overview of Redundant Disk Arrays
Overview of Redundant Disk ArraysOverview of Redundant Disk Arrays
Overview of Redundant Disk Arrays
Andrew Robinson
 
Raid intro
Raid introRaid intro
disk structure and multiple RAID levels .ppt
disk structure and multiple  RAID levels .pptdisk structure and multiple  RAID levels .ppt
disk structure and multiple RAID levels .ppt
RAJASEKHARV10
 
Data center core elements, Data center virtualization
Data center core elements, Data center virtualizationData center core elements, Data center virtualization
Data center core elements, Data center virtualization
MadhuraNK
 
RAID (redundant array of independent disks)
RAID  (redundant array of independent disks)RAID  (redundant array of independent disks)
RAID (redundant array of independent disks)
manditalaskar123
 
Raid in SNA
Raid in SNA Raid in SNA
Raid in SNA
aamir lucky
 
Ambedded - how to build a true no single point of failure ceph cluster
Ambedded - how to build a true no single point of failure ceph cluster Ambedded - how to build a true no single point of failure ceph cluster
Ambedded - how to build a true no single point of failure ceph cluster
inwin stack
 
Secondary Storage - General Knowledge
Secondary Storage - General KnowledgeSecondary Storage - General Knowledge
Secondary Storage - General Knowledge
Samat
 
Performance evolution of raid
Performance evolution of raidPerformance evolution of raid
Performance evolution of raid
Zubair Sami
 
06_External Memory.ppt
06_External Memory.ppt06_External Memory.ppt
06_External Memory.ppt
RaziAhmed30
 
Raid
Raid Raid
04.01 file organization
04.01 file organization04.01 file organization
04.01 file organization
Bishal Ghimire
 
Why does my choice of storage matter with cassandra?
Why does my choice of storage matter with cassandra?Why does my choice of storage matter with cassandra?
Why does my choice of storage matter with cassandra?
Johnny Miller
 
06_External Memory.ppt
06_External Memory.ppt06_External Memory.ppt
06_External Memory.ppt
saurabhpawar98
 

Similar to Understanding RAID Levels (RAID 0, RAID 1, RAID 2, RAID 3, RAID 4, RAID 5) (20)

RAID--16112022-093218am-16022024-061222pm.pdf
RAID--16112022-093218am-16022024-061222pm.pdfRAID--16112022-093218am-16022024-061222pm.pdf
RAID--16112022-093218am-16022024-061222pm.pdf
 
Storage memory
Storage memoryStorage memory
Storage memory
 
Overview of Redundant Disk Arrays
Overview of Redundant Disk ArraysOverview of Redundant Disk Arrays
Overview of Redundant Disk Arrays
 
Raid+controllers
Raid+controllersRaid+controllers
Raid+controllers
 
Raid intro
Raid introRaid intro
Raid intro
 
Raid 1 3
Raid 1 3Raid 1 3
Raid 1 3
 
disk structure and multiple RAID levels .ppt
disk structure and multiple  RAID levels .pptdisk structure and multiple  RAID levels .ppt
disk structure and multiple RAID levels .ppt
 
Data center core elements, Data center virtualization
Data center core elements, Data center virtualizationData center core elements, Data center virtualization
Data center core elements, Data center virtualization
 
Raid
RaidRaid
Raid
 
RAID (redundant array of independent disks)
RAID  (redundant array of independent disks)RAID  (redundant array of independent disks)
RAID (redundant array of independent disks)
 
Raid in SNA
Raid in SNA Raid in SNA
Raid in SNA
 
Ambedded - how to build a true no single point of failure ceph cluster
Ambedded - how to build a true no single point of failure ceph cluster Ambedded - how to build a true no single point of failure ceph cluster
Ambedded - how to build a true no single point of failure ceph cluster
 
Class2
Class2Class2
Class2
 
Secondary Storage - General Knowledge
Secondary Storage - General KnowledgeSecondary Storage - General Knowledge
Secondary Storage - General Knowledge
 
Performance evolution of raid
Performance evolution of raidPerformance evolution of raid
Performance evolution of raid
 
06_External Memory.ppt
06_External Memory.ppt06_External Memory.ppt
06_External Memory.ppt
 
Raid
Raid Raid
Raid
 
04.01 file organization
04.01 file organization04.01 file organization
04.01 file organization
 
Why does my choice of storage matter with cassandra?
Why does my choice of storage matter with cassandra?Why does my choice of storage matter with cassandra?
Why does my choice of storage matter with cassandra?
 
06_External Memory.ppt
06_External Memory.ppt06_External Memory.ppt
06_External Memory.ppt
 

Recently uploaded

Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
Tendenci - The Open Source AMS (Association Management Software)
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Natan Silnitsky
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
vrstrong314
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
informapgpstrackings
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Globus
 
Why React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdfWhy React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdf
ayushiqss
 
Advanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should KnowAdvanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should Know
Peter Caitens
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
Georgi Kodinov
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Shahin Sheidaei
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
Cyanic lab
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
abdulrafaychaudhry
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
Matt Welsh
 
Visitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.appVisitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.app
NaapbooksPrivateLimi
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
WSO2
 
Strategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptxStrategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptx
varshanayak241
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 

Recently uploaded (20)

Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
 
Why React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdfWhy React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdf
 
Advanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should KnowAdvanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should Know
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
 
Visitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.appVisitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.app
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
 
Strategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptxStrategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptx
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 

Understanding RAID Levels (RAID 0, RAID 1, RAID 2, RAID 3, RAID 4, RAID 5)

  • 1. Operating Systems RAIDRAID –– Redundant Array ofRedundant Array of Independent DisksIndependent Disks Submitted by Ankur Niyogi 2003EE20367
  • 2. YOUR DATA IS LOST@#!! • Do we have backups of all our data???? - The stuff we cannot afford to lose?? • How often do we do backups??? - Daily, Weekly or Monthly?? • Are they magnetic, optical or physical?? • How long would it take to totally recover from the disaster???
  • 3. FLOW OF PRESENTATION • Secondary storage – advantages and limitations • Increasing Reliability via Redundancy • RAID • Mirroring and Data-Striping • RAID Levels
  • 4. Secondary Storage Devices • Significant role in storing large amount of data as memory is expensive • Plays a vital role when disk is used as virtual memory • Magnetic in nature • Characteristically uses a “moving head disk” mechanism to read and write data
  • 5. RAID : Redundant Array of Inexpensive Disks Performance limitation of Disks: - Performance of a single disk is very limited • Throughput : 125 reqs/s • Bandwidth : 20-200MB/s (max) 15-30MB/s (sustained) • Very difficult to significantly improve the performance of disk drives - Disks are electromechanical devices • Speed gap between disks and CPU/Memory is widening - CPU speed increases @ 60% / year - Disks speed increase @ 10-15% / year • Improvement in disk technologies is still very impressive BUT only in the capacity / cost area.
  • 6. What does RAID stand for? In 1987, Patterson, Gibson and Katz at the University of California Berkeley, published a paper entitled “ A Case for Redundant Array of Inexpensive Disks(RAID)”. Described the various types of Disk Arrays, referred to as the acronym RAID. The basic idea of RAID was to combine multiple, small inexpensive disks drive into an array of disk drives which yields performance exceeding that of a Single, Large Expensive Drive(SLED). Additionally this array of drives appear to the computer as a single logical storage unit or drive.
  • 7. Improvement of Reliability via Redundancy •In a SLED Reliabity becomes a big problem as the data in an entire disk may be lost . As the number of disks per component increases, the probability of failure also increases . - Suppose a (reliable) disk fails every 100,000 hrs. Reliabity of a disk in an array of N disks = Reliability of 1 disk / N 100000hrs / 100 = 1000 hrs = 41.66 days !! Solution ? Redundancy
  • 9. Mirroring Duplicate every disk Logical disk consists of two physical disks. Every write is carried out on both disks. If one of the disk fails, data read from the other Data permanently lost only if the second disk fails before the first failed disk is replaced.
  • 10. Reliability in Mirroring Suppose mean time to repair is 10 hrs , the mean time to data loss of a mirrored disk system is 100,000 ^ 2 / (2 * 10) hrs ~ 57,000 years ! Main disadvantage : Most expensive approach .
  • 11. Parallel Disk Systems • We cannot improve the disk performance significantly as a single drive - But many applications require high performance storage systems ? • Solutions : - Parallel Disk Systems - Higher Reliability and Higher data-transfer rate.
  • 12. DATA STRIPING Fundamental to RAID A method of concatenating multiple drives into one logical storage unit. Splitting the bits of each byte across multiple disks : bit – level striping e.g. an array of eight disks, write bit i of each byte to disk I Sectors are eight times the normal size Eight times the access rate Similarly for blocks of file, block-level striping
  • 13. Logical to Physical Data mapping for striping strip 0 strip 1 strip 2 strip 3 strip 4 strip 15 strip 14 strip 13 strip 12 strip11 strip 10 strip 9 strip 8 strip 7 strip 6 strip 5 strip 0 strip 4 strip 8 strip 12 strip 1 strip 5 strip 9 strip 13 strip 2 strip 6 strip 10 strip 14 strip 3 strip 7 strip 11 strip 15 Physical Disk 0 Physical Disk 1 Physical Disk 2 Physical Disk 3
  • 14. RAID LEVELS Data are distributed across the array of disk drives Redundant disk capacity is used to store parity information, which guarantees data recoverability in case of a disk failure Levels decided according to schemes to provide redundancy at lower cost by using striping and “parity” bits Different cost-performance trade-offs
  • 15. RAID 0 Striping at the level of blocks Data split across in drives resulting in higher data throughput Performance is very good but the failure of any disk in the array results in data loss RAID 0 commonly referred to as striping Reliability Problems : No mirroring or parity bits
  • 16. RAID 1 • Introduce redundancy through mirroring • Expensive • Performance Issues -- No data loss if either drive fails – Good read performance – Reasonable write performance • Cost / MB is high • Commonly referred to as “mirroring”
  • 17. RAID 1(Mirrored) strip 0 strip 4 strip 8 strip 12 strip 1 strip 5 strip 9 strip 13 strip 2 strip 6 strip 10 strip 14 strip 3 strip 7 strip 11 strip 15 strip 0 strip 4 strip 8 strip 12 strip 1 strip 5 strip 9 strip 13 strip 2 strip 6 strip 10 strip 14 strip 3 strip 7 strip 11 strip 15
  • 18. RAID 2 • Uses Hamming (or any other) error-correcting code (ECC) • Intended for use in drives which do not have built-in error detection • Central idea is if one of the disks fail the remaining bits of the byte and the associated ECC bits can be used to reconstruct the data • Not very popular f0(b)b2b1b0 b2 f1(b) f2(b)
  • 19. RAID 3 • Improves upon RAID 2, known as Bit-Interleaved Parity • Disk Controllers can detect whether a sector has been read correctly. • Storage overhead is reduced – only 1 parity disk • Expense of computing and writing parity • Need to include a dedicated parity hardware P(b)b2b1b0 b2
  • 20. RAID 4 • Stripes data at a block level across several drives, with parity stored on one drive - block-interleaved parity • Allows recovery from the failure of any of the disks • Performance is very good for reads • Writes require that parity data be updated each time. Slows small random writes but large writes are fairly fast block 0 block 4 block 8 block 12 block 1 block 5 block 9 block 13 block 2 block 6 block 10 block 14 block 3 block 7 block 11 block 15 P(0-3) P(4-7) P(8-11) P(12-15)
  • 21. RAID 5 • Block-interleaved Distributed parity • Spreads data and parity among all N+1 disks, rather than storing data in N disks and parity in 1 disk • Avoids potential overuse of a single parity disk – improvement over RAID 4 • Most common parity RAID system block 0 block 4 block 8 block 12 P(16-19) block 1 block 5 block 9 P(12-15) block 16 block 2 block 6 P(8-11) block 13 block 17 block 3 P(4-7) block 10 block 14 block 18 P(0-3) block 7 block 11 block 15 block 19
  • 22. RAID 6 • P+Q Redundancy
  • 24. RAID 10 • Advantages – Highly fault tolerant – High data availability – Very good read / write performance • Disadvantages – Very expensive • Applications – Where high performance and redundancy are critical
  • 25. Selecting a RAID Level •RAID 0 – High-Performance applications where data loss is not critical • RAID 1 – High Reliability with fast recovery • RAID 10/01 – Both performance and reliability are important, e.g. in small databases • RAID 5 – Preferred for storing large volumes of data • RAID 6 – Not Supported currently by many RAID implementations
  • 26. References 1.www.bridgeport.edu/sed/fcourses/cpe473/Lectures/RAID.ppt 2. r61505.csie.nctu.edu.tw/OG/project/extra6-Ch8-RAID.ppt 3. A. Silberschatz, P. B. Galvin, and G. Gagne, Operating System Concepts, 7th Edition, John Wiley & Sons, 2005