RAID protects against the failure of one drive, not against deleted data, ransomware or a defective server. For dedicated servers with two NVMe drives RAID 1 is the sensible default: one drive may die, the server keeps running. RAID 0 doubles speed and failure risk and belongs only on systems whose data is replaceable. You need a backup in any case.
The RAID levels that occur on servers
| Level | Drives | Usable | Tolerates | Suitable for |
|---|---|---|---|---|
| RAID 0 | 2+ | 100% | No failure | Temporary data, rendering, caches |
| RAID 1 | 2 | 50% | 1 drive | Systems, databases, game servers |
| RAID 5 | 3+ | n-1 | 1 drive | Large data volumes with HDDs |
| RAID 10 | 4+ | 50% | 1 per mirror pair | Databases under high load |
Why RAID 1 is usually enough with NVMe
RAID 5 and 10 were created to speed up slow hard disks. NVMe drives are so fast that the bottleneck is almost always elsewhere. Two NVMe drives mirrored deliver full read speed, protect against the failure of one drive and are implemented without a hardware controller using Linux software RAID or ZFS.
Software RAID or ZFS
Linux mdadm mirrors partitions and comes with every distribution. ZFS mirrors at file system level and brings checksums, snapshots and compression, which is particularly practical under Proxmox. Both detect a defective drive and keep running in "degraded" mode until it is replaced.
What happens when a drive fails
- The server keeps running, you get a message from the RAID or your monitoring.
- You create a ticket, FameSystems replaces the drive in the data centre.
- The RAID rebuilds on the new drive, with NVMe in minutes to a few hours.
- During the rebuild the server is unprotected: exactly then the backup from the day before counts.
What RAID does not protect against
A deleted directory is deleted on both halves of the mirror. Ransomware encrypts both. A file system error is mirrored. RAID secures availability, backups secure data. Anyone who confuses the two notices it at the worst moment.
Dedicated servers with NVMe
AMD Ryzen 7000, NVMe drives, 2× 10 Gbit/s, Frankfurt location. RAID or ZFS of your choice during installation.