From Linux Raid Wiki
Revision as of 16:28, 11 August 2010 by BobBagwill (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

When a device is hot-added to a raid array, the data on that device will not be synchronised with the other devices. The kernel begins to scan the original devices and writes the correct blocks to the new device. This process is known as resyncing.

Most Debian and Debian-derived distributions create a cron job which issues an array check at 0106 hours each first Sunday of the month in /etc/cron.d/mdadm. This task appears as resync in /proc/mdstat and syslog. So if you suddenly see RAID-resyncing for no apparent reason, this might be a place to take a look.

Normally the kernel will throttle the resync activity (c.f. nice) to avoid impacting the raid device performance.

There are times when you may want to control how much I/O bandwidth is allocated to the resync and this is done by writing values to


So to limit the maximum speed at which RAID reconstruction is performed to 5 Mb/s:

 echo 5000 > /proc/sys/dev/raid/speed_limit_max

see also: IOSchedulers

Personal tools