1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/conf
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
..
.gitignore configure: relocate generated headers 2015-09-07 17:40:58 +02:00
cache-mq.profile cache: introduce mq and smq profiles 2015-08-12 14:11:16 +02:00
cache-smq.profile cleanup: minor cosmetics 2017-03-10 19:33:01 +01:00
command_profile_template.profile.in conf: fix typo in report/columns_as_rows config option name recognition 2016-08-25 14:53:32 +02:00
example.conf.in thin: improve 16g support for thin pool metadata 2021-02-01 12:06:13 +01:00
lvmdbusd.profile conf: add lvmdbusd.profile 2016-08-09 18:49:11 +02:00
lvmlocal.conf.in config: avoid printing spaces before end of line 2021-01-22 15:30:37 +01:00
Makefile.in build: Remove badly placed @ 2018-12-18 09:54:47 +01:00
metadata_profile_template.profile.in conf: update profile templates for recent changes 2015-02-11 13:22:31 +01:00
thin-generic.profile profile: add thin-generic.profile 2014-06-13 09:56:29 +02:00
thin-performance.profile release 2.02.103 2013-10-04 14:32:23 +01:00
vdo-small.profile vdo: update vdo profile 2019-01-21 12:38:00 +01:00