On Thu, 28 Jun 2012 03:51:05 +0400 George Shuklin<george.shuklin@xxxxxxxxx>
wrote:
Few days ago met intersting question:
Let assume we have RAID10 on 4 disks. We want to remove two disks
without breaking array.
How we can know which drive is safe to eject? For 1st drive it obvious:
any of. Second is more complicated: we need eject mirror part of 'second
pair'.
Rules is simple. Don't remove adjacent devices (where the last is
considered to be adjacent to the first).
There are some pairs of adjacent devices that it is safe to remove, but it is
always safe to remove a device that is not adjacent to a removed devices.
How we can know exact topology of raid? (--detail does not provide
enough information, IMHO).
What - exactly - would you like to see in --detail.
Your answer must take into account the possibility of an odd number of
devices, of more than 2 copies of each block, and of near, far, and offset
modes.
(Patches preferred, but English-language descriptions are acceptable :-)