Linux 常见 RAID 及软 RAID 创建(9)

16.再次查看状态。

[root@localhost ~]# cat /proc/mdstat Personalities : [raid1] [raid0] md10 : active raid0 md102[1] md101[0] 41871360 blocks super 1.2 512k chunks md102 : active raid1 sdd1[2] sde1[1] 20953088 blocks super 1.2 [2/1] [_U] [====>................] recovery = 23.8% (5000704/20953088) finish=1.2min speed=208362K/sec md101 : active raid1 sdb1[2] sdc1[1] 20953088 blocks super 1.2 [2/1] [_U] [======>..............] recovery = 32.0% (6712448/20953088) finish=1.1min speed=203407K/sec unused devices: <none> [root@localhost ~]# cat /proc/mdstat Personalities : [raid1] [raid0] md10 : active raid0 md102[1] md101[0] 41871360 blocks super 1.2 512k chunks md102 : active raid1 sdd1[2] sde1[1] 20953088 blocks super 1.2 [2/2] [UU] md101 : active raid1 sdb1[2] sdc1[1] 20953088 blocks super 1.2 [2/2] [UU] unused devices: <none> [root@localhost ~]# mdadm -D /dev/md101 /dev/md101: Version : 1.2 Creation Time : Sun Aug 25 16:53:00 2019 Raid Level : raid1 Array Size : 20953088 (19.98 GiB 21.46 GB) Used Dev Size : 20953088 (19.98 GiB 21.46 GB) Raid Devices : 2 Total Devices : 2 Persistence : Superblock is persistent Update Time : Sun Aug 25 17:07:28 2019 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 Consistency Policy : resync Name : localhost:101 (local to host localhost) UUID : 80bb4fc5:1a628936:275ba828:17f23330 Events : 45 Number Major Minor RaidDevice State 2 8 17 0 active sync /dev/sdb1 1 8 33 1 active sync /dev/sdc1 [root@localhost ~]# mdadm -D /dev/md102 /dev/md102: Version : 1.2 Creation Time : Sun Aug 25 16:53:23 2019 Raid Level : raid1 Array Size : 20953088 (19.98 GiB 21.46 GB) Used Dev Size : 20953088 (19.98 GiB 21.46 GB) Raid Devices : 2 Total Devices : 2 Persistence : Superblock is persistent Update Time : Sun Aug 25 17:07:36 2019 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 Consistency Policy : resync Name : localhost:102 (local to host localhost) UUID : 38abac72:74fa8a53:3a21b5e4:01ae64cd Events : 39 Number Major Minor RaidDevice State 2 8 49 0 active sync /dev/sdd1 1 8 65 1 active sync /dev/sde1 常用 RAID 间比较# 名称硬盘数量容量/利用率读性能写性能数据冗余
RAID0   N   N块总和   N倍   N倍   无,一个故障,丢失所有数据  
RAID1   N(偶数)   50%       写两个设备,允许一个故障  
RAID5   N≥3   (N-1)/N   ↑↑     计算校验,允许一个故障  
RAID6   N≥4   (N-2)/N   ↑↑   ↓↓   双重校验,允许两个故障  
RAID10   N(偶数,N≥4)   50%   (N/2)倍   (N/2)倍   允许基组中的磁盘各损坏一个  
一些话#

此篇涉及到的操作很简单,但是,有很多的查看占用了大量的篇幅,看关键点,过程都是一个套路,都是重复的。

linux

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/11780.html