I have a KVM host running wheezy, with wheezy-backports versions of libvirt and qemu. I have defined a guest, properly set discard=unmap in the domain XML file for it, verified that’s being passed to the guest, but TRIM/DISCARD is just not working.
Mounting the ext4 filesystem with discard has no effect, and fstrim / always reports:
fstrim: /: FITRIM ioctl failed: Operation not supported
Every single time.
I’ve tried with the virtio, IDE, and SCSI (both default and virtio-scsi) backend drivers. The guest is also running wheezy (i386 version; the host is amd64) and I’ve tried the latest 3.12 backported kernel for it. No dice.
If I shut down the VM and mount the filesystem on the host, fstrim works fine.
Everything says this should work. But it doesn’t.
I’ve written a lot lately about ZFS, and one of its very nice features is the ability to make snapshots that are lightweight, space-efficient, and don’t hurt performance (unlike, say, LVM snapshots). ZFS also has “zfs send” and “zfs receive” … Continue…
- eFolder, Inc.VP of IT and Engineering, 2011 - present
- Mennonite Bethesda SocietyChair of Board of Trustees, 2005 - 2012
- Self-employeedConsultant, Developer, and Author, 1999 - 2012
- Excel Industries, Inc.IT Director, 2002 - 2011
- Software in the Public Interest, Inc.President & Chairman of the Board, 2003 - 2006
- Progeny Linux SystemsSr. Software Developer, 2000 - 2001
My hobby and profession involves programming and system administration. I have released many programs as Free Software, which you are welcome to download, examine, and share. I am a developer for the Debian GNU/Linux operating system, and have been since the late 1990s. I've written some books about programming and operating systems.
I have a lot of them: amateur radio, bicycling, photography, philosophy, literature, rail travel, etc. There is a better list on my personal website.
I'm a developer for Debian GNU/Linux, chair of the board for Mennonite Bethesda Society (a non-profit operator of a nursing home), a volunteer for the Amateur Radio Emergency Service and Skywarn.
Please visit my website.
Can You Do Real Work With the 30-Year-Old IBM 5150?
Our intrepid reporter spends a week trying to write, browse the Web, edit photos, and even (shudder) tweet on IBM's first PC.