Hi,
Does anyone know how can one trim / discard on thin LVM backed KVM VM?
Due to a bug with live migrate (https://bugzilla.proxmox.com/show_bug.cgi?id=1242) which makes guests use all of it's space within LV, i need to know how to shrink it down. Supposedly that's why we have trim / discard for.
So i loged in to the KVM VM and issued a fstrim /. It failed with: "the discard operation is not supported".
I checked my lvm.conf if it's enabled:
it is. So I check the VM if it's enabled:
and it also is.
From the top of my head, i do not know what else to check. Can anyone help me enable fstrim inside my test KVM VM with data on local thin LVM?
Does anyone know how can one trim / discard on thin LVM backed KVM VM?
Due to a bug with live migrate (https://bugzilla.proxmox.com/show_bug.cgi?id=1242) which makes guests use all of it's space within LV, i need to know how to shrink it down. Supposedly that's why we have trim / discard for.
So i loged in to the KVM VM and issued a fstrim /. It failed with: "the discard operation is not supported".
I checked my lvm.conf if it's enabled:
Code:
# cat /etc/lvm/lvm.conf | grep issue_discard
issue_discards = 1
Code:
#cat /etc/pve/qemu-server/102.conf | grep disca
virtio0: local-lvm-sata:vm-102-disk-1,backup=0,cache=writeback,discard=on,size=15G
From the top of my head, i do not know what else to check. Can anyone help me enable fstrim inside my test KVM VM with data on local thin LVM?