Hi,
I want to get fstrim working with no luck so far.
What I did so far:
1. Switched from virtio-blk to virtio-scsi (changed the disc to scsi0 and changed the emulated scsi-controller to VIRTIO)
2. Switched discard=on as parameter for the disk
3. mounted the ext4 filesystem with discard
It is working so far, that I can do fstrim -v /, and there is nothing to be trimmed, but the qcow2 file is increasing (double the size of the occupancy rate of the filesystem).
I got it only working with shutting down the vm and converting the disk as stated in Shrink_Qcow2_Disk_Files#Linux_Guest_Preparation in pve wiki (sry I am not allowed to post an link), but for that the vm has to be shutdown...
Am I missing sth?
Thanks!
I want to get fstrim working with no luck so far.
What I did so far:
1. Switched from virtio-blk to virtio-scsi (changed the disc to scsi0 and changed the emulated scsi-controller to VIRTIO)
2. Switched discard=on as parameter for the disk
3. mounted the ext4 filesystem with discard
It is working so far, that I can do fstrim -v /, and there is nothing to be trimmed, but the qcow2 file is increasing (double the size of the occupancy rate of the filesystem).
I got it only working with shutting down the vm and converting the disk as stated in Shrink_Qcow2_Disk_Files#Linux_Guest_Preparation in pve wiki (sry I am not allowed to post an link), but for that the vm has to be shutdown...
Am I missing sth?
Thanks!
Last edited: