Skip to contentSkip to conversation

RAID1 vs RAID10

DISCUSSION Ulli Horlacher 4 participants 5 messages Oct 20, 2025 – Nov 11, 2025 Btrfs file system

lore
Share & tools
lore
#0 lore raw

I have just discovered, that RAID1 is possible with more than 2 devices:

https://btrfs.readthedocs.io/en/latest/mkfs.btrfs.html#profiles

What is the difference to RAID10?

I have 4 x 3.8 TB SSD and want one filesystem.

Signature · 6 lines
Ullrich Horlacher              Server und Virtualisierung
Rechenzentrum TIK
Universitaet Stuttgart         E-Mail: [email protected]
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    https://www.tik.uni-stuttgart.de/
REF:<[email protected]>
#1 lore raw
Quoted 7 lines · Ulli Horlacher

I have just discovered, that RAID1 is possible with more than 2 devices:

https://btrfs.readthedocs.io/en/latest/mkfs.btrfs.html#profiles

What is the difference to RAID10?

I have 4 x 3.8 TB SSD and want one filesystem.

For regular btrfs RAID, if you have more than 2 devices, btrfs will "decluster" the data on these devices (depending on how much free space is available). Then there is the multi copy RAID1 (RAID1C3 and RAID1C4) which will make 2 or 3 (depending on the level) copies of the data instead of 1.

RAID10 is the usual 4 (or more see above) drives, combine 2 into a stripe set and mirror inside the stripe set.

Hope that helps,

Johannes

#3 lore raw
Quoted 8 lines · Andrei Borzenkov
Quoted 6 lines · Ulli Horlacher

I have just discovered, that RAID1 is possible with more than 2 devices:

https://btrfs.readthedocs.io/en/latest/mkfs.btrfs.html#profiles

Quoted 7 lines
Quoted 2 lines

What is the difference to RAID10?

In RAID1 each chunk (copy) is located on a single disk. In RAID10 each chunk (copy) is striped across multiple disks.

https://lore.kernel.org/linux-btrfs/[email protected]/T/

Does the RAID10 profile still have equivalent read-speed to RAID1 profile on recent (>=6.12) kernels? Last I looked into it both were still limited to the speed of a single-device.

Regards,
Nicholas

#4 lore raw
Quoted 13 lines · Nicholas D Steeves
Quoted 11 lines · Andrei Borzenkov
Quoted 8 lines · Ulli Horlacher

I have just discovered, that RAID1 is possible with more than 2 devices:

https://btrfs.readthedocs.io/en/latest/mkfs.btrfs.html#profiles

What is the difference to RAID10?

Quoted 9 lines
Quoted 4 lines

In RAID1 each chunk (copy) is located on a single disk. In RAID10 each chunk (copy) is striped across multiple disks.

https://lore.kernel.org/linux-btrfs/[email protected]/T/

Does the RAID10 profile still have equivalent read-speed to RAID1 profile on recent (>=6.12) kernels? Last I looked into it both were still limited to the speed of a single-device.

This is true for any single stream IO pattern unless it is using very large blocks.

To parallelize the single stream IO the stripe width (stripe element size, strip size) needs to be small enough. OTOH it will kill sequential IO.