Understanding raid Disk Arrays
In recent years, hard disks have been greatly improved in terms of capacity, access speed, and reliability. However, this improvement still keeps up with the development requirements of processors, making hard disks a bottleneck in computer systems. In order to meet the high-speed disk access requirements of application systems, many measures have been taken. In 1988, Professor D. A. Patterson of UC Berkeley proposed a low-cost redundant disk array (RAID.
Raid combines a general hard disk into a disk array and writes data to the host. The RAID Controller splits the data to be written to the host into multiple data blocks and then writes the data to the disk array in parallel. When the Host reads data, the RAID Controller concurrently reads data distributed on each hard disk in the disk array and re-assembles the data to the host. The use of parallel read/write operations improves the storage system access. In addition, raid disk arrays can also adopt mirroring, parity, and other measures to improve the system's fault tolerance capability and ensure data reliability.
Depending on the raid method, it can be divided into six levels: 0-5:
RAID 0: when the host requires data writing, the RAID Controller divides the data into multiple blocks and writes them to each hard disk in the disk array in parallel. when reading the data, the RAID Controller reads data from each hard disk and transmits the data to the host in the original order. The advantage of this method is that the data is segmented and transmitted in parallel, which can improve the read/write speed of the host, and the storage space in the disk array is not redundant. However, it does not improve the reliability of the system. When any hard disk medium fails, the system cannot be restored.
Raid 1: it divides the hard disks in the disk array into two identical groups and mirror each other. When any disk medium fails, data can be restored using its image, this improves the fault tolerance capability of the system. Data operations are still performed in parallel After partitioning. All raid
1 not only improves the read/write speed, but also enhances the system reliability. However, the disadvantage is that the hard disk utilization is low, and the redundancy is 50%.
Raid 2/raid 4: These two levels are rarely used in practice and are not supported by most systems. We will not introduce them here.
RAID 3: Like RAID 0, RAID 3 also uses the data block parallel transmission method, but all of the same is that it calculates their parity checksum after data blocks, then, the block data and parity information are written into the hard disk array. This method improves the data access speed and reliability. When any hard disk in the array is damaged, you can use the information on other data disks and parity check disks to reconstruct the original data. In terms of Hard Disk utilization, raid
3 is higher than RAID 1. For example, an array consisting of five hard disks has a redundancy of only 20%. However, RAID 3 also has its disadvantages. Because the parity information is stored on a hard disk, the hard disk has a heavy burden and creates new bottlenecks.
RAID 5: similar to raid 3's data processing method, RAID 3 overwrites the parity information to each hard disk in the array to overcome the bottleneck in RAID 3.
Apart from above, we can also use software technology to implement raid disk arrays. The storage methods provided by the Windows NT operating system, such as disk sharding, disk sharding with parity, Disk Mirroring, and duplex, are actually the software implementation of RAID technology. Disk shards correspond to raid
0. Disk Mirroring and duplex correspond to raid 1, while disk shards with parity check correspond to RAID 5. Compared with raid devices, the biggest advantage of these methods is the low price, but the performance is much lower.
Among the above levels, RAID 5 has the most outstanding advantages and can be used as the first choice for large and important application environments. However, for most DIY enthusiasts who are pursuing speed, it is more appropriate to use a RAID 0 disk array consisting of two IDE hard disks. Currently, IDE raid cards are available on the market. The most common is promise fasttrak 66, which is equipped with two ide channels of ultradma66. It supports raid one thousand, 1 + 0, and the price is more than yuan. The following uses fasttrak66 as an example to describe how to install ide raid:
· Insert fasttrak 66 Into the PCI slot of the motherboard;
· Connect two hard disks of the same type as the master disk to two ide interfaces of fasttrak 66;
· Press Ctrl + f To Go To The fasttrak 66 setting screen;
· Set raid mode to stripe, save and exit;
· Partition and format... That's OK!