1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +03:00
Heinz Mauelshagen 48778bc503 lvconvert: add new reporting fields for reshaping
During an ongoing reshape, the MD kernel runtime reads stripes relative
to data_offset and starts storing the reshaped stripes (with new raid
layout and/or new stripesize  and/or new number of stripes) relative
to new_data_offset.  This is to avoid writing over any data in place
which is non-atomic by nature and thus be recoverable without data loss
in the transition.  MD uses the term out-of-place reshaping for it.

There's 2 other areas we don't have report capability for:
- number of data stripes vs. total stripes
  (e.g. raid6 with 7 stripes toal has 5 data stripes)
- number of (rotating) parity/syndrome chunks
  (e.g. raid6 with 7 stripes toal has 2 parity chunks; one
   per stripe for P-Syndrome and another one for Q-Syndrome)

Thus, add the following reportable keys:

- reshape_len      (in current units)
- reshape_len_le   (in logical extents)
- data_offset      (in sectors)
- new_data_offset  (     "    )
- data_stripes
- parity_chunks

Enhance lvchange-raid.sh, lvconvert-raid-reshape-linear_to_striped.sh,
lvconvert-raid-reshape-striped_to_linear.sh, lvconvert-raid-reshape.sh
and lvconvert-raid-takeover.sh to make use of new keys.

Related: rhbz834579
Related: rhbz1191935
Related: rhbz1191978
2017-03-01 18:50:35 +01:00
..
2016-02-25 16:40:58 +00:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-12-12 11:51:50 +01:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-09-09 20:59:21 +02:00
2016-01-21 12:11:37 +01:00
2016-12-11 23:24:19 +01:00
2017-02-13 08:20:10 -06:00
2017-01-21 17:42:19 +01:00
2017-02-06 13:15:39 +01:00
2016-02-23 09:28:48 -06:00
2017-02-13 08:20:10 -06:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-05-06 09:00:00 -05:00
2016-05-23 12:01:11 -05:00
2016-04-19 11:45:24 -05:00
2016-04-19 14:26:05 -05:00
2016-03-09 12:59:42 +01:00
2016-04-19 11:45:24 -05:00
2016-02-23 09:28:48 -06:00
2016-07-13 21:52:14 +02:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-01-21 12:11:37 +01:00
2016-01-21 12:11:37 +01:00
2016-05-06 09:00:00 -05:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-04-21 00:34:01 +02:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-12-22 23:37:07 +01:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2017-02-13 10:06:19 +01:00
2016-02-23 09:28:48 -06:00
2017-02-13 08:20:10 -06:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-05-06 09:00:00 -05:00
2016-02-23 09:28:48 -06:00
2017-01-06 21:51:36 +01:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-02-23 09:28:48 -06:00
2016-05-06 09:00:00 -05:00
2016-12-12 11:51:50 +01:00