linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] fixes for manually-added spares in raid5 (2nd)
@ 2011-01-14 12:59 Adam Kwolek
  2011-01-14 13:00 ` [PATCH 1/2] md/raid5: FIX: manually-added spare is not used Adam Kwolek
  2011-01-14 13:00 ` [PATCH 2/2] md/raid5: FIX: reshape on degraded devices has wrong configuration Adam Kwolek
  0 siblings, 2 replies; 14+ messages in thread
From: Adam Kwolek @ 2011-01-14 12:59 UTC (permalink / raw)
  To: neilb; +Cc: linux-raid, dan.j.williams, ed.ciechanowski, wojciech.neubauer

NOTE: this series is resent due to lack of check-patch in previous series.

After patch "md/raid6: handle manually-added spares in start_reshape." spares with set slot are almost used by md for raid5 reshape.
It works this way: before and after reshape process disks number in array is the same, new disks are not used during reshape process.
This is addressed by first patch.

Second problem I've found is for degraded arrays (i.e. takeovered raid0). Scenario is as follow:
1. Create raid0 array using 2 disks
2. add 2 spare disks to container
3. expand capacity to 4 disks in array

In result we will get raid0 build on 3 disks with one spare disk. this is due to fact that disk degradataion is not used for comparing disks slot number (disk used for
degraded slot is considered as present in array) This is addressed by second patch.

BR
Adam


---

Adam Kwolek (2):
      md/raid5: FIX: reshape on degraded devices has wrong configuration
      md/raid5: FIX: manually-added spare is not used


 drivers/md/raid5.c |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

-- 
Signature

^ permalink raw reply	[flat|nested] 14+ messages in thread
* [PATCH 0/2] fixes for manually-added spares in raid5
@ 2011-01-14 12:38 Adam Kwolek
  2011-01-14 12:38 ` [PATCH 1/2] md/raid5: FIX: manually-added spare is not used Adam Kwolek
  0 siblings, 1 reply; 14+ messages in thread
From: Adam Kwolek @ 2011-01-14 12:38 UTC (permalink / raw)
  To: neilb; +Cc: linux-raid, dan.j.williams, ed.ciechanowski, wojciech.neubauer

After patch "md/raid5: handle manually-added spares in start_reshape." spres with set slot are almost used by md for raid5 reshape.
It works this way: before and after reshape process disks number in array is the same, new disks are not used during reshape process.
This is addressed by first patch.

Second problem I've found is for degraded arrays (i.e. takeovered raid0). Scenario is as follow:
1. Create raid0 array using 2 disks
2. add 2 spare disks to container
3. expand capacity to 4 disks in array

In result we will get raid0 build on 3 disks with one spare disk. this is due to fact that disk degradataion is not used
for comparing disks slot number (disk used for degraded slot is considered as present in array)
This is addressed by second patch.

BR
Adam


---

Adam Kwolek (2):
      md/raid5: FIX: reshape on degraded devices has wrong configuration
      md/raid5: FIX: manually-added spare is not used


 drivers/md/raid5.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

-- 
Signature

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

end of thread, other threads:[~2011-01-20 10:15 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-14 12:59 [PATCH 0/2] fixes for manually-added spares in raid5 (2nd) Adam Kwolek
2011-01-14 13:00 ` [PATCH 1/2] md/raid5: FIX: manually-added spare is not used Adam Kwolek
2011-01-16 23:11   ` NeilBrown
2011-01-16 23:28     ` NeilBrown
2011-01-17  0:44       ` NeilBrown
2011-01-17 14:13         ` Kwolek, Adam
2011-01-19 20:48           ` NeilBrown
2011-01-20  8:29             ` Kwolek, Adam
2011-01-20  9:30               ` NeilBrown
2011-01-20  9:40                 ` Kwolek, Adam
2011-01-20 10:15                   ` NeilBrown
2011-01-14 13:00 ` [PATCH 2/2] md/raid5: FIX: reshape on degraded devices has wrong configuration Adam Kwolek
2011-01-16 23:30   ` NeilBrown
  -- strict thread matches above, loose matches on Subject: below --
2011-01-14 12:38 [PATCH 0/2] fixes for manually-added spares in raid5 Adam Kwolek
2011-01-14 12:38 ` [PATCH 1/2] md/raid5: FIX: manually-added spare is not used 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).