Skip to contentSkip to conversation

Re: [Fwd: Re: mdadm: spare rebuilding]

Fwd: Re: mdadm: spare rebuilding Jon Buckingham 2 participants 2 messages Jul 3, 2008 – Jul 7, 2008 2 messages not in the archive MD RAID

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Hi Neil

So, a little while ago I did upgrade the kernel (2.6.22.18-0.2-default), but it did not seem to make any difference to the 'echo sync > /sys/block/md3/md/sync_action'.

After receiving your latest email, I did the following...

echo sync > /sys/block/md3/md/sync_action
(device busy reported to konsole as before)
echo idle > /sys/block/md3/md/sync_action
echo sync > /sys/block/md3/md/sync_action
(device busy reported to konsole as before)

Then checked "top" - and saw significant activity from md3_sync and md3_raid5 processes.
Also cat /proc/mdstat showed that a resync was actively happening, and sure enough, after a couple of hours I now have
4 active devices in the array!

So I suspect a combination of the new kernel and the "idle" sorted the problem, whatever it was.

Thanks!
And thanks for writing mdadm and for your support.

Jon B

Quoted 55 lines · NeilBrown
Quoted 1 line · Jon Buckingham

Hi Neil - any thoughts on how I can debug/fix this?

Sorry for the slow responses - I seem to have been very busy lately.

No, unmount isn't needed.
I cannot really imagine what is happening.
Maybe write "idle" to the sync_action file first, then try "sync", but that seems unlikely.

Maybe unmount, stop the array,
echo 0 > /sys/modules/md-mod/paramters/start_ro
and assemble that array again
mdadm -A /dev/md3 /dev/sd[abcd]4
and see if that helps.

Maybe try a newer kernel if that is an option.

NeilBrown

Quoted 32 lines

Thanks

Jon B

-------- Original Message --------
Subject: Re: mdadm: spare rebuilding
Date: Sat, 28 Jun 2008 20:42:56 +0100
From: Jon Buckingham <[email protected]>
Reply-To: [email protected]
To: Neil Brown <[email protected]>
CC: [email protected]
References: <[email protected]> <[email protected]>

Quoted 5 lines · Neil Brown

Maybe a bug that has since been fixed.
What happens if you
echo sync > /sys/block/md3/md/sync_action
??

nas:~ # echo sync > /sys/block/md3/md/sync_action
-bash: echo: write error: Device or resource busy

Should I unmount first?
Any other info?

Thanks

Jon B

#3 lore raw
Quoted 4 lines · On Thursday July 3, [email protected] wrote:

Hi Neil

So, a little while ago I did upgrade the kernel (2.6.22.18-0.2-default), but it did not seem to make any difference to the

I was thinking more like 2.6.25.
My guess is that the fix was
commit 25156198235325805cd7295ed694509fd6e3a29e
which is in 25-rc4.

Quoted 4 lines

'echo sync > /sys/block/md3/md/sync_action'.

After receiving your latest email, I did the following...

Quoted 8 lines

echo sync > /sys/block/md3/md/sync_action
(device busy reported to konsole as before)
echo idle > /sys/block/md3/md/sync_action
echo sync > /sys/block/md3/md/sync_action
(device busy reported to konsole as before)

Then checked "top" - and saw significant activity from md3_sync and md3_raid5 processes.

I think the resync thread was sort of "half-started". Writing 'idle'
killed it off, then it was automatically restarted and proceeded properly.

Thanks for reporting your success.

NeilBrown