I am running 12.4. I have a problem where when I try to run a repair on my mdadm array my machine locks up (so hard the reset button doesn't even react for 10-15 seconds). I found this post on the linux-raid mailing list earlier in 2013.
Then> Hi,
>
> When I run repair on an MD-RAID1 sync_action, the speed slows down and it
> stays like this (below) for hours.
>
> The system is then completely unresponsive to user input.
Hi Justin,
this is a known bug. Fix has been accepted into mainline for 3.11-rc2.
Hopefully it will get into 3.10.3 (too late for 3.10.2).
Neil Brown
Although I stay up with dist-upgrade on 12.04, my mdadm version is 3.2.6 so I obviously am far from having this fix. I am a windows developer by profession so I know how to use git, but nothing about patching the linux kernel, or the community workflow around development.> Did the fix by chance make it into 3.10.3?
No, it looks like it missed again. I gather there was a large inflow of
patches for -stable in the 3.11-rc1 merge window and Greg has been
processing
them in batches. Hopefully in 3.10.4.
The relevant patch is commit 30bc9b53878a9921b02e3 in mainline.
NeilBrown
--
Method to get patch via git and patch kernel:
$ git clone
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
$ git log |grep 30bc9b53878a9921b02e3
commit 30bc9b53878a9921b02e3b5bc4283ac1c6de102a
$ git show 30bc9b53878a9921b02e3b5bc4283ac1c6de102a > /tmp/a
# patch -p1 < /tmp/a
patching file drivers/md/raid1.c
Hunk #1 succeeded at 1848 (offset -1 lines).
Hunk #2 succeeded at 1886 (offset -1 lines).
Hunk #3 succeeded at 1915 (offset -1 lines).
Reboot- tested, success, thanks..!
So my question is what is the best way to get this fix on my server so I can do a check/repair on my array without locking it up? The mdadm webpage only shows releases to version 3.3, so I'm assuming I will have to check out a branch in git like above. I am not sure if the above example was used with ubuntu or if it even matters but I don't want to go out of my element mucking with the kernel without some advice.
Also, with whatever method is "best" how will it affect me doing dist-upgrades? (Should I not do them? Will they not work? Do I need to redo the patch afterwards?) Thanks
Bookmarks