Skip to content
Log In Sign Up info@muvcloud.com

A Stripe of Mirrors

With four disks, RAID 10 forms two mirrored pairs: disks 1 and 2 hold the same data, and so do disks 3 and 4. Data is then striped across the two pairs, as in RAID 0. Each pair gives safety, and the stripe gives speed and capacity.

Capacity and Failures

DisksUsable capacityFailures survived
4 × 4 TB8 TB1, up to 2
6 × 4 TB12 TB1, up to 3
8 × 4 TB16 TB1, up to 4

Any single disk may fail. More failures are survived only when each one hits a different pair: if both disks of one pair fail, the array is lost. With four disks, after the first failure a second failure is survived in two of three cases, because two of the three remaining disks belong to the other pair.

Speed and Rebuild

  • Writes: each write goes to the two disks of one pair. There is no parity to read and recompute, so a small write costs two disk operations instead of four or six.
  • Reads: can come from either disk of each pair and from all pairs at once.
  • Rebuild: a new disk is filled by copying its partner, so only one disk is read. The rest of the array works normally, and the rebuild is shorter and puts less load on the other disks than a parity rebuild.

Why Databases and Virtual Machines Like It

Databases and virtual machine disks produce many small random writes. On RAID 5 and 6 each of those turns into a read, a parity calculation, and several writes; on RAID 10 it is two plain writes. Latency stays low and predictable, also while a disk is missing, which matters more for a database than the capacity you give up.

RAID 10 vs RAID 5 and RAID 6

Four disks of 4 TB each:

LevelUsableFailures survived
RAID 108 TB1, up to 2
RAID 512 TB1
RAID 68 TBAny 2
LevelDisk operations per small writeRebuild reads
RAID 102One disk
RAID 54All disks
RAID 66All disks

RAID 6 gives the same capacity at four disks and survives any two failures, but writes slowly. RAID 10 trades some of that safety for speed and short rebuilds.

RAID 10 vs RAID 01

RAID 01 does it the other way round: it builds two RAID 0 stripes and mirrors them. Capacity is the same, but one failed disk takes its whole stripe offline. With four disks, a second failure is then survived only in one of three cases, and the rebuild has to copy a whole stripe. Choose RAID 10.

RAID 10 with mdadm

Linux md treats RAID 10 as a level of its own rather than two nested layers. It offers the layouts near, far, and offset: near is the default and behaves like classic RAID 10, far gives faster sequential reads at the cost of writes, and offset sits between the two.

Warning: the create command overwrites every listed disk. Back up their contents and check the names with lsblk first.

sudo mdadm --create /dev/md0 --level=10 --raid-devices=4 /dev/sdb /dev/sdc /dev/sdd /dev/sde

With the near layout and four disks, neighbors in the list form a pair, here sdb with sdc and sdd with sde. If your disks come from two batches or hang on two controllers, order the list so that each pair spans both. Saving the configuration and mounting are covered in mdadm RAID: set up software RAID on Linux.

Other RAID Levels

  • RAID 0: the stripe without the mirrors; fast, with no redundancy.
  • RAID 1: a single mirror; the building block of RAID 10.
  • RAID 5: more capacity, one disk of parity, slow random writes.
  • RAID 6: two disks of parity for large arrays.

Other disk counts are in the RAID calculator and levels overview.

Updated:

Linux VPS with Full Root Access

MUVCloud cloud servers run on KVM with Enterprise NVMe SSD storage and full root access, in Turkey, the Netherlands, and the USA.

Cloud VPS Plans Starting at2.99 $/mo Cheap Linux VPS

No Limits on Service or Support

You are not on your own as your projects grow. Our support engineers are ready 24/7, on several channels, whenever you need them.

Support specialist
  • 100% customer satisfaction goal
  • Our own hardware
  • 24/7 ticket and email support
  • 4 countries with locations