OPNsense Forum

English Forums => Hardware and Performance => Topic started by: labsy on February 24, 2022, 10:30:25 am

Title: Disk 109% full, how to increase size
Post by: labsy on February 24, 2022, 10:30:25 am
Hi,

My OPNSense 19.1.10_1-amd64 is running FreeBSD 11.2-RELEASE-p10-HBSD as a VIRTUAL MACHINE on ESX 6.5 server. It says DISK USAGE: 109% (100G/100G)

I dunno how is this even possible, and it is still running, but I will obviously need to act NOW.

Please...I have only copy/paste Linux knowledge - any reliable instructions on how to resize disk?
Title: Re: Disk 109% full, how to increase size
Post by: cookiemonster on February 24, 2022, 01:45:34 pm
This level can be painful to be able to trim down but you have no choice but to find the biggest usage and delete. ls commnads to list and rm to remove (delete). Also du for disk usage stats.
Over 100% can be an rounding up error or a thin provisioned disk.
In any case you need to quickly ssh to your VM, find biggest directorirs, navigate  to them and start removing.
The OS doesn't take a lot of space, my guess is most of it is in logs ie. /var/log/
Title: Re: Disk 109% full, how to increase size
Post by: labsy on February 24, 2022, 11:21:43 pm
Excellent starting point, thank you!!!

I had problems SSH-ing, see port 22 is opene, listening on WAN interfaces, but simply cannot connect with Putty. Nevermind... did it via remote console and like you said, found disk hog, 92 GB in size, flowd.log:

Code: [Select]
  92664854896 Jan 14 20:02 flowd.log
     11566548 Jun  7  2021 flowd.log.000001
     11566328 Jun  7  2021 flowd.log.000002
     11666820 Jun  7  2021 flowd.log.000003
     11598933 Jun  7  2021 flowd.log.000004
     11587141 Jun  7  2021 flowd.log.000005

Looks like known issue: https://github.com/opnsense/core/issues/2296