当前位置:网站首页>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.conf
Enter 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
边栏推荐
猜你喜欢
There are a lot of 4T hard drives remaining, prompting "No space left on device" insufficient disk space
The underlying mechanism of the class
8.04 Day35-----MVC three-tier architecture
Qt produces 18 frames of Cupid to express his love, is it your Cupid!!!
Flutter学习三-Flutter基本结构和原理
Analyses the mainstream across technology solutions
WPF中DataContext作用
for..in和for..of的区别
MySQL Foundation (1) - Basic Cognition and Operation
请写出SparkSQL语句
随机推荐
软件管理rpm
狗仔队:表面编辑多视点图像处理
flex布局青蛙游戏通关攻略
8.04 Day35-----MVC three-tier architecture
一篇博客通关Redis技术栈
[informix] Resolving startup errors and solutions
How can Flutter parent and child components receive click events
密码学系列之:PEM和PKCS7,PKCS8,PKCS12
Analyses the mainstream across technology solutions
LAB Semaphore Implementation Details
Flutter学习2-dart学习
uva1325
jvm three heap and stack
Mvi架构浅析
使用二维码解决固定资产管理的难题
C++ core programming
Understanding and use of C# on set() and get() methods
uboot enable debug printing information
Structured light 3D reconstruction (1) Striped structured light 3D reconstruction
[Surveying] Quick Summary - Excerpt from Gaoshu Gang