RAID combines several disks so that a server survives the failure of one disk (RAID 1, 5, 10) or two (RAID 6) and keeps running. It does not protect you from deleted files, hacks or a bad update: on our test bench a deleted file and a corrupted config instantly became identical on both mirror disks, and the array check reported zero mismatches. You can see the health of RAID on your own server in a minute with cat /proc/mdstat, mdadm --detail and smartctl -a.
How we tested
On 10 November 2026 we built mdadm 4.3 software arrays (RAID 1 on two disks, RAID 5 on three) on eight 512 MB loop files. The test machine’s kernel has no md driver, so the arrays ran in a nested QEMU virtual machine with the Ubuntu 6.8 kernel (software emulation, 2 vCPU, 1 GB RAM). We wrote test files with SHA-256 checksums, “pulled” a disk with mdadm --fail and ran fio on the healthy, degraded and rebuilding array (5-6 second runs, 2-5 repeats, medians in the tables); host load average stayed at 0.9-2.6. The bench’s virtual disks are fast, so absolute numbers look nothing like an HDD or NVMe drive: read the ratios. We checked the md(4) man page, the kernel docs, the Seagate IronWolf datasheet and Backblaze drive stats the same day. These are test bench numbers, not RichHost server numbers.
RAID levels in plain terms
RAID 1 writes the same data to two disks. RAID 5 spreads data across three or more disks and adds parity, from which the contents of any one disk can be recalculated. RAID 6 keeps two independent parities and survives the loss of two disks. RAID 10 is a set of mirrored pairs with data striped across them. RAID 0 only joins disks for speed and protects nothing.
| Level | Min. disks | Usable capacity | Disks that can fail | Weak spot |
|---|---|---|---|---|
| RAID 1 | 2 | 50% (one disk) | all but one | expensive per GB |
| RAID 5 | 3 | (N-1)/N, 75% with 4 disks | 1 | slow rebuild, read error risk on large disks |
| RAID 6 | 4 | (N-2)/N, 50% with 4 disks | 2 | slower writes because of double parity |
| RAID 10 | 4 | 50% | 1 guaranteed, up to half if from different pairs | losing both disks of one pair kills the array |
For a website the difference shows up in writes: every write to RAID 5 or 6 also means a parity update, which is why write-heavy databases usually sit on RAID 1 or 10. How disk speed turns into site speed is covered in our article on disk IOPS, latency and throughput.
Why RAID is not a backup: tested on the bench
RAID protects against one thing: a physical disk failure. Whatever the system itself does, RAID faithfully repeats on every disk. On a healthy RAID 1 we deleted one file, overwrote a “config” with a line from a broken deploy and damaged 4 KB inside another file. Then we stopped the array and mounted each mirror disk separately, read only:
member a: f7.bin exists? no; config: wp-config: DB_PASSWORD=@@garbage-from-bad-deploy; f8 sha: 9b6366f64c821e73
member b: f7.bin exists? no; config: wp-config: DB_PASSWORD=@@garbage-from-bad-deploy; f8 sha: 9b6366f64c821e73
original f8 sha: c406192dff4e5f78
md1 check mismatch_cnt=0
The file is gone from both disks, the corrupted content is identical, and the built-in array check (echo check > /sys/block/md1/md/sync_action, described in the kernel documentation) found no mismatch at all: as far as RAID is concerned, everything is fine. The only way to get such files back is a copy stored off the server. How to set that up is explained in our guide to website backups and the 3-2-1 rule.
A second test showed the flip side. We wrote random bytes directly to one mirror disk, into a block holding a file. The array assembled as healthy [UU], and six reads of the file returned the correct content because md read from the undamaged disk. A check found 128 mismatched sectors, but RAID 1 cannot tell which copy is correct: according to md(4), repair simply overwrites all copies with one of them. md keeps no data checksums.
What happens when a disk fails
Degraded mode
After mdadm --fail the site kept working, and all 30 test files on each array passed the SHA-256 check. This is what the problem looks like:
md5 : active raid5 vdf[3] vde[1](F) vdd[0]
1044480 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/2] [U_U]
md1 : active raid1 vdb[1](F) vda[0]
524224 blocks super 1.0 [2/1] [U_]
$ mdadm --detail /dev/md1
State : clean, degraded
Active Devices : 1
Failed Devices : 1
1 253 16 - faulty /dev/vdb
The underscore in [U_] means a missing disk, (F) marks a failed one. The fio measurements (median, higher is better):
| Array state | RAID 1: 4 KB writes, IOPS | RAID 5: 4 KB writes, IOPS | RAID 5: sequential read, MB/s |
|---|---|---|---|
| Healthy | 1979 | 3222 | 1230 |
| One disk missing | 2517 | 3397 | 164 |
| During rebuild | 1773 | 1991 | 149 |
RAID 1 with a missing disk did not slow down, and writes even got 27% faster because only one copy is written. That is exactly why a failed mirror often goes unnoticed for months, until the second disk dies. RAID 5 without a disk read large files 7.5 times slower, because every stripe has to be recalculated from parity. Small random reads did not drop on the bench’s virtual disks (5,933 IOPS vs 3,813), but on HDDs reading a block of the missing disk means reading from every remaining disk.

