谁懂raid5?3块硬盘做raid5,谁知道如果要再+一块,如何再添加

2024-11-25 21:28:37
推荐回答(2个)
回答1:

是什么系统?Linux的吗,下面是Linux的

如果我要移除一块坏的硬盘或添加一块硬盘如下:
#删除一块硬盘[root@localhost mdadm]# mdadm /dev/md0 –remove /dev/sdc1
mdadm: hot removed /dev/sdc1
[root@localhost mdadm]# cat /proc/mdstat
Personalities : [raid5]
md0 : active raid5 sdd1[2] sdb1[1] sda1[0]
2088192 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]unused devices: #增加一块硬盘[root@localhost mdadm]# mdadm /dev/md0 –add /dev/sdc1
mdadm: hot added /dev/sdc1
[root@localhost mdadm]# cat /proc/mdstat
Personalities : [raid5]
md0 : active raid5 sdc1[3] sdd1[2] sdb1[1] sda1[0]
2088192 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]unused devices:

over commit!

回答2:

raid扩容