Auto extention of thin pool lvm not working

Posted on

I had created thin-pool lvm which is supposed to get extended when file system grows 70%, however, it is not working as expected.

[root@host1 ~]# lvs|grep -E 'thin-vg|Attr'
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
lvol0 thin-vg -wi------- 4.00m
test-pool1 thin-vg Vwi-aotz-- 200.00m test-thin-pool 98.41
test-thin-pool thin-vg twi-aotz-- 1008.00m 19.53 3.12

[root@host1 ~]# grep -E 'thin_pool_autoextend_threshold|thin_pool_autoextend_percent' /etc/lvm/lvm.conf
# 'thin_pool_autoextend_threshold' and 'thin_pool_autoextend_percent' define
# For example, if you set thin_pool_autoextend_threshold to 70 and
# thin_pool_autoextend_percent to 20, whenever a pool exceeds 70% usage,
# Setting thin_pool_autoextend_threshold to 100 disables automatic
thin_pool_autoextend_threshold = 70
thin_pool_autoextend_percent = 20

The expected file system which should get auto-extended is :

[root@host1 ~]# df -Th /test-pool1/
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/thin--vg-test--pool1
ext4 190M 182M 0 100% /test-pool1

This is testing purpose that I created which I would roll out on production later. Am I missing something? Not sure, hope someone would help here.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.