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

Netgate 5100 disk utilization at 81%

Scheduled Pinned Locked Moved General pfSense Questions
15 Posts 3 Posters 497 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.
  • M
    mercadof
    last edited by Apr 15, 2024, 8:58 PM

    My SG 5100 is showing 81% disk utilization and has steadily kept growing over the last few months. Following some suggestions in this forum I made the below queries. My question is what can I do to flush some of the high utilization folders in the outputs below?

    I am at Release 23.09.1 and I do not believe my appliance is using zfs. It states 81% of 6.7G (ufs)

    du -d 1 -h /
    4.0K /.snap
    4.5K /dev
    2.2G /usr
    4.7M /sbin
    4.7M /cf
    5.7M /tmp
    4.0K /mnt
    4.0K /media
    2.1G /var
    164K /libexec
    6.0M /etc
    4.0K /net
    12K /conf.default
    194M /root
    1.4M /bin
    4.0K /proc
    22M /lib
    27M /rescue
    410M /boot
    4.0K /home
    5.0G /

    du -d 1 -h /var
    8.0K /var/crash
    4.0K /var/msgs
    4.0K /var/account
    12K /var/at
    12K /var/audit
    2.1G /var/db
    14M /var/unbound
    4.0K /var/mail
    4.0K /var/yp
    115K /var/run
    4.0K /var/games
    14M /var/log
    4.0K /var/authpf
    4.0K /var/empty
    4.0K /var/backups
    8.0K /var/cron
    56K /var/tmp
    4.0K /var/rwho
    4.0K /var/heimdal
    20K /var/cache
    32K /var/spool
    4.0K /var/preserve
    60K /var/etc
    3.7M /var/dhcpd
    8.0K /var/lib
    2.1G /var

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Apr 15, 2024, 9:42 PM

      Check inside /var/db. It could be the pkg cache. You can clear that with: pkg clean -ay

      Consider fitting an m.2 SATA drive: https://docs.netgate.com/pfsense/en/latest/solutions/sg-5100/m-2-sata-installation.html

      Steve

      M 1 Reply Last reply Apr 15, 2024, 9:53 PM Reply Quote 0
      • M
        mercadof @stephenw10
        last edited by Apr 15, 2024, 9:53 PM

        @stephenw10 said in Netgate 5100 disk utilization at 81%:

        pkg clean -ay

        Thanks for the reply. I used the command you suggested and all I got back was "Nothing to do" response. I will look into the SATA, but if there is something that is causing files to be inflated, I would like to cure that problem first.

        Thanks again.

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Apr 15, 2024, 10:04 PM

          Still look inside /var/db then. Something there is using a lot of space.

          M 1 Reply Last reply Apr 15, 2024, 10:42 PM Reply Quote 0
          • M
            mercadof @stephenw10
            last edited by Apr 15, 2024, 10:42 PM

            @stephenw10
            That is what I am trying to find out. Can you let me know exactly how to look for this? I am not familiar with the CLI commands.

            S 1 Reply Last reply Apr 16, 2024, 3:48 AM Reply Quote 0
            • S
              SteveITS Galactic Empire @mercadof
              last edited by Apr 16, 2024, 3:48 AM

              @mercadof
              du -d 2 -h /var/db

              ā€œ-dā€ is depth.

              Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
              When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
              Upvote šŸ‘ helpful posts!

              M 1 Reply Last reply Apr 16, 2024, 1:04 PM Reply Quote 1
              • M
                mercadof @SteveITS
                last edited by Apr 16, 2024, 1:04 PM

                @SteveITS Ok, thank you for that. This is what I got back:
                14M /var/db/pkg
                12K /var/db/entropy
                4.0K /var/db/ntp
                4.0K /var/db/ports
                4.0K /var/db/portsnap
                4.0K /var/db/zfsd/cases
                8.0K /var/db/zfsd
                4.0K /var/db/freebsd-update
                4.0K /var/db/ipf
                4.0K /var/db/hyperv
                12M /var/db/rrd
                8.0K /var/db/pingstatus
                8.0K /var/db/pingmsstatus
                24K /var/db/snort/sidmods
                12K /var/db/snort/iprep
                40K /var/db/snort
                328K /var/db/pfblockerng/original
                4.0K /var/db/pfblockerng/native
                252K /var/db/pfblockerng/deny
                4.0K /var/db/pfblockerng/match
                4.0K /var/db/pfblockerng/permit
                14M /var/db/pfblockerng/dnsbl
                3.8M /var/db/pfblockerng/dnsblorig
                14M /var/db/pfblockerng/dnsblalias
                4.0K /var/db/pfblockerng/ET
                33M /var/db/pfblockerng
                4.0K /var/db/aliastables
                264K /var/db/fontconfig
                8.0K /var/db/ntopng/rrd
                2.0M /var/db/ntopng/-1
                701M /var/db/ntopng/0
                182M /var/db/ntopng/1
                12M /var/db/ntopng/2
                17M /var/db/ntopng/3
                1.1G /var/db/ntopng/4
                2.2M /var/db/ntopng/5
                148K /var/db/ntopng/category_lists
                7.4M /var/db/ntopng/6
                672K /var/db/ntopng/plugins0
                2.0G /var/db/ntopng
                4.0K /var/db/redis
                4.0K /var/db/mtree
                4.0K /var/db/kea
                4.0K /var/db/dhcpcd
                2.1G /var/db

                1 Reply Last reply Reply Quote 0
                • S
                  stephenw10 Netgate Administrator
                  last edited by Apr 16, 2024, 1:10 PM

                  Ah ntopng data is using a lot. Are you actively using ntopng?

                  M 1 Reply Last reply Apr 16, 2024, 1:14 PM Reply Quote 1
                  • M
                    mercadof @stephenw10
                    last edited by Apr 16, 2024, 1:14 PM

                    @stephenw10 said in Netgate 5100 disk utilization at 81%:

                    ntopng

                    I show it as active. Not sure if I need this running. Is it safe to turn it off?

                    1 Reply Last reply Reply Quote 0
                    • S
                      stephenw10 Netgate Administrator
                      last edited by stephenw10 Apr 16, 2024, 1:15 PM Apr 16, 2024, 1:14 PM

                      Yes it's an add-on package you can disable it at any time. If you never check it it's not really helping anyway. šŸ˜‰

                      You can also just clear it's data too.

                      M 1 Reply Last reply Apr 16, 2024, 1:20 PM Reply Quote 1
                      • M
                        mercadof @stephenw10
                        last edited by Apr 16, 2024, 1:20 PM

                        @stephenw10 I turned it off and unchecked the Keep Data/Settings. Does that clear the data that is already stored? If not how do I clear it?

                        1 Reply Last reply Reply Quote 0
                        • S
                          stephenw10 Netgate Administrator
                          last edited by Apr 16, 2024, 1:34 PM

                          Nope that just means it won't keep it if you uninstall it. There is a 'Delete Data' button at the bottom of the page in Diag > Ntopng Settings.

                          M 1 Reply Last reply Apr 16, 2024, 1:42 PM Reply Quote 1
                          • M
                            mercadof @stephenw10
                            last edited by Apr 16, 2024, 1:42 PM

                            @stephenw10 That worked! Utilization back down to 47%. Thank you so much for your help.

                            1 Reply Last reply Reply Quote 1
                            • S
                              stephenw10 Netgate Administrator
                              last edited by Apr 16, 2024, 1:55 PM

                              No worries. I would still consider adding an SSD. Especially if you're going to continue running ntopng as it writes a lot of data and wares the eMMC. The 5100 is particularly unhelpful if the eMMC ever fails!

                              M 1 Reply Last reply Apr 16, 2024, 2:01 PM Reply Quote 0
                              • M
                                mercadof @stephenw10
                                last edited by Apr 16, 2024, 2:01 PM

                                @stephenw10 I ordered one yesterday. Should be in tomorrow. Looks like a weekend project for me. Thanks again.

                                1 Reply Last reply Reply Quote 1
                                15 out of 15
                                • First post
                                  15/15
                                  Last post
                                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                  This community forum collects and processes your personal information.
                                  consent.not_received