]> sourceware.org Git - lvm2.git/commit
lvconvert: add new reporting fields for reshaping
authorHeinz Mauelshagen <heinzm@redhat.com>
Wed, 1 Mar 2017 17:50:35 +0000 (18:50 +0100)
committerHeinz Mauelshagen <heinzm@redhat.com>
Wed, 1 Mar 2017 17:50:35 +0000 (18:50 +0100)
commit48778bc5038f0384bf0e6ad43bac048f6700637b
tree2b44b7830c273ee3f5711056a28cd3f34283889d
parent62abae1525cec51279c39c5127afaced8f0463e2
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
lib/report/columns.h
lib/report/properties.c
lib/report/report.c
test/shell/lvchange-raid.sh
test/shell/lvconvert-raid-reshape-linear_to_striped.sh
test/shell/lvconvert-raid-reshape-striped_to_linear.sh
test/shell/lvconvert-raid-reshape.sh
test/shell/lvconvert-raid-takeover.sh
This page took 0.039328 seconds and 5 git commands to generate.