linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* "bitmap file is out of date, doing full recovery"
@ 2014-10-12 18:03 Alexander Lyakas
  2014-10-12 22:24 ` NeilBrown
  0 siblings, 1 reply; 7+ messages in thread
From: Alexander Lyakas @ 2014-10-12 18:03 UTC (permalink / raw)
  To: linux-raid; +Cc: Neil Brown

Hi Neil,
after a 2-drive raid1 unclean shutdown (crash actually), after reboot, we had:

md/raid1:md24: not clean -- starting background reconstruction
md/raid1:md24: active with 2 out of 2 mirrors
md24: bitmap file is out of date (41 < 42) -- forcing full recovery
created bitmap (22 pages) for device md24
md24: bitmap file is out of date, doing full recovery
md24: bitmap initialized from disk: read 2 pages, set 44667 of 44667 bits

The superblock of both drives had event count = 42:
(this is a custom mdadm with some added prints):
mdadm: looking for devices for /dev/md24
mdadm: [/dev/md24] /dev/dm-205: slot=0, events=42,
recovery_offset=N/A, resync_offset=0, comp_size=5854539776
mdadm: [/dev/md24] /dev/dm-206: slot=1, events=42,
recovery_offset=N/A, resync_offset=0, comp_size=5854539776

But the bitmap superblock had lower event count, which resulted in a
full resync. Is this an expected scenario in case of a crash?

For example in md_update_sb, first we call
bitmap_update_sb(mddev->bitmap), which synchronously updates the
bitmap, and only afterwards we go ahead and update our superblocks. So
in this case, the bitmap should not have a lower event count. Is there
some other valid scenario, in which the bitmap can remain with a lower
event count?

Thanks,
Alex.

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

end of thread, other threads:[~2014-12-16 22:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-12 18:03 "bitmap file is out of date, doing full recovery" Alexander Lyakas
2014-10-12 22:24 ` NeilBrown
2014-10-23 16:04   ` Alexander Lyakas
2014-10-28 23:19     ` NeilBrown
2014-11-04  9:17       ` Alexander Lyakas
2014-12-14 12:11         ` Alexander Lyakas
2014-12-16 22:26           ` NeilBrown

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).