OPNsense Forum
Archive => 21.1 Legacy Series => Topic started by: JRC on June 08, 2021, 03:05:46 am
-
So I went to install a plugin on my opnSense box, and got an error that I did not have enough free space, that I had -4Gb free.
The DF commend returns:
:/ % df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ufs/OPNsense 50G 50G -4.0G 109% /
devfs 1.0K 1.0K 0B 100% /dev
tmpfs 8.2G 564K 8.2G 0% /tmp
devfs 1.0K 1.0K 0B 100% /var/dhcpd/dev
devfs 1.0K 1.0K 0B 100% /var/unbound/dev
So I am using more than 100% of the drive??
How do I clean this up?
-
The issue appears to be flowd.log in my logs folder, it's nearly 30Gb in size.
How do I set it so that this log is rotated at a much smaller size, say 10mb?
-
Same here.
-
Digging into the code, flowd log files (`/var/log/flowd.log*`) appear to be managed by `/usr/local/opnsense/scripts/netflow/flowd_aggregate.py (https://github.com/opnsense/core/blob/stable/21.1/src/opnsense/scripts/netflow/flowd_aggregate.py)` which should be keeping a maximum of 10 files of 10 MB each. I can't see any other process that tidies up these logs, so it's possible the daemon has fallen over and the rc script (https://github.com/opnsense/core/blob/stable/21.1/src/etc/rc.d/flowd_aggregate) managing the process never properly recovered.
Manually running `/usr/local/opnsense/scripts/netflow/flush_all.sh all (https://github.com/opnsense/core/blob/stable/21.1/src/opnsense/scripts/netflow/flush_all.sh)` should tidy things up.
-
Sorry, in my case, Sensei was filling up the HDD.
It was running in Monitoring mode and somehow its DB grows indefinitely.