Linux RAID Resync and LVM
I hope that somebody can offer some suggestions to counteract an issue that I am having.
I have a server ( a little low on memory, I think ) that is trying to do a resync on a Raid 1 disk pair that is under my LVM. Unfortunately, this is killing performance on the server, and the people that I serve are working to a hard deadline.
Is there any way ( what is the procedure ) to "pause" the resync ( yes I know that this is a BAD idea, but it is currently forecast to take another 12 - 18 hours ) so that I can either restart or resume it in a day or two when the deadline has passed?
Configuration:
/dev/md4 = /dev/hde1 ( disk 0 ), /dev/hdg1 ( disk 1 )
/dev/mapper/VGProjectData-lvol1 ( 1-4 ) built on /dev/md4.
I can mount and unmount the LVM partitions, but raidstop just comes back with the "help" message.
Help!
Thank you,
Brian
Quoted 4 lines · Brian McCullough
Is there any way ( what is the procedure ) to "pause" the resync ( yes I know that this is a BAD idea, but it is currently forecast to take another 12 - 18 hours ) so that I can either restart or resume it in a day or two when the deadline has passed?
slow it, reduce the numbers in:/proc/sys/dev/raid/speed_limit_max/proc/sys/dev/raid/speed_limit_min
Signature · 6 lines
Luca Berra -- [email protected] Communication Media & Services S.r.l. /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \
Quoted 3 lines · Luca Berra
slow it, reduce the numbers in:
/proc/sys/dev/raid/speed_limit_max/proc/sys/dev/raid/speed_limit_min
Luca,
You are a life saver! I did as you suggested and the machine is usable again.
( It will take a bit longer to resync but I will turn the numbers back up when we get past the deadline. )
Brian