Re: [PVE-User] zfs 0.7 no discard

2019-07-09 Thread Mark Adams
Ah right! thanks for that info, I had assumed it would use fstrim. Looks like zpool trim is what I need to be running once upgraded. Cheers, Mark On Tue, 9 Jul 2019 at 21:19, Gianni Milo wrote: > On that case, I would upgrade the VM to zfs 0.8, leaving the host on zfs > 0.7 with compression ena

Re: [PVE-User] zfs 0.7 no discard

2019-07-09 Thread Gianni Milo
On that case, I would upgrade the VM to zfs 0.8, leaving the host on zfs 0.7 with compression enabled. Then I would run zfs trim command inside the VM and see if the space is reclaimed back on the host. Note: fstrim command only works on specific filesystems, not in zfs. Gianni On Tue, 9 Jul 2

Re: [PVE-User] zfs 0.7 no discard

2019-07-09 Thread Mark Adams
Hi GIanni, Thanks for your response, what I forgot to mention is I am also using zfs inside of the VM, which I think is the main problem - I need it to be 0.8 to actually send the discard/trim command to the underlying zfs... what I'm not clear on is if I need both to be 0.8. Also, I assume this

Re: [PVE-User] zfs 0.7 no discard

2019-07-09 Thread Gianni Milo
Haven't moved to zfs 0.8 but you could have similar results by enabling compression on zfs and by periodically executing fstrim (linux) or sdelete (windows) inside VMs to reclaim unused space ? On Linux VMs, adding "discard" in fstab mount options (ext4) may have similar results as when executing

[PVE-User] zfs 0.7 no discard

2019-07-09 Thread Mark Adams
Hi All, Currently having an issue on a few servers where more space is being "used" in the host (zfs), than is actually being used inside the VM. Discard is enabled, but zfs 0.7 does not have support for it. zfs 0.8 has brought in discard support, so I was wondering if anyone else has upgraded to