Managing Software RAIDs 6 and 10 with mdadm
81
no
vd
ocx (
E
NU)
9
Jan
uar
y 2
007
of replicas of each data block. The effective storage size is the number of devices divided by the
number of replicas.
For example, if you specify 2 replicas for an array created with 5 component devices, a copy of each
block is stored on two different devices. The effective storage size for one copy of all data is 5/2 or
2.5 times the size of a component device.
Near Layout
With the near layout, copies of a block of data are striped near each other on different component
devices. That is, multiple copies of one data block are at similar offsets in different devices. Near is
the default layout for RAID10. For example, if you use an odd number of component devices and
two copies of data, some copies are perhaps one chunk further into the device.
The near layout for the
mdadm
RAID10 yields read and write performance similar to RAID 0 over
half the number of drives.
Near layout with an even number of disks and two replicas:
sda1 sdb1 sdc1 sde1
0 0 1 1
2 2 3 3
4 4 5 5
6 6 7 7
8 8 9 9
Near layout with an odd number of disks and two replicas:
sda1 sdb1 sdc1 sde1 sdf1
0 0 1 1 2
2 3 3 4 4
5 5 6 6 7
7 8 8 9 9
10 10 11 11 12
Far Layout
The far layout stripes data over the early part of all drives, then stripes a second copy of the data
over the later part of all drives, making sure that all copies of a block are on different drives. The
second set of values start half-way through the component drives.
With a far layout, the read performance of the
mdadm
RAID10 is similar to a RAID 0 over the full
number of drives, but write performance is substantially slower than a RAID 0 because there is more
seeking of the drive heads. It is best used for read-intensive operations such as for read-only file
servers.
Far layout with an even number of disks and two replicas:
sda1 sdb1 sdc1 sde1
0 1 2 3
3 5 6 7
. . .
Summary of Contents for LINUX ENTERPRISE SERVER 10 - STORAGE ADMINISTRATION GUIDE FOR EVMS
Page 4: ...novdocx ENU 9 January 2007 ...
Page 8: ...8 SLES 10 Storage Administration Guide for EVMS novdocx ENU 9 January 2007 ...
Page 10: ...10 SLES 10 Storage Administration Guide for EVMS novdocx ENU 9 January 2007 ...
Page 40: ...40 SLES 10 Storage Administration Guide for EVMS novdocx ENU 9 January 2007 ...
Page 52: ...52 SLES 10 Storage Administration Guide for EVMS novdocx ENU 9 January 2007 ...
Page 74: ...74 SLES 10 Storage Administration Guide for EVMS novdocx ENU 9 January 2007 ...
Page 84: ...84 SLES 10 Storage Administration Guide for EVMS novdocx ENU 9 January 2007 ...