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

Re: weird issues with raid1

From: Neil Brown <hidden>
Date: 2008-12-18 05:43:05

On Monday December 15, neilb@suse.de wrote:
quoted
No matter how long I wait, until it is rebuilt, the bitmap on /dev/sda
is always 100% dirty.
If I --fail, --remove (twice) /dev/sda, and I re-add /dev/sdd1, it
clearly uses the bitmap and re-syncs in under 1 second.
Yes, there is a bug here.
When an array recovers on to a hot space it doesn't copy the bitmap
across.  That will only happen lazily as bits are updated.
I'm surprised I hadn't noticed that before, so they might be more to
this than I'm seeing at the moment.   But I definitely cannot find
code to copy the bitmap across.  I'll have to have a think about
that. 
There isn't a bug here, I was wrong.

We don't update the bitmap on recovery until the recovery is
complete.  Once it is complete we do (as you notice) update it all at
once.
This is correct behaviour because until the recovery is complete, the
new device isn't really part of the array so the bitmap on it doesn't
mean anything.  As soon as the array is flagged as 'InSync' we update
the bitmap on it.

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