public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* how to get discard working on KVM block devices?
@ 2013-03-10 14:09 Nikola Ciprich
  0 siblings, 0 replies; only message in thread
From: Nikola Ciprich @ 2013-03-10 14:09 UTC (permalink / raw)
  To: kvm; +Cc: nikola.ciprich

[-- Attachment #1: Type: text/plain, Size: 1155 bytes --]

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@linuxbox.cz
-------------------------------------

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-03-10 14:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-10 14:09 how to get discard working on KVM block devices? Nikola Ciprich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox