1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/device_mapper
Zdenek Kabelac b4212be2e7 thin: improve 16g support for thin pool metadata
Initial support for thin-pool used slightly smaller max size 15.81GiB
for thin-pool metadata. However the real limit later settled at 15.88GiB
(difference is ~64MiB - 16448 4K blocks).

lvm2 could not simply increase the size as it has been using hard cropping
of the loaded metadata device to avoid warnings printing warning of kernel
when the size was bigger (i.e. due to bigger extent_size).

This patch adds the new lvm.conf configurable setting:
allocation/thin_pool_crop_metadata
which defaults to 0 -> no crop of metadata beyond 15.81GiB.
Only user with these sizes of metadata will be affected.

Without cropping lvm2 now limits metadata allocation size to 15.88GiB.
Any space beyond is currently not used by thin-pool target.
Even if i.e. bigger LV is used for metadata via lvconvert,
or allocated bigger because of to large extent size.

With cropping enabled (=1) lvm2 preserves the old limitation
15.81GiB and should allow to work in the evironement with
older lvm2 tools (i.e. older distribution).

Thin-pool metadata with size bigger then 15.81G is now using CROP_METADATA
flag within lvm2 metadata, so older lvm2 recognizes an
incompatible thin-pool and cannot activate such pool!

Users should use uncropped version as it is not suffering
from various issues between thin_repair results and allocated
metadata LV as thin_repair limit is 15.88GiB
Users should use cropping only when really needed!

Patch also better handles resize of thin-pool metadata and prevents resize
beoyond usable size 15.88GiB. Resize beyond 15.81GiB automatically
switches pool to no-crop version. Even with existing bigger thin-pool
metadata command 'lvextend -l+1 vg/pool_tmeta' does the change.

Patch gives better controls 'coverted' metadata LV and
reports less confusing message during conversion.

Patch set also moves the code for updating min/max into pool_manip.c
for better sharing with cache_pool code.
2021-02-01 12:06:13 +01:00
..
datastruct device_mapper: move hash.[hc] to base/data-struct 2018-06-08 13:54:19 +01:00
ioctl gcc: use apropriate type for reading and printing values 2020-08-28 21:43:03 +02:00
misc gcc: zero-sized array to fexlible array C99 2020-09-01 17:57:50 +02:00
mm gcc: use apropriate type for reading and printing values 2020-08-28 21:43:03 +02:00
regex build: get separate builddir working again 2018-06-04 13:22:14 +01:00
vdo vdo: keep minimum_io_size in sectors 2019-10-04 17:31:55 +02:00
all.h thin: improve 16g support for thin pool metadata 2021-02-01 12:06:13 +01:00
libdm-common.c gcc: change zero-sized array to fexlible array 2020-09-01 17:57:50 +02:00
libdm-common.h device_mapper: rename libdevmapper.h -> all.h 2018-06-08 12:31:45 +01:00
libdm-config.c metadata: allow reading metadata with invalid creation_time 2019-05-10 14:40:11 +02:00
libdm-deptree.c thin: improve 16g support for thin pool metadata 2021-02-01 12:06:13 +01:00
libdm-file.c cov: mark warning as expected one 2018-11-03 16:10:32 +01:00
libdm-report.c cov: split check for type assignment 2020-10-19 16:53:19 +02:00
libdm-string.c device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
libdm-targets.c Allow dm-integrity to be used for raid images 2020-04-15 12:10:32 -05:00
libdm-timestamp.c device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
Makefile makefiles: correcting login of makefile 2018-12-17 10:55:20 +01:00