当前位置:网站首页>raid磁盘阵列
raid磁盘阵列
2022-07-28 05:28:00 【光的方向79】
目录
RAID磁盘陈列
是Redundant Array ofIndependent Disks的缩写,中文简称为独立冗余磁盘阵列
常用的RAID级别
RAID0,RAID1,RAID5,RAID6,RAID1+0等

raid 0
raid 0连续以位或字节为单位分割数据,并行读/写于多个磁盘上,因此具有很高的数据传输率,但它没有数据冗余
raid 0只是单纯地提高性能,并没有为数据的可靠性提供保证,而且其中的一个磁盘失效将影响到所有数据
raid 0不能应用于数据安全性要求高的场合
raid 0的特点
最少需要两块磁盘
数据条带分布式
没有冗余,性能最佳(不存储镜像、校验信息)
不能应用于对数据安全性要求高的场合
raid 1的特点
最少需要两块磁盘
提供数据冗余(提供备份)
性能好
raid 5
N(N≥3)块盘组成阵列,一份数据产生N-1个条带,同时还有一份校验数据,共N份数据在N块盘上循环均衡存储
N块盘同时读写,读性能很高,但由于有校验机制的问题,写性能相对不高
(N-1)/N 磁盘利用率
可靠性高,允许坏一块盘,不影响所有数据
raid 5的特点
最少3块磁盘
数据条带形式分布
以奇偶校验作冗余
适合多读少写的情景,是性能与数据冗余最佳的折中方案
raid 6
N(N≥4)块盘组成阵列,(N-2)/N 磁盘利用率
与raid 5相比,raid 6增加了第二块独立的奇偶校验信息块
两个独立的奇偶系统使用不同的算法,即使两块磁盘同时失效也不会影响数据的使用
相对于raid 5有更大的“写损失”,因此写性能较差
raid 1+0(先做镜象,再做条带)
N (偶数,N>=4)。块盘两两镜像后,再组合成一个raid 0
N/2磁盘利用率
N/2块盘同时写入,N块盘同时读取
性能高,可靠性高
raid 1+0的特点
最少4块磁盘
先按raid 0 分成两组,再分别对两组按raid1 方式镜像
兼顾冗余(提供镜像存储)和性能(数据条带形式分布)
在实际应用中较为常用
实验
首先fdisk -l查看一下添加到磁盘


对四快盘划分主分区

安装mdadm(已经安装的需要yum更新)


创建并查看raid5

查看磁盘详细信息

创建新目录,格式化后进行挂载


尝试让一块盘故障,看空闲盘是否能够代替故障盘

创建并查看raid0
划分主区以及mdadm参考raid5
边栏推荐
- 什么是线性表?
- MySQL主从
- Initializingbean interface and examples
- What is the good brand of air conduction Bluetooth headset and the best brand recommendation of air conduction headset
- JS逆向100题——第1题
- Dynamic planning -- multi-step stair climbing (advanced version of stair climbing)
- Scratch command
- [c language] - step by step to achieve minesweeping games
- Qgraphicsview promoted to qchartview
- Technology sharing | interface testing value and system
猜你喜欢

Compilation and preprocessing of C language

QGraphicsView提升为QChartView

思寒漫谈测试人职业发展

About the collation of shader keyword

What's a good gift for Tanabata? Niche and advanced product gift recommendation

VMware Workstation 配置net模式

SSAO by computer shader (I)
![Implementation of simple address book in [c language]](/img/75/8f2f4dd1c166808047cda6bea5a746.png)
Implementation of simple address book in [c language]

Redis cache design and performance optimization

Leetcode brush question diary sword finger offer II 055. binary search tree iterator
随机推荐
Initializingbean interface and examples
数组转链表
Graphic pipeline foundation (II)
mongoDB快速入门
Lancher deployment practice
HDU-1097-A hard puzzle(快速幂)
[c language] - step by step to achieve minesweeping games
Mongodb quick start
Question skimming record - hash table
[C language] dynamic memory management
[pta-- use queues to solve the problem of monkeys choosing kings]
Graphic pipeline foundation (I)
Compilation and preprocessing of C language
HDU-1159-CommonSubsequence(LCS最长公共子序列)
mysql索引优化
redis实现分布式锁思路及redission分布式锁主流程分析
[the beginning of self redemption]
设计测试用例的方法
HDU-5806-NanoApeLovesSequenceⅡ(尺取法)
Small tips