OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: Mann-IT on January 07, 2019, 05:15:39 pm

Title: Disk Full
Post by: Mann-IT on January 07, 2019, 05:15:39 pm
HI,

since days i see that the disk are getting full.
First i think sucrita log do it. But now it is full and i do not find where i gettings full.


root@OPNsense:/ # df -T
Filesystem       Type  1K-blocks     Used    Avail Capacity  Mounted on
/dev/gpt/rootfs  ufs    47097880 47076808 -3746756   109%    /
devfs            devfs         1        1        0   100%    /dev
devfs            devfs         1        1        0   100%    /var/unbound/dev
devfs            devfs         1        1        0   100%    /var/dhcpd/dev

root@OPNsense:/ # du -mah | sort -rh | head -n 20
1.2G    .
907M    ./usr
535M    ./usr/local
305M    ./usr/local/lib
220M    ./boot
171M    ./usr/bin
136M    ./usr/local/lib/python2.7
109M    ./boot/kernel.old
109M    ./boot/kernel
 96M    ./usr/share
 65M    ./usr/local/etc
 62M    ./usr/local/lib/perl5
 60M    ./usr/lib
 59M    ./usr/local/lib/python2.7/site-packages
 58M    ./usr/local/lib/perl5/5.26
 53M    ./usr/bin/lldb
 50M    ./usr/local/etc/suricata
 49M    ./usr/bin/c++
 45M    ./var
 42M    ./usr/local/sbin
root@OPNsense:/ # ls
.cshrc                          COPYRIGHT                       dev                             libexec                         proc                            sys
.probe.for.install.media        bin                             etc                             media                           rescue                          tmp
.profile                        boot                            home                            mnt                             root                            usr
.snap                           conf                            lib                             net                             sbin                            var
root@OPNsense:/ #


Greetings Mario
Title: Re: Disk Full
Post by: Mann-IT on January 07, 2019, 06:15:28 pm
It looks like the suricata is the problem

 ps vax
  PID STAT        TIME  SL  RE PAGEIN     VSZ    RSS LIM TSIZ   %CPU %MEM COMMAND
70567 Ss    1665:22.76   0 127      9 2033072 765928   - 2536   84.2  6.1 /usr/local/bin/suricata -D --pcap=em0 --pidfile /var/run/suricata.pid -c /usr/local/etc/suricata/suricata.yaml
70882 Ss    1662:28.35   0 127     20 2018736 755944   - 2536   86.6  6.0 /usr/local/bin/suricata -D --pcap=em0 --pidfile /var/run/suricata.pid -c /usr/local/etc/suricata/suricata.yaml

How can i fix this?
Title: Re: Disk Full
Post by: Mann-IT on January 07, 2019, 06:19:51 pm
I kill it now i get the space back.
But how i can prevent it do do this again?

Greetings Mario