Sub topic 9
RAID 0: speed without redundancy
This chapter assumes you know what a hard disk drive and a solid-state drive are, and that you have met the terms striping, mirroring, and parity in the previous chapter. Here the focus is RAID 0, the level that trades safety for speed.
How RAID 0 works
RAID 0 splits data into chunks called stripes. The controller writes the chunks to the member drives in turn: chunk 1 to drive A, chunk 2 to drive B, chunk 3 to drive A, and so on. The operating system sees one large volume.
Because every drive works on a different chunk at the same time, reads and writes can be close to the combined speed of all the drives. Two drives give roughly twice the throughput of one.
Key facts for the exam
| Property | RAID 0 |
|---|---|
| Minimum drives | 2 |
| Fault tolerance | None |
| Usable capacity | Drives × size of the smallest drive |
| Performance | Fastest reads and writes of the common levels |
| Technique | Striping only |
Capacity
All the space is usable. Four 2 TB drives give 8 TB. The formula is the same one used in the capacity function from the topic plan:
def raid0_capacity(drives, size_tb):
if drives < 2:
raise ValueError("RAID 0 needs at least 2 drives")
return drives * size_tb
print(raid0_capacity(2, 1)) # 2
print(raid0_capacity(4, 2)) # 8If the drives differ in size, most controllers treat every drive as if it were the size of the smallest one. A 1 TB drive paired with a 2 TB drive gives about 2 TB, not 3 TB.
The risk
RAID 0 has no copy and no parity. If one drive fails, the stripes on that drive are gone, and the remaining chunks cannot be used to rebuild a whole file. You lose the entire volume.
The risk also grows with each drive you add. A volume of four drives fails if any one of the four fails, so it is less reliable than a single drive.
Typical uses and common mistakes
Good uses are video editing scratch space, game load drives, and render caches. In these cases speed matters and the data can be recovered or recreated.
Common mistakes:
- Calling RAID 0 "redundant". The "R" stands for redundant, but RAID 0 has none.
- Using it for the operating system or for the only copy of important files.
- Assuming a mixed-size set adds up to the total of all drives.
- Expecting a faster result when the bottleneck lies elsewhere, such as a slow CPU or a SATA link shared by several drives.
Exercise
A technician builds a RAID 0 volume from three 4 TB drives. How much usable space does it have, and what happens if one drive fails?
Show answer
Usable space is 3 × 4 TB = 12 TB. If one drive fails, all data on the volume is lost, because RAID 0 has no redundancy.
Exercise
A video editor wants the fastest possible scratch disk for temporary render files, and the files can be regenerated. Which of RAID 0 and RAID 1 fits best, and why?
Show answer
RAID 0. It stripes data across drives for the best read and write speed, and the editor can accept the lack of fault tolerance because the data is temporary.