* RAID1 vs RAID10
@ 2025-10-20 12:21 Ulli Horlacher
2025-10-20 12:28 ` Johannes Thumshirn
2025-10-20 13:05 ` Andrei Borzenkov
0 siblings, 2 replies; 5+ messages in thread
From: Ulli Horlacher @ 2025-10-20 12:21 UTC (permalink / raw)
To: linux-btrfs
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.
--
Ullrich Horlacher Server und Virtualisierung
Rechenzentrum TIK
Universitaet Stuttgart E-Mail: horlacher@tik.uni-stuttgart.de
Allmandring 30a Tel: ++49-711-68565868
70569 Stuttgart (Germany) WWW: https://www.tik.uni-stuttgart.de/
REF:<20251020122115.GA1461277@tik.uni-stuttgart.de>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RAID1 vs RAID10
2025-10-20 12:21 RAID1 vs RAID10 Ulli Horlacher
@ 2025-10-20 12:28 ` Johannes Thumshirn
2025-10-20 13:05 ` Andrei Borzenkov
1 sibling, 0 replies; 5+ messages in thread
From: Johannes Thumshirn @ 2025-10-20 12:28 UTC (permalink / raw)
To: Ulli Horlacher, linux-btrfs@vger.kernel.org
On 10/20/25 2:21 PM, Ulli Horlacher wrote:
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RAID1 vs RAID10
2025-10-20 12:21 RAID1 vs RAID10 Ulli Horlacher
2025-10-20 12:28 ` Johannes Thumshirn
@ 2025-10-20 13:05 ` Andrei Borzenkov
2025-11-08 2:10 ` Nicholas D Steeves
1 sibling, 1 reply; 5+ messages in thread
From: Andrei Borzenkov @ 2025-10-20 13:05 UTC (permalink / raw)
To: linux-btrfs
On Mon, Oct 20, 2025 at 3:23 PM Ulli Horlacher
<framstag@rus.uni-stuttgart.de> wrote:
>
>
> 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?
>
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/87v8qokryt.fsf@vps.thesusis.net/T/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RAID1 vs RAID10
2025-10-20 13:05 ` Andrei Borzenkov
@ 2025-11-08 2:10 ` Nicholas D Steeves
2025-11-11 18:14 ` Andrei Borzenkov
0 siblings, 1 reply; 5+ messages in thread
From: Nicholas D Steeves @ 2025-11-08 2:10 UTC (permalink / raw)
To: Andrei Borzenkov, linux-btrfs
[-- Attachment #1: Type: text/plain, Size: 760 bytes --]
Andrei Borzenkov <arvidjaar@gmail.com> writes:
> On Mon, Oct 20, 2025 at 3:23 PM Ulli Horlacher
> <framstag@rus.uni-stuttgart.de> wrote:
>>
>>
>> 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?
>>
>
> 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/87v8qokryt.fsf@vps.thesusis.net/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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RAID1 vs RAID10
2025-11-08 2:10 ` Nicholas D Steeves
@ 2025-11-11 18:14 ` Andrei Borzenkov
0 siblings, 0 replies; 5+ messages in thread
From: Andrei Borzenkov @ 2025-11-11 18:14 UTC (permalink / raw)
To: Nicholas D Steeves, linux-btrfs
08.11.2025 05:10, Nicholas D Steeves wrote:
> Andrei Borzenkov <arvidjaar@gmail.com> writes:
>
>> On Mon, Oct 20, 2025 at 3:23 PM Ulli Horlacher
>> <framstag@rus.uni-stuttgart.de> wrote:
>>>
>>>
>>> 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?
>>>
>>
>> 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/87v8qokryt.fsf@vps.thesusis.net/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.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-11-11 18:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-20 12:21 RAID1 vs RAID10 Ulli Horlacher
2025-10-20 12:28 ` Johannes Thumshirn
2025-10-20 13:05 ` Andrei Borzenkov
2025-11-08 2:10 ` Nicholas D Steeves
2025-11-11 18:14 ` Andrei Borzenkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox