Messages in this thread | | | Date | Fri, 11 Nov 2005 14:08:36 +0000 (GMT) | From | Anton Altaparmakov <> | Subject | Re: 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/
| |