lkml.org 
[lkml]   [2005]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: How to speed up raid1 resync ?
On Fri, 11 Nov 2005, Nicolas Mailhot wrote:
> I'm performing various lvm/raid experiments on my system. As a result,
> I've trashed one of the two disks of a raid1 set. So now the raid is
> rebuilding, as soon as it finished I intend to retry experimenting
> (disconnect one drive in the raid set, experiment with the other, if big
> mistake replug the other one and sync with it).
>
> However mdmadm resync is dog slow (if gracefully backgrounded)

Just echo large numbers into both min and max resync speed proc entries:

/proc/sys/dev/raid/spped_limit_max and speed_limit_min

e.g. as root do:

echo 200000 > /proc/sys/dev/raid/speed_limit_max
echo 200000 > /proc/sys/dev/raid/speed_limit_min

And watch the speed fly up till it maxes out your hardware. (-:

The above will set both speeds to 200MiB/s which ought to be more than
your devices can do...

Best regards,

Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-11-11 15:11    [W:0.039 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site