Re: [squid-users] Disk Space problem in a squid-proxy server

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sat, 18 Oct 2008 16:04:50 +1300

jmaan_at_nits.ac.in wrote:
> *************************************************
> This message has been scanned by IMSS NIT-Silchar
>
>
>
> Please see below the output of pwd and df commands:-
>
> [root_at_stud-pxy squid]# pwd
> /var/log/squid
> [root_at_stud-pxy squid]# ls -l
> total 1005212
> -rw-r--r-- 1 squid squid 502314096 2008-10-17 22:40 access.log
> drwxr-xr-x 2 root root 4096 2008-10-17 00:49 Backup
> -rw-r--r-- 1 squid squid 920314 2008-10-17 22:40 cache.log
> -rw-r--r-- 1 root root 135898 2008-10-17 18:27 squid.out
> -rw-r--r-- 1 squid squid 524928293 2008-10-17 22:40 store.log
> [root_at_stud-pxy squid]#
>
>
> In my proxyserver, the access.log is under the path /var/log/squid.
>
>
> Now please tell me do i need to keep the cache.log file. Can i delete this
> file to create more space....?
>
> Also what can i do delete/ squeeze the access.log file ?
>

squid -k rotate

>
> I have looked into the squid.conf file, and there is line like this below.
>
> cache_dir ufs /home/squid 30720 16 256
>

Thats 2/3 the drive space of /home. seems reasonable for a dedicated
proxy box.

> What should I do or can do to reduce the size of the /var partition in my
> proxy-server ?
>
> The output if the df command shows up utilization of 94% of the hard disk.
>
> [root_at_stud-pxy squid]# df
> Filesystem 1K-blocks Used Available Use% Mounted on
...
> 14855176 13145712 942696 94% /var
> 34756272 29043404 3918820 89% /home
...

   "store_log none" will kill the store log entirely. Its not really needed.

Regular rotate's as mentioned earlier and by others will keep the
access.log from growing so huge.

BUT, the squid files total to only 1GB. Whatever is causing the rest of
the 15GB to fill up does not appear to be Squid from those traces.
Are you sure the cores from earlier stopped rather than changing location?

Amos

-- 
Please use Squid 2.7.STABLE4 or 3.0.STABLE9
Received on Sat Oct 18 2008 - 03:04:55 MDT

This archive was generated by hypermail 2.2.0 : Sat Oct 18 2008 - 12:00:03 MDT