RAID Detailed Explanation
RAID Detailed Explanation
Disks)
1. What is RAID?
RAID stands for Redundant Array of Independent Disks. It is a way to store the same data in
different places on multiple hard disks to:
- Protect data (in case of hardware failure)
- Increase performance (through parallel reading/writing)
Key Idea: Instead of using one big disk, we use multiple small disks together in a RAID array.
4. RAID 0: Striping
Concept:
- Data is divided into blocks and each block is written to a separate disk.
- No redundancy.
Working:
- Each file is split: Half goes to Disk 1, half to Disk 2 (striping).
Benefits:
- Very fast read/write (parallel access).
- Full storage capacity is used.
Drawbacks:
- If one disk fails, entire data is lost.
Example:
- File of 100MB → 50MB on Disk 1, 50MB on Disk 2 → Speed doubled.
Summary:
- Speed: High
- Fault Tolerance: No
- Storage Usage: 100%
- Min Disks: 2
5. RAID 1: Mirroring
Concept:
- Same data is written to both disks (mirroring).
Working:
- Each disk contains an exact copy of the data.
Benefits:
- Very high fault tolerance.
- Data is safe and recoverable.
Drawbacks:
- Storage is halved.
- Slightly slower write speed.
Example:
- 2 x 1TB disks → Only 1TB usable. Even if 1 fails, data is safe.
Summary:
- Speed: Medium
- Fault Tolerance: Yes
- Storage Usage: 50%
- Min Disks: 2
Working:
- Data is split (striped), then each part is mirrored.
Benefits:
- Fast like RAID 0, Safe like RAID 1.
- Can tolerate multiple disk failures.
Drawbacks:
- Only 50% storage is usable.
- Needs minimum 4 disks.
Example:
- 4 x 1TB → Usable 2TB. Fast and safe.
Summary:
- Speed: Very High
- Fault Tolerance: Very High
- Storage Usage: 50%
- Min Disks: 4
7. Visual Comparison
RAID | Technique | Fault Tolerance | Speed | Storage Efficiency | Use Case
-----|-------------------|------------------|-----------|---------------------|----------------------
0 | Striping | No | High | 100% | Performance-focused
1 | Mirroring | Yes | Medium | 50% | Safety-focused
10 | Striping + Mirror | Very High | Very High | 50% | High-end servers