Sub topic 9
RAID 0: speed without redundancy
RAID 0 splits data across two or more drives so that they work in parallel. It is the fastest and simplest RAID level, and it is the only common level that offers no protection against drive failure. This chapter explains how it works, how to size it, and where it fits on the A+ Core 1 exam.
This chapter assumes you know what storage is compared with RAM, can read units such as GB, TB, and Gbps, and have seen the RAID vocabulary of striping, mirroring, and parity from the previous chapter.
How striping works
RAID 0 is also called striping. The controller divides data into fixed-size pieces called stripes (or chunks). It writes the first piece to drive 1, the second to drive 2, the third to drive 1 again, and so on. The group of drives presents itself to the operating system as a single volume.
Because each drive handles only part of a request, the drives read and write at the same time. With two drives, large sequential transfers can approach twice the speed of one drive. In practice the gain is somewhat lower because of controller overhead and the limits of the bus that connects the drives.
Key properties
| Property | RAID 0 |
|---|---|
| Minimum drives | 2 |
| Fault tolerance | None |
| Usable capacity | Drives × size of the smallest drive |
| Read speed | Fast |
| Write speed | Fast, with no parity calculation |
| Storage overhead | 0% |
Every byte of raw capacity is usable. No space goes to copies or parity, which is why RAID 0 is the cheapest way to get both capacity and speed.
The failure model
RAID 0 has no redundancy, so each file is spread across all drives. If any one drive fails, the volume loses part of every large file, and the whole array becomes unreadable. Recovery means restoring from a backup.
The risk grows with each drive you add. If each drive has a probability p of failing in a given period, the chance that an array of n drives loses data is 1 − (1 − p)^n. With a 3% yearly failure rate per drive, one drive has a 3% chance of failure. Four drives in RAID 0 have about an 11.5% chance, because any one of the four failing destroys the array.
The Python function below shows the calculation.
def raid0_failure_probability(p, drives):
"""Probability that at least one drive fails, which loses a RAID 0 array."""
return 1 - (1 - p) ** drives
for n in (1, 2, 4, 8):
print(n, round(raid0_failure_probability(0.03, n), 4))
# 1 0.03
# 2 0.0591
# 4 0.1147
# 8 0.2163Calculating capacity
Usable capacity equals the number of drives times the size of the smallest drive. The controller can use only as much of each drive as the smallest member provides, so mixing sizes wastes space.
| Drives | Size each | Usable capacity |
|---|---|---|
| 2 | 1 TB | 2 TB |
| 4 | 2 TB | 8 TB |
| 3 | 2 TB, 2 TB, 1 TB | 3 TB (3 × 1 TB) |
The last row shows the waste: 5 TB of raw space yields only 3 TB because the 2 TB drives are limited to 1 TB each. Matching drive size, model, and speed is good practice for every RAID level.
What speeds up and what does not
Striping helps most with large sequential reads and writes. Examples are video editing, copying big files, and loading large game or scratch files. It helps less with many small random operations, where latency (the delay before an operation starts) matters more than throughput (the amount of data moved per second). Adding drives also does not shrink the response time of one small request, which is why a single fast SSD can beat a pair of slow hard drives in RAID 0 for everyday use.
Striping also cannot exceed the bandwidth of the path to the drives. Two SATA SSDs on separate SATA ports each have their own link, so they can combine. Several fast NVMe drives might instead be limited by the number of PCIe lanes available or by the controller.
Where RAID 0 is used
Use RAID 0 when speed matters and the data is easy to replace or is stored elsewhere:
- Video editing scratch disks and render caches.
- Temporary working space for large datasets.
- Gaming or benchmarking systems where the files can be reinstalled.
- Caches that are rebuilt from another source.
Avoid RAID 0 for the only copy of anything important, for operating systems on critical servers, and for databases that cannot be restored quickly. If you need both speed and redundancy, RAID 10 combines striping with mirroring, which a later chapter covers.
Creating and checking an array
On a Windows PC, the operating system can build a striped volume in software (Storage Spaces calls this a "simple" layout). On a motherboard with a RAID controller, you create the array in the firmware setup utility before installing the operating system. Creating an array erases the member drives, so back up anything on them first.
After setup, you can list the physical disks to confirm that the drives you expect are present.
Get-PhysicalDisk | Select-Object FriendlyName, MediaType, BusType, SizeOn Linux, this command shows whether each disk is rotational (1) or not (0).
lsblk -d -o NAME,ROTA,SIZE,TYPETroubleshooting RAID 0
| Symptom | Likely cause | Action |
|---|---|---|
| Array missing or "failed" at boot | One member drive failed or lost its cable | Check cables and ports. If a drive is dead, recreate the array and restore from backup |
| Volume smaller than expected | Mixed drive sizes | Capacity is limited by the smallest drive |
| Slow performance | Bus bottleneck, failing drive, or small random workloads | Check connections, check drive health, review the workload |
| Data lost after replacing a failed drive | RAID 0 cannot rebuild | Restore from backup |
If an array disappears, first check for a loose cable or a reseated drive. A simple connection problem can often be fixed without data loss. If a drive has actually failed, no rebuild is possible.
Exam tips
- RAID 0 needs at least two drives and offers no fault tolerance.
- If a question asks for the highest performance and does not care about redundancy, answer RAID 0.
- If a question mentions redundancy, RAID 0 is the wrong answer.
- Remember the capacity rule: all drives are usable, with no overhead.
- RAID 0 is not a backup, and neither is any other RAID level.
Exercise
A technician builds a RAID 0 array from four 2 TB drives. (a) What is the usable capacity? (b) What happens if one drive fails? (c) Why is the array less reliable than a single 2 TB drive?
Show answer
(a) 4 × 2 TB = 8 TB, because RAID 0 has no overhead. (b) The array is lost, because each file is spread across all four drives. The data must be restored from backup. (c) The array fails if any of the four drives fails, so the chance of data loss is about four times that of a single drive for small failure rates.
Exercise
A video editor wants a fast scratch volume for temporary render files. The final projects are saved to a network server with nightly backups. Is RAID 0 a good choice? Explain.
Show answer
Yes. Scratch files need high sequential throughput and can be regenerated, and the important data is stored and backed up elsewhere. A drive failure costs only temporary files and some time.
Exercise
A RAID 0 array contains drives of 1 TB, 2 TB, and 2 TB. What is the usable capacity, and how much raw space is wasted?
Show answer
Usable capacity is 3 × 1 TB = 3 TB. Raw space is 5 TB, so 2 TB is wasted, because each drive contributes only as much as the smallest drive.