[Page 181]
RAID-0: For performance, but generally not recommended
RAID-0 is also known as data striping. It is well-suited for program libraries requiring rapid
loading of large tables, or more generally, applications requiring fast access to read-only
data or fast writing. RAID-0 is only designed to increase performance. There is no
redundancy, so any disk failures require reloading from backups. Select RAID level 0 for
applications that would benefit from the increased performance capabilities of this RAID
level. Never use this level for critical applications that require high availability.
[Page 181]
RAID-1: For availability/good read response time
RAID-1 is also known as disk mirroring. It is most suited to applications that require high
data availability, good read response times, and where cost is a secondary issue. The
response time for writes can be somewhat slower than for a single disk, depending on the
write policy. The writes can either be executed in parallel for speed or serially for safety.
Select RAID level 1 for applications with a high percentage of read operations and where
the cost is not the major concern.
Because the data is mirrored, the capacity of the logical drive when assigned RAID level 1
is 50 percent of the array capacity.
[Page 182]
Some recommendations when using RAID-1 include:
– Use RAID-1 for the disks that contain your operating system. It is a good choice,
because the operating system can usually fit on one disk.
– Use RAID-1 for transaction logs. Typically, the database server transaction log can fit
on one disk drive. In addition, the transaction log performs mostly sequential writes.
Only rollback operations cause reads from the transaction logs. Therefore, we can
achieve a high rate of performance by isolating the transaction log on its own RAID-1
array.
[Page 183]
RAID-5: High availability and fewer writes than reads
RAID level 5 stripes data and parity across all drives in the array. RAID level 5 offers both
data protection and increased throughput. When you assign RAID-5 to an array, the
capacity of the array is reduced by the capacity of one drive (for data-parity storage).
RAID-5 gives you higher capacity than RAID-1, but RAID level 1 offers better performance.
RAID-5 is best used in environments requiring high availability and fewer writes than
reads.
RAID-5 is good for multi-user environments, such as database or file system storage,
where typical I/O size is small, and there is a high proportion of read activity. Applications
with a low read percentage (write-intensive) do not perform as well on RAID-5 logical
drives because of the way a controller writes data and redundancy data to the drives in a
RAID-5 array. If there is a low percentage of read activity relative to write activity, consider
changing the RAID level of an array for faster performance.
[Page 184]
RAID-10: Higher performance than RAID-1
RAID-10, also known in as RAID 0+1, implements block interleave data striping and
mirroring. In RAID-10, data is striped across multiple disk drives, and then those drives are
mirrored to another set of drives.
The performance of RAID-10 is approximately the same as RAID-0 for sequential I/Os.
RAID-10 provides an enhanced feature for disk mirroring that stripes data and copies the
data across all the drives of the array. The first stripe is the data stripe; the second stripe is
the mirror (copy) of the first data stripe, but it is shifted over one drive. Because the data is
mirrored, the capacity of the logical drive is 50 percent of the physical capacity of the hard
disk drives in the array.
The recommendations for using RAID-10 are:
Use RAID-10 whenever the array experiences more than 10 percent writes. RAID-5 does
not perform well as RAID-10 with a large number of writes.
[Page 184]
When comparing RAID-10 to RAID-5:
RAID-10 writes a single block through two writes. RAID-5 requires two reads (read original
data and parity) and two writes. Random writes are significantly faster on RAID-10.
RAID-10 rebuilds take less time than RAID-5 rebuilds. If a real disk fails, RAID-10 rebuilds
it by copying all the data on the mirrored disk to a spare. RAID-5 rebuilds a failed disk by
merging the contents of the surviving disks in an array and writing the result to a spare.
RAID-10 is the best fault-tolerant solution in terms of protection and performance, but it
comes at a cost. You must purchase twice the number of disks that are necessary with
RAID-0.
Partager