显示磁盘阵列的组成情况,5个块设备组成:
root@bak:~# cat /proc/mdstat
Personalities : [raid1] [raid6] [raid5] [raid4]
md1 : active raid5 sdc6[5] sde6[7] sda6[10] sdb6[9] sdf6[8]
3860156416 blocks super 1.2 level 5, 512k chunk, algorithm 2 [5/5] [UUUUU]
把/dev/sdd5增加进阵列/dev/md1:
root@bak:~# mdadm --add /dev/md1 /dev/sdd5
mdadm: added /dev/sdd5
把raid5阵列/dev/md1修改为6个块设备:
root@bak:~# mdadm --grow /dev/md1 -n6
mdadm: Need to backup 10240K of critical section..
再显示*下磁盘阵列的组成情况,现在/dev/md1是6个块设备组成,完成扩容,还需要1371分钟。
root@bak:~# cat /proc/mdstat
Personalities : [raid1] [raid6] [raid5] [raid4]
md1 : active raid5 sdd5[6] sdc6[5] sde6[7] sda6[10] sdb6[9] sdf6[8]
3860156416 blocks super 1.2 level 5, 512k chunk, algorithm 2 [6/6] [UUUUUU]
[>....................] reshape = 0.1% (1086988/965039104) finish=1371.4min speed=11714K/sec
root@bak:~#