LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 08-06-2008, 02:31 AM   #1
damiendusha
LQ Newbie
 
Registered: Jun 2006
Location: Brisbane, Australia
Distribution: Ubuntu 8.04
Posts: 21

Rep: Reputation: 15
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.
 
Old 08-06-2008, 08:02 PM   #2
kenoshi
Member
 
Registered: Sep 2007
Location: SF Bay Area, CA
Distribution: CentOS, SLES 10+, RHEL 3+, Debian Sarge
Posts: 159

Rep: Reputation: 32
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.

Last edited by kenoshi; 08-06-2008 at 08:04 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RAID 5 mdadm --grow interrupted - what to do next? damiendusha Linux - Server 9 03-18-2010 10:02 PM
LXer: Linux desktops grow and grow and grow LXer Syndicated Linux News 0 11-23-2007 02:00 PM
RAID grow time? DavidDiggs Linux - Server 17 11-14-2007 10:19 AM
How can I grow my existing software raid 1? sn_kp Linux - Hardware 0 07-23-2007 06:38 AM
using mdadm to grow an existing RAID 1 array kevburger Linux - Hardware 1 08-18-2005 09:17 AM


All times are GMT -5. The time now is 11:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration