Automatic guest-fstrim for Ubuntu KVM not working

karnz

Renowned Member
Nov 23, 2015
61
3
73
PVE 7.1-6 latest updated.

Automatic guest-fstrim for Ubuntu KVM not working after migrate to another node or move disk. Discard option is checked. Qemu-guest-agent is installed and running.
However don’t found this problem for CentOS7-8 KVM.

I have to manually shutdown/start Ubuntu KVM once after migration or disk operation and manually fstrim to make it works (even sometimes not but almost works)

Any suggestions are welcome. Thanks!