Skip to content

rebuild / resync checkpointing and other external metadata fixes

Dan Williams linux-raid 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 of 13 patches 4 repliesIn review

12 of 13 patches are in this archive. The cover letter announces 13.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13imsm: catch attempt to auto-layout zero-length arrayssuper-intel.c+12 -90 replies
2/13imsm: honor orom constraints for auto-layoutsuper-intel.c+33 -190 replies
3/13imsm: fix spare promotionsuper-intel.c+1 -00 replies
4/13imsm: fix thunderdome segfaultsuper-intel.c+1 -10 replies
5/13util: fix devnum2devname for devnum == 0util.c+1 -10 replies
6/13imsm: cleanup print_imsm_dev()super-intel.c+10 -90 replies
7/13mdmon: cleanup manage_member() leakmanagemon.c+52 -330 replies
8/13mdmon: cleanup resync_startmanagemon.c mdmon.h monitor.c +2 more+16 -280 replies
10/13Introduce MaxSectorCreate.c mdadm.h monitor.c +3 more+12 -110 replies
11/13Teach sysfs_add_disk() callers to use ->recovery_start versus 'insync' parameterAssemble.c Manage.c managemon.c +5 more+17 -100 replies
12/13Support external metadata recovery-resumeAssemble.c Manage.c managemon.c +3 more+15 -60 replies
13/13imsm: add support for checkpointing via 'curr_migr_unit'bitmap.c mdadm.h super-intel.c +1 more+320 -340 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [mdadm PATCH 00/13] rebuild / resync checkpointing and other external metadata fixes

Hi Neil,

The latter half of this update consumes the new md/dev-XXX/recovery_start attribute for checkpointing and resuming resync/rebuild operations. It requires one more kernel patch [1] on top of 2.6.33-rc1 to ensure that mdmon sees the recovery state. One caveat is that we only get checkpoint events when the sync_action == idle, at array shutdown or as a part of 'mdadm --wait-clean --scan'.

The other bits are a collection of fixes to address unrelated issues discovered along the way. The result is pushed out to:

git://github.com:djbw/mdadm.git master

Please have a look.

Thanks,
Dan

[1]: http://marc.info/?l=linux-raid&m=126144478304488&w=2

---

Dan Williams (13):
imsm: catch attempt to auto-layout zero-length arrays
imsm: honor orom constraints for auto-layout
imsm: fix spare promotion
imsm: fix thunderdome segfault
util: fix devnum2devname for devnum == 0
imsm: cleanup print_imsm_dev()
mdmon: cleanup manage_member() leak
mdmon: cleanup resync_start
Add scaffolding for handling md/dev-XXX/recovery_start
Introduce MaxSector
Teach sysfs_add_disk() callers to use ->recovery_start versus 'insync' parameter Support external metadata recovery-resume
imsm: add support for checkpointing via 'curr_migr_unit'

 Create.c      |    2 
 Manage.c      |    1 
 bitmap.c      |    2 
 managemon.c   |   93 ++++++++----
 mdadm.h       |   27 +++-
 mdmon.h       |    7 -
 monitor.c     |   23 +--
 super-ddf.c   |   14 +-
 super-intel.c |  432 +++++++++++++++++++++++++++++++++++++++++++++++----------
 super1.c      |    6 -
 sysfs.c       |   15 ++
 util.c        |   24 +++
 12 files changed, 493 insertions(+), 153 deletions(-)