Dear all,
playing around a while to test ata-trim, pve 3.4, 3.10.0-8, on Samsung ssd 840+850 both evo.
Host on ext4, noop, noatime, barrier=0, without discard, running fstrim periodically by cron.
Windows guest Win7, 0.1.103 virtio, qcow2 with discard option, validation by trimcheck.exe and output of fstrim in host-shell.
** Working: Ide/Sata: trim launched by itself after some seconds (without manual fstrim in host shell).
** Not working: Virtio: trim not working, also during fstrim launch on host no difference in the result.
Tried various options in configuration: combinations of virtio and scsi hdd, and combinations of virtio and scsi controllers.
It looks like discard option in the hdd attach dialog is mandatory (in opposite to the host config), but I am lacking the working virtio config combination.
Has anybody found a working solution using virtio-drivers and ssd-trim (ata-trim) in windows guests?
Same behaviour on Win8.1 and Ubuntu14, Ide/Sata-hdd based trim on both working (with discard option in guest hdd dialog), but not in virtio/scsi combination.
Maybe any hints on this topic? Had found some discussions concerning virtio-block and virtio-scsi, but I am not sure if this is actual and related to this problem.
Thanks and best wishes
Alex
Edit: kernel version
playing around a while to test ata-trim, pve 3.4, 3.10.0-8, on Samsung ssd 840+850 both evo.
Host on ext4, noop, noatime, barrier=0, without discard, running fstrim periodically by cron.
Windows guest Win7, 0.1.103 virtio, qcow2 with discard option, validation by trimcheck.exe and output of fstrim in host-shell.
** Working: Ide/Sata: trim launched by itself after some seconds (without manual fstrim in host shell).
** Not working: Virtio: trim not working, also during fstrim launch on host no difference in the result.
Tried various options in configuration: combinations of virtio and scsi hdd, and combinations of virtio and scsi controllers.
It looks like discard option in the hdd attach dialog is mandatory (in opposite to the host config), but I am lacking the working virtio config combination.
Has anybody found a working solution using virtio-drivers and ssd-trim (ata-trim) in windows guests?
Same behaviour on Win8.1 and Ubuntu14, Ide/Sata-hdd based trim on both working (with discard option in guest hdd dialog), but not in virtio/scsi combination.
Maybe any hints on this topic? Had found some discussions concerning virtio-block and virtio-scsi, but I am not sure if this is actual and related to this problem.
Thanks and best wishes
Alex
Edit: kernel version
Last edited: