Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

which two disks can I remove from RAID 10 without breaking the array?

near-copies means that there is raid like this?

raid0(raid1(sdaX, sdbX), raid1(sdcX, sddX)) 

= sdb and sdd can be removed

cat /proc/mdstat

Personalities : [raid1] [raid10]
md2 : active raid10 sda3[0] sdd3[3] sdc3[2] sdb3[1]
      19550976 blocks 64K chunks 2 near-copies [4/4] [UUUU]

md1 : active (auto-read-only) raid10 sdc2[0] sdd2[3] sda2[2] sdb2[1]
      7823488 blocks 64K chunks 2 near-copies [4/4] [UUUU]
share|improve this question
    
i was under the impression raid 10 was a raid 1 of raid 0 arrays, so raid 1(raid0()raid0()), which isn't what you've stated ? Isn't this raid 0+1 ? Outcome should be the same, you can remove one from each raid 1 as its mirroring, but not more than one from each, as that'll break the raid 0. –  Sirex Nov 22 '10 at 14:56
    
@Sirex In the Linux Kernel, there is a separate profile called raid10 that functions like a raid0+1 but is a single array (rather an array of arrays) and is a bit more flexible than raid0+1. More info: neil.brown.name/blog/20040827225440 –  Ophidian Nov 22 '10 at 15:24
1  
Take the server offline, unplug two. Turn it on again, if the RAID can't be mounted then you picked wrong, unplug one, and reconnect one of the first two, you should have found your two drives. In any case, I how you have a good backup of your data, whatever your doing sounds dangerous. –  Zoredache Nov 22 '10 at 17:37
    
@Sirex Raid 1+0 is a stripe of mirrors. The first number is the first operation applied (mirroring) and the second number is the second operation applied (striping). en.wikipedia.org/wiki/… –  Mark Wagner Nov 22 '10 at 20:16
add comment

2 Answers

up vote 1 down vote accepted

Given that you have 4 drives and are using near copies your RAID10s degenerate into RAID1+0, i.e., a stripe of mirrors. See, e.g., this posting which is straight from the horse's (Neil Brown's) mouth.

However, for your RAID10s the drives are ordered differently:

 md2: sda3[0] sdb3[1] sdc3[2] sdd3[3]
 md1: sdc2[0] sdb2[1] sda2[2] sdd2[3]

This means you could lose sdb and sdd and be OK but you could not lose any other combination of 2 drives.

share|improve this answer
    
Thank you. Why I couldn't lose sda and sdc? in md2 remains sdb3[1] from the first mirror and sdd3[3] from the second mirror and in md1 remains sdb2[1] from the first mirror and sdd2[3] from the second. –  Filip Svoboda Nov 23 '10 at 18:22
    
Oops, you're right. :) –  Mark Wagner Nov 23 '10 at 23:11
add comment

For a RAID 10 (rarely seen documented as 1+0) array you can lose 1 disk (doesn't matter which) in each RAID 1 array and still be functional. Unfortunately many manufacturers cause confusion between RAID 10 and RAID 0+1.

share|improve this answer
add comment

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.