linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] Reshape restart after filesystem pivot
@ 2011-09-27 12:04 Adam Kwolek
  2011-09-27 12:04 ` [PATCH 1/8] Do not continue reshape during initrd phase Adam Kwolek
                   ` (7 more replies)
  0 siblings, 8 replies; 16+ messages in thread
From: Adam Kwolek @ 2011-09-27 12:04 UTC (permalink / raw)
  To: neilb; +Cc: linux-raid, ed.ciechanowski, marcin.labun, dan.j.williams

This patch series (8) implements manual reshape restart/continuation
in the following scenario:

1. Condition:
   During system boot mdadm finds array under reshape that should be
   assembled. This happens while initramfs is mounted
   (before file system pivot)

2. Scenario:
 a) Assembly procedure assembles array and runs reshape continuation
    procedure (as usual). Reshape procedure continues reshape and during
    file system pivot lost file system context and mdadm cannot control
    reshape process using check-pointing
    To avoid this, reshape procedure is informed via '--freeze-reshape' option
    that currently system is in initrd phase (before file system pivot).
    Reshape restores critical section and prepares array for later reshape
    continuation (sets reshape position read from metadata checkpoint).
    At this moment mdadm finishes his work. Array is fully functional/accessible now.

    0001-Do-not-continue-reshape-during-initrd-phase.patch

 b) After system boot, user can manually invoke reshape continuation.
    New mdadm option '--continue' for grow command was added.
    This allows for reshape continuation. mdadm for reshape continuation
    uses parameters read from metadata. Command line can looks as follows:

      mdadm -G --continue device_name [--backup-file=file_name]

      where:
          device_name : device that reshape should be continued on
                        e.g. /dev/md/container_name or /dev/md/raid_name
          backup-file : optional parameter required when backup-file
                        was use previously for reshape execution


   For external metadata mdadm takes carry for metadata compatibility
   e.g. container operation can be continued on array device /and opposite/.

     0002-Add-continue-option-to-grow-command.patch
     0003-Do-not-restart-reshape-if-it-is-started-already.patch
     0004-Set-correct-reshape-restart-position.patch
     0005-Move-code-to-get_data_disks-function.patch
     0006-Verify-reshape-restart-position.patch

3. man update:
   The last 2 patches provides madam's man update for '--freeze-reshape' and
   '--continue' options.

     0007-Manual-update-for-continue-option.patch
     0008-Manual-update-for-continue-option.patch

Note: This series requires patch for throwing core dump by restore_backup() function:
     0001-FIX-restore_backup-throws-core-dump.patch

BR
Adam
    

---

Adam Kwolek (8):
      Manual update for --continue option
      Manual update for --continue option
      Verify reshape restart position
      Move code to get_data_disks() function
      Set correct reshape restart position
      Do not restart reshape if it is started already
      Add continue option to grow command
      Do not continue reshape during initrd phase


 Assemble.c    |   12 ++-
 Grow.c        |  236 ++++++++++++++++++++++++++++++++++++++++++++++++++++-----
 Incremental.c |   16 ++--
 ReadMe.c      |    2 
 mdadm.8.in    |   40 ++++++++++
 mdadm.c       |   47 +++++++++--
 mdadm.h       |   25 +++++-
 util.c        |   10 ++
 8 files changed, 341 insertions(+), 47 deletions(-)

-- 
Signature

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

end of thread, other threads:[~2011-10-02 23:09 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-27 12:04 [PATCH 0/8] Reshape restart after filesystem pivot Adam Kwolek
2011-09-27 12:04 ` [PATCH 1/8] Do not continue reshape during initrd phase Adam Kwolek
2011-10-02 22:19   ` NeilBrown
2011-09-27 12:04 ` [PATCH 2/8] Add continue option to grow command Adam Kwolek
2011-10-02 22:27   ` NeilBrown
2011-09-27 12:04 ` [PATCH 3/8] Do not restart reshape if it is started already Adam Kwolek
2011-10-02 22:41   ` NeilBrown
2011-09-27 12:05 ` [PATCH 4/8] Set correct reshape restart position Adam Kwolek
2011-10-02 22:56   ` NeilBrown
2011-09-27 12:05 ` [PATCH 5/8] Move code to get_data_disks() function Adam Kwolek
2011-10-02 22:58   ` NeilBrown
2011-09-27 12:05 ` [PATCH 6/8] Verify reshape restart position Adam Kwolek
2011-10-02 23:06   ` NeilBrown
2011-09-27 12:05 ` [PATCH 7/8] Manual update for --continue option Adam Kwolek
2011-09-27 12:05 ` [PATCH 8/8] " Adam Kwolek
2011-10-02 23:09   ` 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).