Re: XFS on top RAID10 with odd drives count and 2 near copies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 15/02/2012 00:27, Stan Hoeppner wrote:

Maybe I simply don't understand this 'magic' of the f2 and far layouts.
  If you only read the "faster half" of a spindle, does this mean writes
go to the slower half?  If that's the case, how can you read data that's
never been written?


Imagine you have disk A with partitions 1 and 2 (1 being the outer faster half). Similarly, disk B is partitioned into 1 and 2.

Take A1 and B2 and tie them together with raid1 as md0.
Take B1 and A2 and tie them together with raid1 as md1.
Take md0 and md1 and tie them together with raid0 as md2.

Then md2 is pretty much a "raid10,f2" of disk A and disk B.


So all data is written twice, with one copy on each disk - that's the "raid1" mirroring part. And each time you need to read a large block of data, you can get parts of it in parallel from both disks at once, with contiguous reads - blocks 0, 2, 4, ... come from A1, while blocks 1, 3, 5, ... come from B1.

Reads will normally be taken from the outer halves (A1 and B1), since these have faster throughput, and keeping the heads there means half the head movement (actually less than that on average). But if the system happens to be reading from (or writing to) A1, and needs access to data that is also on A1, it can read it from B2 in parallel.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux