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

    Over 100% disk usage

    Scheduled Pinned Locked Moved webGUI
    13 Posts 5 Posters 14.1k 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.
    • S
      sullrich
      last edited by

      Sorry that should be:

      du -h -d1 /

      1 Reply Last reply Reply Quote 0
      • dotdashD
        dotdash
        last edited by

        Seeing over 100% in disk usage is due to the way FreeBSD calculates the free space.
        From the FreeBSD FAQ:
        9.27. How is it possible for a partition to be more than 100% full?
        A portion of each UFS partition (8%, by default) is reserved for use by the operating system and the root user. df(1) does not count that space when calculating the Capacity column, so it can exceed 100%. Also, you will notice that the Blocks column is always greater than the sum of the Used and Avail columns, usually by a factor of 8%.

        1 Reply Last reply Reply Quote 0
        • H
          hoba
          last edited by

          What version is this? Also what packages are you running?

          1 Reply Last reply Reply Quote 0
          • T
            thinair
            last edited by

            Ok, I just tried the du -h -d1 / command.
            2.0K    /.snap
            5.2M    /boot
            780K    /bin
            1.5K    /dev
            16K    /conf.default
            2.3M    /etc
            158K    /libexec
            3.4M    /lib
            25M    /root
            1.9M    /sbin
            118M    /usr
            27G    /var
            686K    /tmp
            2.0K    /mnt
            2.9M    /cf
            2.0K    /media
            2.0K    /proc
            2.0K    /rescue
            12K    /scripts
            27G    /

            I'm using the March 23rd snapshot, the only package I have installed is ntop.  The harddrive is pretty close to be full now, the ntop service has stopped running on its own.  I'm not receiving any errors in the log except when I try to start ntop again.  I do plan to format and reinstall from the stable release and upgrade to the latest snapshot….eventually.

            Nelson Papel

            1 Reply Last reply Reply Quote 0
            • S
              sullrich
              last edited by

              Now do:

              do -d1 -h /var/

              1 Reply Last reply Reply Quote 0
              • T
                thinair
                last edited by

                2.0K    /var/account
                6.0K    /var/at
                2.0K    /var/audit
                2.0K    /var/backups
                4.0K    /var/crash
                4.0K    /var/cron
                27G    /var/db
                2.0K    /var/empty
                2.0K    /var/games
                2.0K    /var/heimdal
                1.5M    /var/log
                2.0K    /var/mail
                2.0K    /var/msgs
                2.0K    /var/named
                2.0K    /var/preserve
                36K    /var/run
                2.0K    /var/rwho
                14K    /var/spool
                4.0K    /var/tmp
                2.0K    /var/yp
                58K    /var/etc
                1.4M    /var/dhcpd
                46K    /var/installer_logs
                27G    /var/

                Nelson Papel

                1 Reply Last reply Reply Quote 0
                • S
                  sullrich
                  last edited by

                  Okay now:

                  du -h /var/db/

                  1 Reply Last reply Reply Quote 0
                  • T
                    thinair
                    last edited by

                    du -h /var/db/
                    2.0K    /var/db/entropy
                    2.0K    /var/db/ipf
                    892K    /var/db/pkg
                    2.0K    /var/db/ports
                    2.0K    /var/db/portsnap
                    2.9M    /var/db/rrd
                    2.0K    /var/db/freebsd-update
                    2.0K    /var/db/pingstatus
                    2.0K    /var/db/pingmsstatus
                    27G    /var/db/ntop
                    27G    /var/db/

                    du -h /var/db/ntop
                    27G    /var/db/ntop/rrd
                    27G    /var/db/ntop

                    du -h /var/db/ntop/rrd/
                    2.0K    /var/db/ntop/rrd/graphics
                    4.0K    /var/db/ntop/rrd/flows
                    27G    /var/db/ntop/rrd/interfaces
                    27G    /var/db/ntop/rrd

                    du -h /var/db/ntop/rrd/interfaces
                    14G    /var/db/ntop/rrd/interfaces/xl0
                    12G    /var/db/ntop/rrd/interfaces/xl1
                    393M    /var/db/ntop/rrd/interfaces/ath0
                    27G    /var/db/ntop/rrd/interfaces

                    Ok, take your pick :P

                    Nelson Papel

                    1 Reply Last reply Reply Quote 0
                    • S
                      sullrich
                      last edited by

                      Well, there it is, NTOP hogging it all.  I would recommend deleting that /var/db/ntop directory and starting over.  That is interesting that it does not recycle its logs!?

                      1 Reply Last reply Reply Quote 0
                      • B
                        billm
                        last edited by

                        Looks like it's the ntop rrd files.  ouch!

                        –Bill

                        pfSense core developer
                        blog - http://www.ucsecurity.com/
                        twitter - billmarquette

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