Discard does not work on diskless node with latest 6.17.4-2-pve kernel

Hi all!

I encountered a strange problem after an upgrade to proxmox 9.1.5 using kernel 6.17.4-2-pve. When vm is live migrated to a diskless node discard doesn’t work anymore. fstrim command has no effect. Syslog shows the following error at the time of migration, which might be related to the problem:

Feb 24 11:52:42 tn3 kernel: drbd vm-3005-disk-1/0 drbd1009: setting new queue limits failed

If I live migrate the vm back to a diskfull node and do the fstrim then the space is properly reclaimed. I use LVMThin storage pool. Discard works properly on diskless nodes with an older kernel.

The list of my tested combinations:

kernel drbd result

6.2.16-20-pve 9.2.14 works
6.2.16-20-pve 9.2.15 works
6.2.16-20-pve 9.2.16 works
6.2.16-20-pve 9.3.0 works
6.17.4-2-pve 9.2.16 doesn't work
6.17.4-2-pve 9.3.0 doesn't work

Am I missing something here? Thanks.

Hi,

with 9.3.1-rc.1 discard on diskless node works again. Tested with latest 6.17.13-1-pve
kernel.