当前位置:网站首页>server disk array
server disk array
2022-08-05 05:06:00 【time * passerby】
目录
简述
RAID( Redundant Array of Inexpensive Disks)称为廉价磁盘冗余阵列. RAID The basic idea is to combine multiple cheap small disks together,grouped into one large disk group,使性能达到或超过一个容量巨大、价格昂贵、Disk with fast read and write speed.
目前 RAID 技术主要分为两种:基于硬件的RAIDtechnology and software-basedRAID 技术.在 Linux The system can be simulated by the software that comes with it RAID 功能,This saves buying expensive hardware RAID Controller fee,The disk can be greatly enhanced IO 性能和可靠性.Because it is implemented by software to simulate RAID 功能,So its configuration is flexible、管理方便.同时使用软件 RAID,还可以实现将几个物理磁盘合并成一个更大的虚拟设备,Thereby achieving the purpose of performance improvement and data redundancy.Of course hardware based RAID Solutions are more software based RAID Technology will outperform in performance,Specifically, the ability to detect and repair multiple-bit errors、错误磁盘自动检测和阵列重建等方面.
配置RAID磁盘
检查是否安装mdadm软件

创建磁盘分区(根据实际需求配置)

Created for the convenience of this experiment4个主分区

创建/dev/md5 RAID级别为5 Active Disk Directory is 3 The backup disk is 1 使用/dev/sdb磁盘1-4
mdadm --create /dev/md5 --level=5 --raid-devices=3 --spare-devices=1 /dev/sdb[1-4]
It can be abbreviated as follows
mdadm -C /dev/md5 -l 5 -n 3 -x 1 /dev/sdb[1-4]
查看RAID详细信息

配置自动加载RAID软件
将RAID的配置信息放到/etc/mdadm.conf文件内(mdadm.conf文件需要手动创建)
mdadm --detail --scan > /etc/mdadm.conf
命令可简写为
mdadm -D -s > /etc/mdadm.confEnter the configuration file and manually modify it to the following format

将创建的/dev/md5It can be mounted after formatting

维护RAID
Simulate a failed disk
将/dev/md5中/dev/sdb2mark failure
mdadm /dev/md5 --fail /dev/sdb2
cat /proc/mdstat输入命令将/dev/sdb2Mark as failed disk,查看时RAIDDisk rebuilding replaces the failed disk with a spare

Disk rebuild is complete

The original spare disk can be seen here/dev/sdb4顶替了/dev/sdb2的工作 /dev/sdb2Status shows error

移除故障磁盘
移除/dev/md5中的/dev/sdb2
mdadm /dev/md5 --remove /dev/sdb2
命令简写为
mdadm /dev/md5 -r /dev/sdb2
添加新磁盘
Insert the new disk/dev/sdb2添加到/dev/md5中
mdadm /dev/md5 --add /dev/sdb2
命令简写为
mdadm /dev/md5 -a /dev/sdb2
边栏推荐
猜你喜欢

Flutter real machine running and simulator running

逆向理论知识4

【cesium】加载并定位 3D Tileset

dedecms后台生成提示读取频道信息失败的解决方法

8.04 Day35-----MVC three-tier architecture

The solution to the failure to read channel information when dedecms generates a message in the background

Analyses the mainstream across technology solutions

The underlying mechanism of the class

Dephi逆向工具Dede导出函数名MAP导入到IDA中

Flutter learning 2-dart learning
随机推荐
Develop your own node package
number_gets the specified number of decimals
The solution to the failure to read channel information when dedecms generates a message in the background
The production method of the powered small sailboat is simple, the production method of the electric small sailboat
Judgment statement _switch and case
Redis - 13. Development Specifications
作业8.4 进程间的通信 管道与信号
大学物理---质点运动学
Day14 jenkins部署
【cesium】Load and locate 3D Tileset
LeetCode:1403. 非递增顺序的最小子序列【贪心】
2023年信息与通信工程国际会议(JCICE 2023)
【学习笔记之菜Dog学C】动态内存管理之经典笔试题
『递归』递归概念与典型实例
dedecms织梦tag标签不支持大写字母修复
Requests the library deployment and common function
Is the NPDP certificate high in gold content?Compared to PMP?
The log causes these pits in the thread block, you have to guard against
判断语句_switch与case
Flutter 父子组件如何都能收到点击事件