Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've read that BTRFS requires at least 4 disks (https://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices). Indeed, Linux mdadm raid10 requires only 2 disks (http://en.wikipedia.org/wiki/Non-standard_RAID_levels#Linux_MD_RAID_10). Is there something like "raid10,f2" provided by Linux mdadm in BTRFS? I'd like to have the checksumming capability built-in in the raid array, if possible.

share|improve this question

1 Answer 1

Well four is the smallest number of devices for which RAID10 makes sense really.

Because it involves mirroring you need an even number of disks, and if you only have two disks then what you have is just a mirror, which is a RAID1 array.

Yes they could allow a two disk RAID10 array, but it would be exactly equivalent to a two disk RAID1 array so I imagine they have simply chosen not to allow that option.

share|improve this answer
    
Not really. Look at raid.wiki.kernel.org/index.php/Performance. mdadm "raid10,f2" (which is the one I am interested in) performs like RAID0 in reading and like RAID1 in writing. RAID1 is much more slow in reading. That's why "raid10,f2" is almost always better than RAID1 in mdadm. Is it possible to have something like "raid10,f2" with BTRFS? –  Alberto Dec 13 '12 at 17:45
1  
That's an implementation detail of the linux software RAID which is being benchmarked there - there is no need for such a difference if reads are distributed across both mirrors. You certainly can't extrapolate from that to btrfs as btrfs does RAID in a completely different way. –  TomH Dec 13 '12 at 18:02
    
If you have an odd number of disks, in theory you can have mirrored data too, it just means that a single disk's data will be mirrored to multiple other disks. If you mirror at block level (which btrfs does), then that should not be a problem, right? –  w00t Aug 6 at 8:56
    
That said, I just tried and btrfs won't let me create a raid10 with 3 devices. Aww. Ah well. –  w00t Aug 6 at 9:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.