Introduction to Common Disk Arrays for Linux Systems

  

RAID itself is an abbreviation for disk arrays. Disk arrays can be used to store a file segment in different partitions. Linux system disk arrays are not many, the most commonly used is RAID5. This article will introduce the disk array of Linux system.

(1) RAID Introduction:

Redundant Array of Independent Disks (RAID), formerly known as Redundant Array of Inexpensive Disks (RAID) Hard disk array. The basic idea is to combine multiple relatively inexpensive hard drives into a hard disk array group to achieve performance even more than an expensive hard drive. Depending on the version chosen, RAID has one or more of the following benefits over a single hard drive: enhanced data integration, enhanced fault tolerance, increased throughput or capacity. In addition, the disk array looks like a separate hard disk or logical storage unit for the computer. Divided into RAID-0, RAID-1, RAID-1E, RAID-5, RAID-6, RAID-7, RAID-10, RAID-50.

In a nutshell, RAID combines multiple hard disks into one logical sector, so the operating system only treats it as a hard disk. RAID is often used on server computers, and often uses the exact same hard drive as a combination. As hard drive prices continue to fall and RAID functions are more effectively integrated with the motherboard, it has also become an option for players, especially those that require large amounts of storage space, such as video and audio production.

The initial RAID is divided into different levels. Each level has its theoretical advantages and disadvantages. Different levels balance the two goals, which are to increase data reliability and increase memory (group). Read and write performance. Over the years, there have been applications for different RAID concepts.

(two) Linux soft-RAID5:

1, to prepare a hard disk (at least three drives, a hard disk used here implemented five partitions, but in actual production It doesn't make sense to do a RAID for a hard disk):

[root@localhost ~]# fdisk -cul /dev/sdb #Create a partition as follows

Disk /dev/sdb: 21.5 GB, 21474836480 bytes< Br>

255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 Bytes /512 bytes

I/O size (minimum/optimal): 512 bytes /512 bytes

Disk identifier: 0x466fc1b6

Device Boot Start End Blocks Id System

/dev/sdb1 2048 10487807 5242880 83 Linux

/dev/sdb2 10487808 41943039 15727616 5 Extended

/dev/sdb5 10489856 16781311 3145728 83 Linux

/Dev/sdb6 16783360 23074815 3145728 83 Linux

/dev/sdb7 23076864 29368319 3145728 83 Linux

/dev/sdb8 29370368 35661823 3145728 83 Linux

/dev/sdb9 35663872 41943039 3139584 83 Linux

[root@localhost ~]# partx -a /Dev/sdb #Reread partition table

[root@localhost ~]# rpm -qa | Grep mdadm #View whether to create raid software installation

mdadm-3.2.3-9.el6.i686 Previous12Next page Total 2 pages

Copyright © Windows knowledge All Rights Reserved