I'm reading in various other threads that Discard (TRIM) support actually works in CEPH-backed VMs, but that's not my experience:
For that particular VM:
and of course:
So... am I missing something obvious? I'd sure like to reclaim the (roughly) several hundreds of gigabytes of wasted space in my array! (Plus, backups should go a lot faster if I do this.)
The only thing I can find is from the CEPH docs at http://docs.ceph.com/docs/v0.94/rbd/qemu-rbd/:
Thanks,
-Adam
Code:
[root@fs1 ~]# fstrim /
fstrim: /: FITRIM ioctl failed: Operation not supported
For that particular VM:
Code:
root@pve4:~# qm config 135-bash: warning: setlocale: LC_ALL: cannot change locale (en_CA.UTF-8)
bootdisk: virtio0
cores: 1
ide2: Hexen-PVE:iso/CentOS-6.6-x86_64-bin-DVD1.iso,media=cdrom
memory: 4096
name: fs1
net0: virtio=66:F2:CE:63:EC:66,bridge=vmbr0
numa: 1
ostype: l26
smbios1: uuid=64a10199-305f-4e85-acec-866db03bea73
sockets: 4
virtio0: rbd:vm-135-disk-1,cache=writeback,discard=on,size=32G
and of course:
Code:
root@pve4:~# pveversion pve-manager/3.4-11/6502936f (running kernel: 3.10.0-11-pve)
So... am I missing something obvious? I'd sure like to reclaim the (roughly) several hundreds of gigabytes of wasted space in my array! (Plus, backups should go a lot faster if I do this.)
The only thing I can find is from the CEPH docs at http://docs.ceph.com/docs/v0.94/rbd/qemu-rbd/:
and of course PVE does not provide that to QEMU... but if it never provides it, how on earth do other people make it work???For this to be available to the guest, it must be explicitly enabled for the block device. To do this, you must specify a discard_granularity associated with the drive:
Thanks,
-Adam
Last edited: