实验二、软RAID搭建-基于linux系统搭建RAID1
实验要求:
1)创建RAID1;
2)添加一个热备盘
3模拟故障,自动顶替故障盘
4从raid1中移除故障盘
搭建:【创建-保存配置信息-查看阵列信息】
1.创建:mdadm -C -v /dev/md1 -l 1 -n 2 -x 1 /dev/sd[d,e,f][root@192 ~]# mdadm -C -v /dev/md1 -l 1 -n 2 -x 1 /dev/sd[d,e,f]mdadm: Note: this array has metadata at the start and
may not be suitable as a boot device. If you plan to
store '/boot' on this device please ensure that
your boot-loader understands md/v1.x metadata, or use --metadata=0.90
mdadm: size set to 20954112KContinue creating array? y
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md1 started.
2.保存阵列信息:mdadm -Dsv > /etc/mdadm.conf
3.查看阵列信息:mdadm -Dsv 或 mdadm -D /dev/md1
可以看到同步进度[root@192 ~]# mdadm -Dsv > /etc/mdadm.conf [root@192 ~]# mdadm -D /dev/md1/dev/md1:
Version : 1.2
Creation Time : Tue Dec 15 03:07:16 2020
Raid Level : raid1
Array Size : 20954112 (19.98 GiB 21.46 GB)
Used Dev Size : 20954112 (19.98 GiB 21.46 GB)
Raid Devices : 2
Total Devices : 3
Persistence : Superblock is persistent
Update Time : Tue Dec 15 03:08:49 2020
State : clean, resyncing
Active Devices : 2
Working Devices : 3
Failed Devices : 0
Spare Devices : 1
Consistency Policy : resync
Resync Status : 35% complete
Name : 192.168.74.128:1 (