Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    /var partition keeps filling up after upgrading to 2.7.0-RELEASE from 2.6.0-RELEASE

    Scheduled Pinned Locked Moved General pfSense Questions
    8 Posts 3 Posters 805 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      Link01
      last edited by

      My /var slice keeps filling up quickly (less than 24hours) and soon after filling up I end up losing functionality of my router.
      How can I find out what is filling up this partition?

      L 1 Reply Last reply Reply Quote 0
      • L
        Link01 @Link01
        last edited by

        After checking a bit I see /var/db as being the culprit. What is being saved here?

        RobbieTTR 1 Reply Last reply Reply Quote 0
        • RobbieTTR
          RobbieTT @Link01
          last edited by

          @Link01

          Stuff like this:

          [23.09-RC][admin@Router-7]/root: find /var/db/ -type d -ls | sort -n -r
            1185        1 drwxr-xr-x    2 nobody                           nobody                                  2 Nov  3 14:45 /var/db/ntopng/rrd
            1025        1 drwxr-xr-x    2 root                             wheel                                   3 Nov  3 14:42 /var/db/vnstat
             995        1 drwxr-xr-x    3 nobody                           nobody                                  3 Oct 29 15:49 /var/db/ntopng
             994       49 drwxr-xr-x    2 root                             wheel                                   5 Oct 29 15:49 /var/db/fontconfig
             416        1 drwxr-xr-x    2 root                             wheel                                   2 Oct 13 17:30 /var/db/pfblockerng/ET
             271       17 drwxr-xr-x    2 root                             wheel                                   5 Oct 13 17:36 /var/db/pfblockerng/dnsblalias
             270        1 drwxr-xr-x    2 root                             wheel                                   5 Nov  3 00:30 /var/db/pfblockerng/dnsblorig
             268        1 drwxr-xr-x    2 root                             wheel                                   2 Oct 13 17:19 /var/db/pfblockerng/permit
             267        1 drwxr-xr-x    2 root                             wheel                                   2 Oct 13 17:19 /var/db/pfblockerng/match
             266       17 drwxr-xr-x    2 root                             wheel                                  13 Nov  3 12:30 /var/db/pfblockerng/deny
             265        1 drwxr-xr-x    2 root                             wheel                                   2 Oct 13 17:19 /var/db/pfblockerng/native
             264       17 drwxr-xr-x    2 root                             wheel                                  13 Nov  3 12:30 /var/db/pfblockerng/original
             263       17 drwxr-xr-x   11 root                             wheel                                  15 Nov  3 12:30 /var/db/pfblockerng
             260        1 drwxr-xr-x    2 root                             wheel                                   5 Nov  2 00:30 /var/db/pfblockerng/dnsbl
             142        1 drwxr-x---    2 _dhcp                            _dhcp                                   2 Oct  6 05:43 /var/db/dhcpcd
             138        1 drwxr-xr-x    2 root                             wheel                                   2 Oct 27 04:02 /var/db/zfsd/cases
             137        1 drwx------    2 operator                         operator                                2 Oct 27 04:02 /var/db/entropy
             136        1 drwxr-xr-x    2 root                             wheel                                   2 Oct 22 11:51 /var/db/kea
             135        1 drwxr-xr-x    2 root                             wheel                                   2 Oct 27 04:02 /var/db/mtree
             134        1 drwx------    2 root                             wheel                                   2 Oct 27 04:02 /var/db/freebsd-update
             133        1 drwxr-xr-x    2 root                             wheel                                   2 Oct 27 04:02 /var/db/ports
             132        1 drwxr-xr-x    2 ntpd                             ntpd                                    2 Oct 27 04:02 /var/db/ntp
             131        1 drwxr-xr-x    3 root                             wheel                                   3 Oct 27 04:02 /var/db/zfsd
             130        1 drwx------    2 root                             wheel                                   2 Oct 27 04:02 /var/db/hyperv
             129        1 drwxr-xr-x    2 root                             wheel                                   2 Oct 27 04:02 /var/db/portsnap
             128        1 drwx------    2 root                             wheel                                   2 Oct 27 04:02 /var/db/ipf
              34       17 drwxr-xr-x   20 root                             wheel                                  38 Nov  3 12:01 /var/db/
              34       17 drwxr-xr-x    2 root                             wheel                                   9 Nov  3 07:53 /var/db/pkg
               7        1 drwxr-xr-x    2 root                             wheel                                   4 Oct 13 17:30 /var/db/aliastables
               3       17 drwxr-xr-x    2 nobody                           wheel                                  23 Oct 13 15:57 /var/db/rrd
          [23.09-RC][admin@Router-7]/root:
          

          It can get a bit bloated and for old uninstalled packages to leave their db's behind.

          I just happen to have been doing some tidying-up in this directory today.

          ☕️

          L 1 Reply Last reply Reply Quote 0
          • L
            Link01 @RobbieTT
            last edited by

            @RobbieTT Thanks for the example, I had a look last night and found out ntopng was writing something there and filling it up. I had to reboot the system periodically to clear the filesystem. I've uninstalled the package and will reinstall it after a few days of making sure all is running well now.

            RobbieTTR 1 Reply Last reply Reply Quote 1
            • RobbieTTR
              RobbieTT @Link01
              last edited by

              @Link01

              ntopng is one of the greedy ones that tends to leave lots of db junk behind when it is uninstalled. I had to rm and rmdir to genuinely recover the hoarded space.

              Glad it helped though and I learned some stuff too. 👍

              ☕️

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                I would only expect to see that if you're running ramdisks so /var is very limited. Is that the case here?

                If so there are some packages that really don't work well with ramdisks for that reason. Including ntop-ng.

                RobbieTTR 1 Reply Last reply Reply Quote 0
                • RobbieTTR
                  RobbieTT @stephenw10
                  last edited by

                  @stephenw10

                  I've never run a RAM disk on either of my machines - I don't see a need for one either.

                  ☕️

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    Sorry that was aimed @Link01. The symptoms they are seeing are common when ramdisks are in use.

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.