Disk usage 100%



  • 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



  • Delete squid cache from disk.

    Look at /var/squid/



  • 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



  • @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
    


  • 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.



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

    thanks


Log in to reply