<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Zfs on despatches</title><link>https://icle.es/tags/zfs/</link><description>Recent content in Zfs on despatches</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 18 Mar 2026 15:13:17 +0000</lastBuildDate><atom:link href="https://icle.es/tags/zfs/index.xml" rel="self" type="application/rss+xml"/><item><title>ZFS Deleting files doesn't free up space</title><link>https://icle.es/2018/04/12/zfs-deleting-files-doesnt-free-up-space/</link><pubDate>Thu, 12 Apr 2018 10:15:02 +0000</pubDate><guid>https://icle.es/2018/04/12/zfs-deleting-files-doesnt-free-up-space/</guid><description>&lt;p>So I have a proxmox server on which I run a few VMs and the other day it
completely ran out of space. This was because of overprovisioning through thin
volumes.&lt;/p>
&lt;p>After much head scratching and metaphorically banging my head against a wall,
here are the things I learnt.&lt;/p></description><content:encoded><![CDATA[<p>So I have a proxmox server on which I run a few VMs and the other day it
completely ran out of space. This was because of overprovisioning through thin
volumes.</p>
<p>After much head scratching and metaphorically banging my head against a wall,
here are the things I learnt.</p>
<h2 id="empty-trash">Empty Trash</h2>
<h3 id="local-trash">Local Trash</h3>
<p>Make sure that have emptied the trash on the VMs .Ubuntu has this issue and so
might other distributions</p>
<h3 id="network-trash">Network Trash</h3>
<p>If you have SAMBA enabled on your VMs make sure that the Recycle Bin is not
enabled. I have openmediavault running on a VM and I had to go through and
disable the Recycling Bin. Make sure that the Recycle bin is emptied. They are
hidden folders in the root of your shares.</p>
<h2 id="correct-driver--settings">Correct Driver &amp; Settings</h2>
<ul>
<li>When setting up the hard drive for your VM, make sure you use virtio-scsi (or
just scsi on the web interface).
<ul>
<li>If you disk is already set up using IDE or VirtIO,
<ul>
<li>Delete it. Don't worry, it's only deleting the link. The disk itself
will show up in the interface afterwards</li>
<li>Double click on the unattached disk and select SCSI and Discard</li>
<li>You might have to fix the references to the drive in the OS</li>
</ul>
</li>
</ul>
</li>
<li>On the Device Screen, make sure discard is selected.</li>
</ul>
<h2 id="trim">TRIM</h2>
<p>Configure the OS to send TRIM commands to the drive</p>
<h3 id="linux">Linux</h3>
<h4 id="on-mount">On Mount</h4>
<p>You can pass the parameter discard to any mountpoint and the correct TRIM
commands will be sent to the disk. <strong>HOWEVER</strong>, this is apparently a big
performance hit.</p>
<p>To do the actual trim, run</p>
```bash
$ fstrim
```
<p>OR to run fstrim on all supported drives</p>
```bash
$ fstrim -a
```
<p><a href="https://www.digitalocean.com/community/tutorials/how-to-configure-periodic-trim-for-ssd-storage-on-linux-servers">Digital Ocean has a detailed post about setting TRIM and setting up a schedule etc.</a></p>
<h3 id="windows">Windows</h3>
<p>My condolences! Also, I don&rsquo;t run Windows on any of my VM&rsquo;s so I have no
experience with it.</p>]]></content:encoded></item></channel></rss>