lvmteam / lvm2

Mirror of upstream LVM2 repository
https://gitlab.com/lvmteam/lvm2
GNU General Public License v2.0
133 stars 73 forks source link

LVM autoextend not working, what am I doing wrong ? #167

Open tigerblue77 opened 1 day ago

tigerblue77 commented 1 day ago

Hello ! I am running tests en VDO pools and LVM thin pools on a Debian 12.8 machine. I've added this to lvm.conf :

snapshot_autoextend_threshold = 90
snapshot_autoextend_percent = 10
thin_pool_autoextend_threshold = 90
thin_pool_autoextend_percent = 10
vdo_pool_autoextend_threshold = 90
vdo_pool_autoextend_percent = 10

then ran :

systemctl restart lvm2-monitor

Following this RHEL documentation : https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/8/html/configuring_and_managing_logical_volumes/basic-logical-volume-management_configuring-and-managing-logical-volumes#automatically-extending-a-thin-pool_extending-a-thin-pool And my

lvs -o +seg_monitor

shows they are monitored :

  LV              VG   Attr       LSize   Pool           Origin Data%  Meta%  Move Log Cpy%Sync Convert Monitor
  VG-1_LV-THIN-1  VG-1 twi-aotz--  10.00g                       7.27   11.91                            monitored
  base-501-disk-0 VG-1 Vri---tz-k   8.00g VG-1_LV-THIN-1
  test            VG-1 vwi-aov--- 100.00g vpool0
  vpool0          VG-1 dwi-------  30.00g                                                               monitored
  VG-2_LV-THIN-1  VG-2 twi-a-tz--  10.00g                       0.00   10.94                            monitored
  data            pve  twi-a-tz-- <59.81g                       0.00   1.59                             monitored
  root            pve  -wi-ao---- <41.52g

But I fill my VDO or thin LVs and they don't get expanded...

zkabelac commented 4 hours ago

Hi

a) make sure you are running the latest upstream version of lvm2 ('lvm version') b) it's unclear how many free space is in your VG (use command: 'vgs') c) you seem to be using 10G thin-pool and 10G + 10G thin LVs - not really used in the moment of your lvs d) you seem to be using 30G vdo-pool and 100G test LV - - inactive so unknown how much full they are. e) auto expansion happen on POOL volumes (not virtual volume thin or vdo LV) - if you want to expand those - use 'lvextend -r' so also filesystem grows)

So you would need to capture 'lvs -a' in the moment of your 'full pool' state - to see whether auto resize is working or not?