How to interrupt software raid resync?
Posted
by
Adam5
on Server Fault
See other posts from Server Fault
or by Adam5
Published on 2010-12-27T19:20:39Z
Indexed on
2012/04/11
17:31 UTC
Read the original article
Hit count: 292
I want to interrupt a running resync operation on a debian squeeze software raid. (This is the regular scheduled compare resync. The raid array is still clean in such a case. Do not confuse this with a rebuild after a disk failed and was replaced.)
How to stop this scheduled resync operation while it is running? Another raid array is "resync pending", because they all get checked on the same day (sunday night) one after another. I want a complete stop of this sunday night resyncing.
[Edit: sudo kill -9 1010
doesn't stop it, 1010 is the PID of the md2_resync process]
I would also like to know how I can control the intervals between resyncs and the remainig time till the next one.
[Edit2: What I did now was to make the resync go very slow, so it does not disturb anymore:
sudo sysctl -w dev.raid.speed_limit_max=1000
taken from http://www.cyberciti.biz/tips/linux-raid-increase-resync-rebuild-speed.html
During the night I will set it back to a high value, so the resync can terminate.
This workaround is fine for most situations, nonetheless it would be interesting to know if what I asked is possible. For example it does not seem to be possible to grow an array, while it is resyncing or resyncing "pending"]
© Server Fault or respective owner