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

    Hard disk 100%

    Scheduled Pinned Locked Moved Hardware
    7 Posts 4 Posters 3.0k 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.
    • K
      Killerblaster
      last edited by

      HI all

      IT seems that my pfsense 2.0 stable hard disk is full, is at 100% in the main page, however I can not find any tool to check the usage of the hard disk.

      I use squid and squidguard, and the cache is limited to 4GB.

      I have disabled all the logs, but don't know how to erase data, or how to figure out what folder is using more gigabytes.

      Please help!

      1 Reply Last reply Reply Quote 0
      • P
        podilarius
        last edited by

        start with
        cd /
        then do:
        du -sh *

        From there find which has the biggest and go down a level following the directory with the most size.
        Most likely squid cache is the culprit.

        1 Reply Last reply Reply Quote 0
        • K
          Killerblaster
          last edited by

          Thats right

          under /var/squid/cache

          This file is using almost 99% of the disk

          swap.state

          Any idea how to fix that? I think it is the cahce disk or something like that, the very interesting thing is that it started to grow 3 hours ago, when one of the providers went down.

          Regards

          1 Reply Last reply Reply Quote 0
          • Cry HavokC
            Cry Havok
            last edited by

            That's your cache for your Squid proxy.

            The brute force method is to shut down Squid and then do something like find /var/squid/cache -type f -exec rm {} ; before starting Squid again.

            1 Reply Last reply Reply Quote 0
            • K
              Killerblaster
              last edited by

              I did squid -z then I deleted the swap.state

              And now is fine, but…. this squid has been rock solid for maybe 3 months already, with only 4Gb of cache disk, then today one of my ISP failed and I moved everything to the backup, as soon i did that, the har disk got full, according to nagios my hard disk ahs been in 9%, but today, today... don't know.

              1 Reply Last reply Reply Quote 0
              • Cry HavokC
                Cry Havok
                last edited by

                Does the Squid log tell you what happened? How much disk space did it consume?

                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  FYI- This is covered on the doc wiki, and in the squid FAQ.

                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

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