Red Hat Bugzilla – Bug 1278959
lvm2: thin-pool: Grow thin pool by smaller than desired free space
Last modified: 2017-11-01 20:03:32 EDT
Description of problem:
Right now if a user has configured thin pool to be grown by 20%, that means
we calculate the 20% of existing thin pool size and grow pool by that amount. What if desire free space is not available in volume group. In that case thin pool extension fails.
Change the logic in such a way so that if lesser amount of free space is
available than desired space, then thin pool can be grown by smaller
amount of free space.
For example, say I have a thin pool of size 50G, and pool grows by 20%,
then 10GB free space is required in volume group. But if only 8GB free space
is availabe, pool should still grow by 8GB instead of failing to grow.
Version-Release number of selected component (if applicable):
Steps to Reproduce: