5

Linux mdadm has some quirks, one of them is building raid10 with only two disks. There are some reports that it's way faster (twice, both in read and write) as RAID1:

(raid1 vs raid10f2)

Is the raid10 on two disks as secure as raid1? What are the dangers of using such solution instead of "proper" raid1?

2

Well, as the second link you provide suggests there's no certainty that mirrored stripes are on separate disks - so to be honest the concept is worthless and dangerous.

| improve this answer | |
  • 2
    Not only that: marc.info/?l=linux-raid&m=141051176728630&w=2 Obviously you pay a penalty in writing when you have such an arrangement - writes need to go to both disks, and involve significant head movement. – Andrew Henle Nov 4 '15 at 11:46
  • Thanks for the link, great article! In raid1, you also need to write on both disks, only penalty is with head movement. – neutrinus Nov 4 '15 at 13:29
  • 7
    The provided answer is untrue and based on an unreliable source. RAID-10 on two disks is fully mirrored. RAID-10 near 2 is an equivalent of RAID-1. RAID-10 far 2 is a little different but still is a full, reliable mirror. Data survives when one disk dies. – Nowaker Jun 28 '16 at 22:07
2

A 2-disk RAID10 is useful for one, and only one, kind of access: single-threaded, sequential, large-block IO read requests. In that specific scenario, it behave similarly to a RAID0 setup.

For all other uses, (random read/writes, multithreaded access, ecc) a simple, cleaner RAID1 array is better due to significantly less head seeks (which are very expensive on a mechanical drive).

| improve this answer | |
  • I know this is an old entry but reconsidering this and not finding much info. Using this (raid 10 with 2 disks as a raid1) with two nvm x4 drives. I am assumming the "mechanical overhead" does not apply to nvm/ssd units. So far working fine for me but having some odd I/O errors on the unit and trying to gather if it could be related to using raid10 instead of 1 – luison Feb 7 at 19:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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