Navigation

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

    Disk usage 100%

    General pfSense Questions
    2
    6
    4043
    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.
    • J
      josey last edited by

      Hi guys
      I was searching forum for help with no luck,
      I have 100% of disk usage, and network performance become really poor…
      is there way to manually "clean" disk?

      It seems that squid cache eat all disk space.
      I have 2HDD 320gb in raid (640gb total) and cache is set to 500gb
      4gb ram with 8gb swap

      $ df -h
      Filesystem    Size    Used  Avail Capacity  Mounted on
      /dev/ar0s1a    570G    524G      0B  100%    /
      devfs          1.0K    1.0K      0B  100%    /dev
      /dev/md0      3.6M    34K    3.3M    1%    /var/run
      devfs          1.0K    1.0K      0B  100%    /var/dhcpd/dev

      thanks

      1 Reply Last reply Reply Quote 0
      • N
        Nachtfalke last edited by

        Delete squid cache from disk.

        Look at /var/squid/

        1 Reply Last reply Reply Quote 0
        • J
          josey last edited by

          Squid stopped on services
          then trying to delete it, but it seems im doing it wrong
          can you help please

          this in my cache dir
          ls /var/squid/cache
          00
          01
          02
          03
          04
          05
          06
          07
          08
          09
          0A
          0B
          0C
          0D
          0E
          0F
          swap.state
          swap.state.clean
          swap.state.new

          1 Reply Last reply Reply Quote 0
          • N
            Nachtfalke last edited by

            @josey:

            Squid stopped on services
            then trying to delete it, but it seems im doing it wrong
            can you help please

            this in my cache dir
            ls /var/squid/cache
            00
            01
            02
            03
            04
            05
            06
            07
            08
            09
            0A
            0B
            0C
            0D
            0E
            0F
            swap.state
            swap.state.clean
            swap.state.new

            rm -r /var/squid/cache/*
            

            after that:

            squid -z
            
            1 Reply Last reply Reply Quote 0
            • J
              josey last edited by

              thanks
              did that and after 3 hours :)
              result is:
              disk usage 86%

              and
              $ df -h
              Filesystem    Size    Used  Avail Capacity  Mounted on
              /dev/ar0s1a    570G    451G    73G    86%    /
              devfs          1.0K    1.0K      0B  100%    /dev
              /dev/md0      3.6M    34K    3.3M    1%    /var/run
              devfs          1.0K    1.0K      0B  100%    /var/dhcpd/dev

              and im confused completely, it is suppose to delete all cache, and it did, but there is still 451GB of something? i dont think that is from logs, because i dont have much logging enabled.

              1 Reply Last reply Reply Quote 0
              • J
                josey last edited by

                ok, my mistake
                everything fine after squid -z and reboot
                disk usage 0%

                thanks

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post