linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/14] Series short description
@ 2011-09-16 11:53 Adam Kwolek
  2011-09-16 11:53 ` [PATCH 01/14] Stop array reshape when mounted initramfs is detected Adam Kwolek
                   ` (13 more replies)
  0 siblings, 14 replies; 31+ messages in thread
From: Adam Kwolek @ 2011-09-16 11:53 UTC (permalink / raw)
  To: neilb; +Cc: linux-raid, ed.ciechanowski, marcin.labun

This patch series (14) 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 cannot control process
    using check-pointing
    To avoid this now reshape procedure detects that initramfs is mounted
    (before pivot) and reshape critical section is restored and array
    is prepared for reshape only. At this point mdadm finishes his work
    for this array and array is fully functional/accessible now.

        0001-Stop-array-reshape-when-mounted-initramfs-is-detecte.patch
        0002-Stop-container-reshape-while-using-initramfs.patch
        0003-FIX-Do-not-unblock-array-accidentally.patch
        0007-FIX-Memory-leak-during-Assembly.patch

 b) Afters system boot user manually can 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 oposit/.

       0004-Add-continue-option-to-grow-command.patch
       0005-Add-Grow_continue_command.patch
       0006-Check-and-run-mdmon.patch
       0007-FIX-Memory-leak-during-Assembly.patch
       0008-Check-if-reshape-can-be-restarted.patch
       0009-Move-restore-backup-code-to-function.patch
       0010-Perform-restore-backup-for-reshape-continuation.patch
       0011-Add-possibility-to-restart-reshape-for-native-metada.patch
       0012-Early-reshape-backup-verification.patch
       0013-Check-if-md-allows-to-control-reshape.patch

3. man update:
   The last patch provides madam's man update for '--continue' grow option
       0014-Manual-update-for-continue-option.patch
BR
Adam

---

Adam Kwolek (14):
      Manual update for --continue option
      Check if md allows to control reshape
      Early reshape backup verification
      Add possibility to restart reshape for native metadata
      Perform restore backup for reshape continuation
      Move restore backup code to function
      Check if reshape can be restarted
      FIX: Memory leak during Assembly
      Check and run mdmon
      Add Grow_continue_command
      Add continue option to grow command
      FIX: Do not unblock array accidentally
      Stop container reshape while using initramfs
      Stop array reshape when mounted initramfs is detected


 Assemble.c |   39 +-------
 Grow.c     |  290 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 ReadMe.c   |    1 
 mdadm.8.in |   24 +++++
 mdadm.c    |   24 +++++
 mdadm.h    |   14 +++
 sysfs.c    |   10 ++
 util.c     |   59 ++++++++++++
 8 files changed, 419 insertions(+), 42 deletions(-)

-- 
Signature

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

end of thread, other threads:[~2011-09-21  7:51 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-16 11:53 [PATCH 00/14] Series short description Adam Kwolek
2011-09-16 11:53 ` [PATCH 01/14] Stop array reshape when mounted initramfs is detected Adam Kwolek
2011-09-19 10:42   ` NeilBrown
2011-09-19 11:14     ` Kwolek, Adam
2011-09-16 11:54 ` [PATCH 02/14] Stop container reshape while using initramfs Adam Kwolek
2011-09-16 11:54 ` [PATCH 03/14] FIX: Do not unblock array accidentally Adam Kwolek
2011-09-21  2:19   ` NeilBrown
2011-09-16 11:54 ` [PATCH 04/14] Add continue option to grow command Adam Kwolek
2011-09-21  2:22   ` NeilBrown
2011-09-21  7:47     ` Kwolek, Adam
2011-09-16 11:54 ` [PATCH 05/14] Add Grow_continue_command Adam Kwolek
2011-09-16 11:54 ` [PATCH 06/14] Check and run mdmon Adam Kwolek
2011-09-16 11:54 ` [PATCH 07/14] FIX: Memory leak during Assembly Adam Kwolek
2011-09-21  2:23   ` NeilBrown
2011-09-16 11:54 ` [PATCH 08/14] Check if reshape can be restarted Adam Kwolek
2011-09-21  2:27   ` NeilBrown
2011-09-21  7:45     ` Kwolek, Adam
2011-09-16 11:54 ` [PATCH 09/14] Move restore backup code to function Adam Kwolek
2011-09-21  2:28   ` NeilBrown
2011-09-16 11:55 ` [PATCH 10/14] Perform restore backup for reshape continuation Adam Kwolek
2011-09-21  2:29   ` NeilBrown
2011-09-21  7:35     ` Kwolek, Adam
2011-09-16 11:55 ` [PATCH 11/14] Add possibility to restart reshape for native metadata Adam Kwolek
2011-09-16 11:55 ` [PATCH 12/14] Early reshape backup verification Adam Kwolek
2011-09-21  2:31   ` NeilBrown
2011-09-21  7:33     ` Kwolek, Adam
2011-09-16 11:55 ` [PATCH 13/14] Check if md allows to control reshape Adam Kwolek
2011-09-21  2:33   ` NeilBrown
2011-09-21  7:31     ` Kwolek, Adam
2011-09-21  7:51       ` NeilBrown
2011-09-16 11:55 ` [PATCH 14/14] Manual update for --continue option Adam Kwolek

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