From: Nikola Ciprich <nikola.ciprich@linuxbox.cz>
To: kvm <kvm@vger.kernel.org>
Cc: nikola.ciprich@linuxbox.cz
Subject: how to get discard working on KVM block devices?
Date: Sun, 10 Mar 2013 15:09:05 +0100 [thread overview]
Message-ID: <20130310140905.GA4640@nik-comp.linuxbox.cz> (raw)
[-- 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 --]
reply other threads:[~2013-03-10 14:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130310140905.GA4640@nik-comp.linuxbox.cz \
--to=nikola.ciprich@linuxbox.cz \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.