pFsenese VM disk almost full

xraive

New Member
Mar 5, 2022
3
0
1
43
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!