linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* interrupted resync not restarted properly?
@ 2010-12-07 20:37 Dailey, Nate
  2010-12-09  3:16 ` Neil Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Dailey, Nate @ 2010-12-07 20:37 UTC (permalink / raw)
  To: linux-raid

It seems to me that resuming an interrupted resync doesn't always work
right... here's what I'm doing (kernel 2.6.36):

- start with a 2 disk raid1 with internal bitmap
- fail/remove one disk and zero the superblock
- add the disk to the raid1
- before resync completes, fail/remove the disk again
- re-add the disk again

For version 0 superblocks, this works the way I'd expect: on adding the
disk the second time, the resync continues (or restarts from the
beginning, not sure).

But for version 1 superblocks, on adding the disk the second time, the
resync completes immediately, leaving some part of the array
out-of-sync.

Should there be something in the v1 superblock to prevent this?

If the raid1 is stopped in the middle of the resync (instead of removing
the target disk) the resync is resumed correctly on re-assembly with
both devices.

Nate


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-09 16:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-07 20:37 interrupted resync not restarted properly? Dailey, Nate
2010-12-09  3:16 ` Neil Brown
2010-12-09 16:53   ` Dailey, Nate

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).