Rebuild, and why it slows the site down
After a disk is replaced (mdadm --add), md rewrites all data onto the new disk. On the bench 512 MB was rebuilt in 2.6-3.1 seconds for RAID 1 and in 6.2-7.2 seconds for RAID 5, which has to read every other disk and compute parity. With fio running at the same time, the rebuild took 6 seconds for RAID 1 and 9.3-11.9 seconds for RAID 5, and the speed in /proc/mdstat fell from about 80 to 19 MB/s. The site suffered too: random writes on RAID 5 dropped from 3,222 to 1,991 IOPS (38% less).
This is by design: according to the md(4) man page, the driver monitors other access to the array and slows recovery down. The limits are /proc/sys/dev/raid/speed_limit_min (default 1000 KB/s per disk, the goal under load) and speed_limit_max (200,000 KB/s, the goal when idle).
Large disks: long rebuilds and the read error risk
An estimate, not a measurement: scaling our RAID 5 linearly, a 4 TB disk at about 80 MB/s would take around 14 hours to rebuild. Even at the maximum rate in the Seagate IronWolf 4 TB datasheet (202 MB/s) that is at least 5.5 hours on an idle server, and on a busy one where md stays close to the 1000 KB/s minimum goal, theoretically more than a month. During all that time a RAID 5 array has no redundancy left.
The second threat is an unrecoverable read error (URE). The IronWolf datasheet specifies at most 1 error per 1014 bits read for the 2, 4 and 6 TB models, and 1 per 1015 for the 8 TB ST8000VN004 and larger. Rebuilding a four-disk RAID 5 of 4 TB drives reads 12 TB, or 9.6×1013 bits. Taking the datasheet limit literally, the chance of at least one error is about 62% (the chance of a clean pass is e-0.96, only 38%), and about 9% for 1015 class drives. Even a two-disk 4 TB mirror (1014) comes to about 27%. Real drives usually do better than the datasheet limit, and according to the documentation md does not abort recovery over such a block: it records it in the bad block list and finishes the rebuild, but the data in that spot is lost. Hardware controllers vary, and some stop the rebuild. This is where RAID 6 wins: it corrects a single read error with its second parity.
Another disk failing during the rebuild itself is unlikely if disks fail independently: Backblaze drive stats for Q2 2026 (354,415 drives) show an annualized failure rate of 1.73%, which is about 0.014% for three disks over one day. But drives from the same batch age together and a rebuild stresses them, so the real risk is higher and cannot be calculated precisely.
Software RAID (mdadm) or hardware RAID
| mdadm (software) | Hardware controller | |
|---|---|---|
| Where it runs | md driver in the Linux kernel | a dedicated processor on the controller card |
| If it breaks | any Linux with mdadm can read the disks | you need a compatible controller, since the array format is its own |
| Write cache | none of its own, the OS cache is used | often a cache protected by a battery or flash module, which speeds up writes |
| Monitoring | /proc/mdstat, mdadm --monitor, email via MAILADDR |
vendor tool (storcli, ssacli); disk SMART via smartctl -d megaraid,N |
| Cost | free, a little CPU time | the price of the controller |
For a site on your own server with two or four disks, mdadm is usually the simplest choice: the array is transparent, and if the motherboard dies the disks can go into another server. A hardware controller makes sense when a busy database needs a protected write cache, and only if you know how to get disk health out of it.
How to check RAID on your own server
# 1. Quick status: [UU] = healthy, [U_] = one disk missing, (F) = failed
cat /proc/mdstat
# 2. Details: look at "State :", "Failed Devices", "faulty", "removed"
mdadm --detail /dev/md0
# 3. Disk health (physical server): reallocated / pending sectors, errors
smartctl -H /dev/sda
smartctl -a /dev/sda | grep -Ei "reallocated|pending|uncorrect|power_on"
smartctl -a /dev/nvme0 # NVMe: "Percentage Used", "Media and Data Integrity Errors"
# 4. Scrub: read everything and compare copies/parity, then check the counter
echo check > /sys/block/md0/md/sync_action
cat /sys/block/md0/md/mismatch_cnt
# 5. Alerts by email (Debian/Ubuntu): set MAILADDR in /etc/mdadm/mdadm.conf
mdadm --monitor --scan --test --oneshot
On Ubuntu 24.04 the mdadm package runs this check monthly on the first Sunday (mdcheck_start.timer), but you only get an alert email if mail is configured. On a VPS you see a single virtual disk: in our virtual machine smartctl answered “Unable to detect device type”. There RAID and disk health are the provider’s job, so ask them directly; your part is backups and load monitoring. The difference between these service models is covered in our articles on VPS vs dedicated servers and managed vs unmanaged hosting.
If X, do Y
| If | Do |
|---|---|
| You run your own server with two disks for a site or shop | RAID 1 with mdadm plus copies off the server |
| Four disks and a write-heavy database | RAID 10 |
| Large HDDs (8 TB and up) for files or archives, capacity matters | RAID 6, not RAID 5 |
| You already run RAID 5 on 4 TB+ disks rated at 1 URE per 1014 bits | Plan a move to RAID 6 or 10, and take a fresh backup before any rebuild |
/proc/mdstat shows [U_] or (F) |
Fresh backup first, then replace the disk and run mdadm --add; avoid unnecessary reboots |
| The site is slow during a rebuild | Lower speed_limit_max at peak hours and raise it at night to shorten the risk window |
mismatch_cnt is above zero after a check |
Check SMART on both disks and compare important files with a backup instead of running repair blindly |
| Your site is on a VPS or shared hosting | RAID is not your job: ask the provider what sits under the disks and set up copies somewhere else |
Most sites do not need an array of their own at all: on shared hosting the provider looks after disks and hardware. On RichHost plans sites run on NVMe disks, and data goes into continuous cloud backups, kept apart from the server for exactly the cases RAID does not cover. See the hosting plans for details. If you are choosing a server yourself, compare the CPU as well as the RAID level: we tested what cores, threads and vCPU really mean in a separate article.
FAQ
Is RAID 1 a backup?
No. A mirror instantly repeats deletions, ransomware encryption and software bugs on both disks, as we saw on the bench. A backup has to live off the server and keep several versions over time.
RAID 5 or RAID 10 for a site with a database?
RAID 10 if you have four disks: it writes faster and rebuilds by simple copying. On the bench, random writes on RAID 5 fell by 38% during a rebuild, and reads without one disk were 7.5 times slower.
How long does a 4 TB rebuild take?
Roughly from a few hours on an idle server to a day or more under load. The floor is set by disk speed (up to 202 MB/s for an IronWolf 4 TB, so at least 5.5 hours), and md also slows recovery while the site is actively using the disk.
How do I know whether my VPS has RAID?
You cannot tell from inside the VPS: the virtual disk does not show what is underneath, and SMART is not available. Ask the provider which RAID level and disks the host server uses, and do not treat that as a replacement for backups.



