Thread (2 messages) 2 messages, 2 authors, 2008-12-15

Re: weird issues with raid1

flat view

From: Neil Brown <hidden>
Date: 2008-12-15 21:33:44

On Monday December 15, jnelson-linux-raid@jamponi.net wrote:
However, it raises a question: bitmaps are about 'resync' not
'recovery'?  How do they differ?
With resync, the expectation is that most of the device is correct.
The bitmap tells us which sectors aren't, and we just resync those.

With recover, the expectation is that the entire drive contains
garbage and it has to be recovered from beginning to end.

Each device has a flag to say where the device is in sync write the
array.  The bit map records which sectors of "in-sync" devices may not
actually in in-sync at the moment.
'resync' synchronises the 'in-sync' devices.
'recovery' synchronises a 'not-in-sync' device.b

quoted
quoted
Question 1:
I'm using a bitmap. Why does the rebuild start completely over?
Because the bitmap isn't used to guide a rebuild, only a resync.

The effect of --re-add is to make md do a resync rather than a rebuild
if the device was previously a fully active member of the array.
Aha!  This explains a question I raised in another email. What
happened there is a previously fully active member of the raid got
added, somehow, as a spare, via --incremental. That's when the entire
raid thought it needed to be rebuilt. How did that (the device being
treated as a spare instead of as a previously fully active member)
happen?
It is hard to guess without details, and they might be hard to collect
after the fact.
Maybe if you have the kernel logs of when the server rebooted and the
recovery started, that might contain some hints.

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