1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-30 01:47:56 +03:00

thin: fix warning for overprovisioning

When lvm.conf is properly configure for auto resize of overprovisioned
thin-pool volume, avoid showing any warning (2.02.124).
This commit is contained in:
Zdenek Kabelac 2015-07-13 11:08:49 +02:00
parent 34a4109946
commit 4a33d57143
3 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.126 -
================================
Fix detection of thin-pool overprovisioning (2.02.124).
Fix lvmpolld segfaults on 32 bit architectures.
Fix ignored --startstopservices option if running lvmconf with systemd.

View File

@ -303,6 +303,8 @@ int pool_check_overprovisioning(const struct logical_volume *lv)
/* There is some free space in VG, but it is not configured
* for growing - threshold is 100% or percent is 0% */
sz = poolsum;
else
sz = ~0; /* No warning */
if (sz != ~0) {
log_warn("WARNING: Sum of all thin volume sizes (%s) exceeds the "

View File

@ -61,7 +61,8 @@ aux prepare_pvs 3 256
vgcreate -s 1M $vg $(cat DEVICES)
# Testing dmeventd autoresize
lvcreate -L200M -V1G -n thin -T $vg/pool
lvcreate -L200M -V500M -n thin -T $vg/pool 2>&1 | tee out
not grep "WARNING: Sum" out
lvcreate -L2M -n $lv1 $vg
lvchange -an $vg/thin $vg/pool