LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How can I speed up a RAID 5 grow operation? (https://www.linuxquestions.org/questions/linux-server-73/how-can-i-speed-up-a-raid-5-grow-operation-660784/)

damiendusha 08-06-2008 01:31 AM

How can I speed up a RAID 5 grow operation?
 
Hello all,

I am growing my RAID array again.

It consists of 4x500GB in RAID 5, growing to 5x500GB in RAID 5.

Unfortunately, at its current rate, it is going to take forever:

Code:

damien@mediabox:~$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid5 sda1[4] sdc1[0] sdd1[3] sde1[2] sdb1[1]
      1465151808 blocks super 0.91 level 5, 64k chunk, algorithm 2 [5/5] [UUUUU]
      [>....................]  reshape =  0.4% (2039168/488383936) finish=7388.0min speed=1094K/sec

unused devices: <none>

That is, assuming it stays at 1100KB/s, then it will about about 21 days to complete.

Given that I'd rather not wait that long, is there any way to speed it up?

I have seen fleeting references to:
Code:

damien@mediabox:~$ cat /proc/sys/dev/raid/speed_limit_min
1000
damien@mediabox:~$ cat /proc/sys/dev/raid/speed_limit_max
200000

But I have no idea what numbers should go in there, or even what the limits mean.

Cheers
Damien.

kenoshi 08-06-2008 07:02 PM

Those numbers mean what they say, in kilobytes per second. As far as your array is concerned, it also depends on your drive speed, controller, and peripheral bus used.

Upping the max value won't do anything, as your system will never reach that value unless you got some 4G FC attached DA or SAN storage on 4x or above PCI-E, which doesn't seem to be the case.

Instead, up the minimum. Try the following value:

Code:

echo 50000 > /proc/sys/dev/raid/speed_limit_min
YMMV...this may not work on some older kernels.


All times are GMT -5. The time now is 08:43 AM.