Hi, I'm playing with dm-thin target, and I'd like to get discard working from my test KVM virtuals.. I've got thinprov pool, on top of which I've got test logical volume. On host, I can issue discard (using fstrim) on it, and thin pool usage lowers correctly, therefore I think it's working well... However, when I export such block device to KVM (using either virtio or scsi), discard seems not to be working - I can neither issue fstrim, nor mount ext4 with discard option (well, I can mount it, but it reports discard is not supported by underlying device, fstrim reports FITRIM ioctl failed: Operation not supported). I tried with kernel 3.8.2 on both host and guest, and qemu-1.4.0. Is there anything special needed to do to get discard working? thanks a lot in advance for any reply BR nik -- ------------------------------------- Ing. Nikola CIPRICH LinuxBox.cz, s.r.o. 28. rijna 168, 709 00 Ostrava tel.: +420 591 166 214 fax: +420 596 621 273 mobil: +420 777 093 799 www.linuxbox.cz mobil servis: +420 737 238 656 email servis: servis@xxxxxxxxxxx -------------------------------------
Attachment:
pgpDSFn9P8uum.pgp
Description: PGP signature