RAID (Redundant Arrays of Independent Disks) - GeeksforGeeks
RAID (Redundant Arrays of Independent Disks) - GeeksforGeeks
RAID is very transparent to the underlying system. This means, that to the RAID-0
Raid-0
Evaluation
Reliability: 0
There is no duplication of data. Hence, a block once lost cannot be
recovered.
Raid Controller
Capacity: N*B
The entire space is being used to store data. Since there is no
duplication, N disks each having B blocks are fully utilized.
1. RAID-0 (Stripping)
Advantages
Blocks are “stripped” across disks. It is easy to implement.
It utilizes the storage capacity in a better way.
Disadvantages
A single drive loss can result in the complete failure of the system.
It’s not a good choice for a critical system.
2. RAID-1 (Mirroring) It uses one designated drive to store parity.
The structure of Raid-2 is very complex as we use two disks in this
More than one copy of each block is stored in a separate disk. Thus, technique. One word is used to store bits of each word and another
every block has two (or more) copies, lying on different disks. word is used to store error code correction.
It is not commonly used.
Advantages
In case of Error Correction, it uses hamming code.
It Uses one designated drive to store parity.
Disadvantages
It has a complex structure and high cost due to extra drive.
It requires an extra drive for error detection.
Reliability: 1 to N/2
1 disk failure can be handled for certain because blocks of that disk
would have duplicates on some other disk. If we are lucky enough and
disks 0 and 2 fail, then again this can be handled as the blocks of these
disks have duplicates on disks 1 and 3. So, in the best case, N/2 disk
failures can be handled.
Capacity: N*B/2
Only half the space is being used to store data. The other half is just a
mirror of the already stored data.
Raid-3
Advantages
Here Disk 3 contains the Parity bits for Disk 0, Disk 1, and Disk 2. If data
It covers complete redundancy.
loss occurs, we can construct it with Disk 3.
It can increase data security and speed.
Advantages
Disadvantages
Data can be transferred in bulk.
It is highly expensive.
Data can be accessed in parallel.
Storage capacity is less.
Disadvantages
3. RAID-2 (Bit-Level Stripping with Dedicated Parity) It requires an additional drive for parity.
In the case of small-size files, it performs slowly.
In Raid-2, the error of the data is checked at every bit level. Here, we
use Hamming Code Parity Method to find the error in the data.
Advantages
It helps in reconstructing the data if at most one data is lost.
Disadvantages
It can’t help reconstructing data when more than one is lost.
Raid-4
Raid-5
Evaluation
Reliability: 1
RAID-5 allows recovery of at most 1 disk failure (because of the way
parity works). If more than one disk fails, there is no way to recover the
Raid-4 data. This is identical to RAID-4.
Capacity: (N-1)*B
Assume that in the above figure, C3 is lost due to some disk failure.
Overall, space equivalent to one disk is utilized in storing the parity.
Then, we can recompute the data bit stored in C3 by looking at the
Hence, (N-1) disks are made available for data storage, each disk
values of all the other columns and the parity bit. This allows us to
having B blocks.
recover lost data.
Advantages
Evaluation
Data can be reconstructed using parity bits.
Reliability: 1
It makes the performance better.
RAID-4 allows recovery of at most 1 disk failure (because of the way
parity works). If more than one disk fails, there is no way to recover the Disadvantages
data. Its technology is complex and extra space is required.
If both discs get damaged, data will be lost forever. Complexity: The setup and management of RAID might be challenging.
Decreased performance: The parity calculations necessary for some
7. RAID-6 (Block-Level Stripping with two Parity Bits) RAID configurations, including RAID 5 and RAID 6, may result in a
decrease in speed.
Raid-6 helps when there is more than one disk failure. A pair of Single point of failure: RAID is not a comprehensive backup solution
independent parities are generated and stored on multiple disks at this while offering data redundancy. The array’s whole contents could be
level. Ideally, you need four disk drives for this level. lost if the RAID controller malfunctions.
There are also hybrid RAIDs, which make use of more than one RAID
level nested one after the other, to fulfill specific requirements.
Conclusion
In Conclusion, RAID technology in database management systems
distributes and replicates data across several drives to improve data
performance and reliability. It is a useful tool in contemporary database
setups since it is essential to preserving system availability and protecting
sensitive data.
Raid-6 RAID 50, also called RAID 5+0. RAID 50 combines distributed parity
(RAID 5) with striping (RAID 0).
Advantages
Very high data Accessibility.
Fast read data transactions. What is the best RAID type?
Disadvantages
Due to double parity, it has slow write data transactions. The best RAID configuration for your system will depend on wether
Extra space is required. you give importance to speed, data redundancy or both. If you give
importance to speed most of all, choose RAID 0.
Advantages of RAID
Data redundancy: By keeping numerous copies of the data on many
How to calculate RAID 6?
disks, RAID can shield data from disk failures.
Performance enhancement: RAID can enhance performance by
distributing data over several drives, enabling the simultaneous
RAID 6 is calculated by multiplying (N — 2) by the smallest disk size
execution of several read/write operations. (S).
Scalability: RAID is scalable, therefore by adding more disks to the
array, the storage capacity may be expanded.
Versatility: RAID is applicable to a wide range of devices, such as What are the four types of RAID?
160 Days of DSA Aptitude Engineering Mathematics Discrete Mathematics Operating System DBMS
workstations, servers, and personal PCs
GeeksforGeeks 76
Increasing Performance of Multiple Disks
Earlier we used to have a single Disk which involved a lot of time delay and
Previous Article Next Article low performance in terms of fetching data and responding. This gave a rise…
Disk Scheduling Algorithms Last Minute Notes – Operating Systems 2 min read
Company Explore
About Us Job-A-Thon Hiring Challenge
Legal Hack-A-Thon
Careers GfG Weekly Contest
In Media Offline Classes (Delhi/NCR)
Contact Us DSA in JAVA/C++
Advertise with us Master System Design
GFG Corporate Solution Master CP
Placement Training Program GeeksforGeeks Videos
Geeks Community
Languages DSA
Python Data Structures
Java Algorithms
C++ DSA for Beginners
PHP Basic DSA Problems
GoLang DSA Roadmap
SQL DSA Interview Questions
R Language Competitive Programming
Android Tutorial