md patches for 3.5: RAID10 reshape
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest10 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | md: allow a reshape operation to be reversed.drivers/ drivers/ drivers/ +1 more | +84 | 3 replies | |
| 2/10 | md: add possibility to change data-offset for devices.drivers/ drivers/ drivers/ +3 more | +225 | 0 replies | |
| 3/10 | md/raid5: Use correct data_offset for all IO.drivers/ | +59 | 0 replies | |
| 4/10 | md/raid5: allow for change in data_offset while managing a reshape.drivers/ drivers/ | +82 | 0 replies | |
| 5/10 | md/raid10: collect some geometry fields into a dedicated structure.drivers/ drivers/ | +111 | 0 replies | |
| 6/10 | md: teach sync_page_io about new_data_offset.drivers/ | +4 | 0 replies | |
| 7/10 | md: use resync_max_sectors for reshape as well as resync.drivers/ | +5 | 0 replies | |
| 8/10 | md/raid10: Introduce 'prev' geometry to support reshape.drivers/ drivers/ | +91 | 0 replies | |
| 9/10 | md/raid10: split out interpretation of layout to separate function.drivers/ | +52 | 0 replies | |
| 10/10 | md/raid10: add reshape supportdrivers/ drivers/ | +874 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [md PATCH 00/10] md patches for 3.5: RAID10 reshape
The following patches are now in my queue for 3.5.
(I may add some more, but to avoid patch-bombing I sending these
now as I think they are ready).
This is all about reshaping arrays and particularly RAID10.
As you probably know, RAID5 reshaping often needs a backup file. That is a pain for a number of reasons and is slow.
So RAID10 does it without a backup file.
This is achieved by modifying the data_offset during the reshape, so there is never any need to write data over data that is still live.
Eventually I'll make RAID5 reshape work this way too (optionally) however as 0.90 metadata doesn't allow data_offset to be changed, this is a v1.x feature only.
I have initial patches to support some of this with mdadm, but I don't know when they'll make it into a release. I have a very strong feeling that mdadm needs some major refactoring work before I can feel happy about it again, and that might have to come first, or at least it will not come last.
(I'll probably put the patches in my git tree sometime soon for experimentation).
Review/comments/etc always welcome.
You can find all of these in my 'for-next' branch (and so in linux-next in a day or so) if you would prefer to look at them that way.
Thanks,
NeilBrown
---
NeilBrown (10):
md/raid10: add reshape support
md/raid10: split out interpretation of layout to separate function. md/raid10: Introduce 'prev' geometry to support reshape.
md: use resync_max_sectors for reshape as well as resync.
md: teach sync_page_io about new_data_offset. md/raid10: collect some geometry fields into a dedicated structure. md/raid5: allow for change in data_offset while managing a reshape. md/raid5: Use correct data_offset for all IO.
md: add possibility to change data-offset for devices.
md: allow a reshape operation to be reversed.
drivers/md/md.c | 299 ++++++++++- drivers/md/md.h | 8 drivers/md/raid1.c | 4 drivers/md/raid10.c | 1236 ++++++++++++++++++++++++++++++++++++++++----- drivers/md/raid10.h | 35 + drivers/md/raid5.c | 206 +++++--- drivers/md/raid5.h | 6 include/linux/raid/md_p.h | 15 - 8 files changed, 1565 insertions(+), 244 deletions(-)
Signature · 1 line
Signature