pFsenese VM disk almost full

xraive

Member
Mar 5, 2022
3
1
6
44
I have pFsense running on a vm and proxmox gui shows disk utilization at 98.39% (32.75 GB of 33.29 GB). However, when checking pFsense it's only using 1 GB of space. I've turned on "discard" on the VM but it doesn't change anything. Anyone can provide assistance? It would be greatly appreciated.
 
I believe in addition to enabling "discard" ON the VM, you need to run "fstrim" IN the VM to take care of data that was previously written.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
Unfortunately I don't know how to do that in pFsense. I was able to do that on my other VM (home assistant) as it accepted the fstrim command. Any help would be greatly appreciated.
 
Thanks @bbgeek17, I continued my search and was able to locate the instructions for performing trim on zfs filesystem. In case it helps, I included the commands I used below on my system. I can now see disk usage accurately reflected in proxmox.

zpool status -t (to check the status of trim)
zpool trim pool (runnig a manual trim operation, you can obtain the pool name by running zpool status)
zpool set autotrim=on pool (command to perfrom trim automatically)

What threw me off previously is that apparently trim is supposed to be turned on by default starting from FreeBSD 13.

I'm no expert so please read any relevant documentation regarding the commands I posted before running them on your system.
 
  • Like
Reactions: domfc