Thread (8 messages) 8 messages, 4 authors, 2012-10-03

Re: RAID6 rebuild stuck

flat view

From: Chris Murphy <hidden>
Date: 2012-10-02 01:50:12

On Oct 1, 2012, at 5:29 AM, Brian Candler wrote:
So mdstat says that recovery is ongoing, when clearly it isn't. I'm not sure
what I should do next.  Should I just hot-swap sdg, or should I reboot to
clear the stuck /proc/mdstat status?
It might be superfluous, but looks like you should be able to to stop the resync/repair by using:

echo idle  > md/sync_action

In any case you need to fail the drive, if it hasn't already been rejected again, and remove the drive from the array.

mdadm /dev/md1 --fail /dev/sdg
mdadm /dev/md1 --remove /dev/sdg

Replace the drive - i.e. physically remove the bad one, and replace it with a good one. You'll need to find out what its designation is to add it:

mdadm /dev/md1 --add /dev/sdX

You should start getting a resync right away.

Chris Murphy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help