试图增长后,软件RAID5以0K /秒的速度重塑

我有一个RAID5arrays,我试图增加一个磁盘来增长arrays,它似乎卡住了。 我发现在类似的问题上的所有types的线程,但似乎无法find一个明确的解决办法。

基本上,我这样做了:

mdadm --grow --raid-devices=6 --backup-file=/root/grow_md0.bak /dev/md0 

现在,我得到:

 [root@server ~]# cat /proc/mdstat Personalities : [raid6] [raid5] [raid4] md0 : active raid5 sdg1[7] sde1[3] sdd1[5] sdc1[6] sda1[2] sdb1[0] 15627540480 blocks super 1.2 level 5, 512k chunk, algorithm 2 [6/6] [UUUUUU] [>....................] reshape = 0.0% (4096/3906885120) finish=362200428.2min speed=0K/sec 

注意0k /秒的速度。 现在,4096最初是1024.我尝试了这个build议:

 mdadm --grow --continue --backup-file=/root/grow_md0.bak /dev/md0 

其中1024到2048年,但没有别的。

我也注意到在这一点上,/ /root/grow_md0.bak甚至不存在。 其他一些“继续”的尝试让我高达4096,但仅此而已。

其他信息:

 [root@server ~]# cat /sys/block/md0/md/stripe_cache_size 643 [root@server ~]# cat /sys/block/md0/md/sync_min 0 [root@server ~]# cat /sys/block/md0/md/sync_max 8192 [root@server ~]# cat /sys/block/md0/md/sync_speed 0 [root@server ~]# cat /proc/sys/dev/raid/speed_limit_min 50000 [root@server ~]# cat /proc/sys/dev/raid/speed_limit_max 200000 [root@server ~]# dmesg |grep md [ 2734.805157] md: md_do_sync() got signal ... exiting [ 2735.071850] md: reshape of RAID array md0 [ 2735.071854] md: minimum _guaranteed_ speed: 50000 KB/sec/disk. [ 2735.071855] md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for reshape. [ 2735.071860] md: using 128k window, over a total of 3906885120k. [ 2766.527554] md: md_do_sync() got signal ... exiting [ 2766.578718] md: reshape of RAID array md0 [ 2766.578722] md: minimum _guaranteed_ speed: 50000 KB/sec/disk. [ 2766.578723] md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for reshape. [ 2766.578728] md: using 128k window, over a total of 3906885120k. [ 2950.824300] md: md_do_sync() got signal ... exiting [ 2950.874411] md: reshape of RAID array md0 [ 2950.874418] md: minimum _guaranteed_ speed: 50000 KB/sec/disk. [ 2950.874420] md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for reshape. [ 2950.874427] md: using 128k window, over a total of 3906885120k. [ 2974.287731] md: md_do_sync() got signal ... exiting [ 2974.365615] md: reshape of RAID array md0 [ 2974.365620] md: minimum _guaranteed_ speed: 50000 KB/sec/disk. [ 2974.365621] md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for reshape. [ 2974.365625] md: using 128k window, over a total of 3906885120k. 

这里会改变什么有用吗? 我碰到speed_limit_min达到50000,但是这似乎并没有让我在任何地方,因为它卡住了,不慢。

编辑我已经尝试更新stripe_cache_size到16384无济于事。

所以经过一番search之后,我终于碰到了这个链接: https : //www.spinics.net/lists/raid/msg45107.html

确定了这样做:

 echo max > /sys/block/md0/md/sync_max 

哪一个踢了同步齿轮。 希望这可以帮助其他人寻找答案。