All of lore.kernel.org
 help / color / mirror / Atom feed
* Discard is not working
@ 2014-02-05 22:53 chickenmarkus
  2014-02-07 15:51 ` Fwd: " chickenmarkus
       [not found] ` <52F422C2.9020509@redhat.com>
  0 siblings, 2 replies; 5+ messages in thread
From: chickenmarkus @ 2014-02-05 22:53 UTC (permalink / raw)
  To: kvm

Hello,

after reading the "invitation" for some one-off questions without 
subscribing excuse my disturbing, please.

At first my setup of host:

  * in general Debian Wheezy
  * Kernel: 3.11-0.bpo.2-amd64
    (http://packages.debian.org/wheezy-backports/linux-image-3.11-0.bpo.2-amd64)
  * LVM 2.02.98 (http://packages.debian.org/jessie/lvm2)
  * thin-provisioning-tools 0.2.8-1
    (http://packages.debian.org/jessie/thin-provisioning-tools)
  * Qemu-KVM: 1.7.0 (http://packages.debian.org/jessie/qemu-kvm)

The new kernel and dirty things from Jessie are for working thin volumes 
with discard on my ssd. Everything's fine up to this point.

Afterwards I start a guest (also Debian Wheezy) over the following 
command (over libvirt) as root (for test only):

    kvm [...] -drive
    file=/dev/ssd0/sarabi,if=none,id=drive-scsi0-0-0-0,format=raw,discard=unmap
    -device
    scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0,bootindex=2
    [...]

Neither lsblk -D nor the try of fstrim ends positive. Both say that 
discard is not supported.
I read that guests need at least kernel 3.4 to support discard (and 
virtio-scsi). But the same backports kernel 3.11 did not changed anything.

Did I understand something wrong? Is the command wrong? Are any 
requirements not met?

Bye Markus


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-02-07 21:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-05 22:53 Discard is not working chickenmarkus
2014-02-07 15:51 ` Fwd: " chickenmarkus
     [not found] ` <52F422C2.9020509@redhat.com>
2014-02-07 16:36   ` Michael Tokarev
2014-02-07 20:19     ` chickenmarkus
2014-02-07 21:07     ` Paolo Bonzini

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.