LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-08-2012, 02:58 AM   #1
badkuk
LQ Newbie
 
Registered: Nov 2007
Posts: 12

Rep: Reputation: 0
mdadm RAID10 layout : near vs. far


hi peeps,

i've been reading through

http://en.wikipedia.org/wiki/Non-standard_RAID_levels

and just wanted to verify if my understanding is correct.

Is "near" safer than "far"?

e.g. given 4 drives in RAID10 array, n2:

4 drives

1 2 3 4
--------------
A1 A1 A2 A2
A3 A3 A4 A4
A5 A5 A6 A6
A7 A7 A8 A8

you'd lose the array if either 1&2 or 3&4 goes down at the same time.


With 4 drives in RAID10 array, f2:

4 drives
1 2 3 4
--------------------
A1 A2 A3 A4
A5 A6 A7 A8
A9 A10 A11 A12
.. .. .. ..
A4 A1 A2 A3
A8 A5 A6 A7
A12 A9 A10 A11

...there seems to be a lot more combinations that can result in a trashed array(1&2, 2&3, 3&4).

Is my analysis correct? Inputs are more than welcome, tia
 
Old 07-14-2012, 01:55 AM   #2
blammo
LQ Newbie
 
Registered: Jul 2012
Posts: 1

Rep: Reputation: Disabled
Thumbs up

Good question...wonder why no responses. I'm trying to figure out which drives to fail so I can shrink a 4-disk RAID10 to 2 separate RAID0 arrays, but I digress.

The 2nd part of your layout (at the bottom of post) is not correct:

1__2__3__4_
A1 A2 A3 A4
A5 A6 A7 A8
A9 A10 A11 A12
.. .. .. ..
A4 A1 A2 A3 <------
A8 A5 A6 A7 <------
A12 A9 A10 A11 <----

It should look like this:
1 2 3 4
_________________
A1 A2 A3 A4
A5 A6 A7 A8
A9 A10 A11 A12
.. .. .. ..
A2 A1 A4 A3 <----
A6 A5 A8 A7 <----
A10 A9 A12 A11 <---
.. .. .. ..

Devices 1&2 and 3&4 are still mirrors, the data is just stored on different parts of the media. I'm not sure about the safeness. It probably depends on how the drives fail. Maybe someone else can elaborate...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mdadm reports RAID10 has layout near=2,far=1 badkuk Linux - Software 1 06-08-2012 02:36 AM
mdadm RAID10 failure(s) grimm26 Linux - Server 1 02-14-2011 02:32 PM
Migrate RAID0 array to RAID10 with mdadm jimbro727 Linux - General 6 07-17-2009 07:01 PM
soft raid10 with mdadm with everything ONLY on raid Alkisx Ubuntu 3 03-01-2009 04:41 PM
RAID10 Recovery Issue - mdadm segfault marc2112 Linux - Server 2 02-15-2009 08:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration