Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure RAID5 for CentOS7

2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Today, the editor will share with you the relevant knowledge points about how to configure RAID5 in CentOS7. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.

The function of RAID 5 is to provide data security for the system. The data and the corresponding parity information are stored on the disks that make up the RAID5. When one of the disk data of RAID5 is corrupted, the remaining data and corresponding parity information are used to recover the damaged data. The advantage of RAID 5 is that the utilization of disk space is higher than that of RAID 1, and the storage cost is relatively low. It is a widely used solution to be able to ensure normal access to data when a disk is offline.

Setting method of RAID RAID 5 disk Array

The RAID 5 disk array is made up of N (N > = 3) disks. One piece of data produces one stripe, and one check data and N copies of data are cyclically and evenly stored on the N disks.

N-block disk reads and writes at the same time, and the read performance is very high, but due to the problem of verification mechanism, the write performance is relatively low. Disk (Nmur1) / N, high reliability, allows a bad disk, does not affect all data.

Preparation of the environment for the lab steps:

1. Prepare more than three hard drives of the same size, partition (fd), and check if the mdadm installation package is installed

two。 Command: mdadm-C-v / dev/md5-15-N3 / dev/sd [bMurd] 1-x1 / dev/sde1

3. View synchronization process command: cat / proc/mdstat

4. View disk usage command mdadm-D / dev/md5

5 execute the "mdadm-f / dev/md5 / dev/sdb1" command to remove the disk to simulate a disk hanging. You can see that it is being replaced and sdb1 has been invalidated

6. Remove with mdadm / dev/md5 /-r / dev/sdb1 and then add / dev/sde1 mdadm / dev/md5-add / dev/sdf1 to hot spare

7. Format, mount.

These are all the contents of the article "how to configure RAID5 for CentOS7". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report