*************************************************
This message has been scanned by IMSS NIT-Silchar
>
> Jyotishmaan Ray wrote:
>> Please find your reply below embedded:
>>
>>
>>
/0K /var/nis
>> 8.0K /var/opt
>> 8.0K /var/preserve
>> 8.0K /var/racoon
>> 384K /var/run
>> 1.8G /var/spool
>> 2.5M /var/tmp
>> 12M /var/www
>> 24K /var/yp
>> [root_at_stud-pxy ~]#
>>
>>
>> Now tell me should I delete /var/cache as it occupies around 127M of the
>> disk space. In doing so it will create a lot of free space in the /var
>> partition, but then how good it would be for the cache ??
>>
>> Will it become too slow as then cache has been removed ?
>
> Ah, /var/cache usually contains the combined caches of many system
> services. You can see which ones by "ls -la /var/cache"
The output of ls -la /var/cache is shown below as:
Now tell me which directories should I look on to delete the unwanted files.
[root_at_stud-pxy squid]# ls -la /var/cache
total 172
drwxr-xr-x 22 root root 4096 2007-12-27 15:39 .
drwxr-xr-x 27 root root 4096 2007-12-27 20:43 ..
drwxr-xr-x 3 root root 4096 2007-12-27 21:02 alchemist
drwxrws--- 18 root ccache 4096 2008-04-10 14:15 ccache
drwxrwxrwt 2 root root 4096 2007-12-27 15:39 coolkey
drwxrwxr-x 2 root lp 4096 2007-12-27 15:38 cups
drwxr-xr-x 2 apache apache 4096 2007-06-02 12:32 dap-server
drwxr-xr-x 3 root root 4096 2007-12-27 20:33 dirmngr
drwxr-xr-x 2 root root 4096 2008-03-31 14:56 fontconfig
drwxr-xr-x 2 root root 4096 2008-04-01 18:56 foomatic
drwx------ 2 haldaemon haldaemon 4096 2008-05-11 19:52 hald
drwxr-xr-x 3 root root 4096 2007-12-27 20:48 jetty
drwx------ 2 root root 4096 2008-05-11 19:01 ldconfig
drwxr-xr-x 2 root root 4096 2008-09-12 04:16 logwatch
drwxr-xr-x 14 root root 4096 2007-12-27 17:02 man
drwxrwxr-x 2 root apache 4096 2007-09-18 04:51 mason
drwx------ 2 apache apache 4096 2008-01-28 16:57 mod_proxy
drwx------ 2 apache root 4096 2008-01-28 16:57 mod_ssl
drwxr-xr-x 4 root root 4096 2008-02-13 01:29 tomcat5
drwxr-xr-x 2 vdr root 4096 2007-10-17 12:30 vdr
drwxr-xr-x 2 vdradmin vdradmin 4096 2007-12-20 06:30 vdradmin
drwxr-xr-x 5 root root 4096 2008-01-23 10:55 yum
[root_at_stud-pxy squid]#
>
> The worst problem you have is as I suspected the logs at ~10,000 MB,
> next biggest is the /var/spool at ~2,000 MB (which is probably where
> squid cache data actually is).
>
The following has been observed in the /var/spool. this is as shown below.
It has been observed that most of the files of /var/spool/squid are all
empty except some which are big and they are in machine format (ascii).
If these files are used by the cache to speed up the function of the proxy
whenever it comes across a request from a student.
[root_at_stud-pxy squid]# ls -la /var/spool/squid
total 1878740
drwxr-x--- 2 squid squid 4096 2008-09-12 00:45 .
drwxr-xr-x 17 root root 4096 2008-05-11 18:59 ..
-rw------- 1 squid squid 0 2008-02-29 12:12 core.10033
-rw------- 1 squid squid 0 2008-08-15 03:14 core.10987
-rw------- 1 squid squid 0 2008-08-15 03:15 core.13847
-rw------- 1 squid squid 0 2008-08-15 03:15 core.13867
-rw------- 1 squid squid 0 2008-08-15 03:15 core.13875
-rw------- 1 squid squid 0 2008-08-15 03:16 core.13886
-rw------- 1 squid squid 0 2008-08-15 03:16 core.13897
-rw------- 1 squid squid 0 2008-08-15 03:16 core.13905
-rw------- 1 squid squid 0 2008-08-15 03:16 core.13913
-rw------- 1 squid squid 0 2008-08-15 03:16 core.13921
-rw------- 1 squid squid 0 2008-08-15 03:16 core.13930
-rw------- 1 squid squid 0 2008-08-15 03:17 core.13938
-rw------- 1 squid squid 0 2008-08-15 03:17 core.13946
-rw------- 1 squid squid 0 2008-08-15 03:17 core.13954
-rw------- 1 squid squid 0 2008-08-15 03:17 core.13962
-rw------- 1 squid squid 0 2008-08-15 03:17 core.13970
-rw------- 1 squid squid 0 2008-08-15 03:18 core.13980
-rw------- 1 squid squid 0 2008-08-15 03:18 core.13988
-rw------- 1 squid squid 0 2008-08-15 03:19 core.13996
-rw------- 1 squid squid 0 2008-08-15 03:19 core.14006
-rw------- 1 squid squid 0 2008-08-15 03:20 core.14015
-rw------- 1 squid squid 0 2008-08-15 03:20 core.14039
-rw------- 1 squid squid 0 2008-08-15 03:20 core.14048
-rw------- 1 squid squid 0 2008-08-15 03:20 core.14057
-rw------- 1 squid squid 0 2008-08-15 03:21 core.14066
-rw------- 1 squid squid 0 2008-08-15 03:21 core.14081
-rw------- 1 squid squid 0 2008-08-15 03:21 core.14089
-rw------- 1 squid squid 0 2008-08-15 03:21 core.14098
-rw------- 1 squid squid 0 2008-08-15 03:21 core.14106
-rw------- 1 squid squid 0 2008-08-15 03:21 core.14115
-rw------- 1 squid squid 0 2008-08-15 03:22 core.14123
-rw------- 1 squid squid 0 2008-08-15 03:22 core.14131
-rw------- 1 squid squid 0 2008-08-15 03:22 core.14141
-rw------- 1 squid squid 0 2008-08-15 03:22 core.14150
-rw------- 1 squid squid 274755584 2008-05-11 00:33 core.14159
-rw------- 1 squid squid 0 2008-08-15 03:22 core.14160
-rw------- 1 squid squid 0 2008-08-15 03:23 core.14168
-rw------- 1 squid squid 0 2008-08-15 03:23 core.14176
-rw------- 1 squid squid 0 2008-08-15 03:23 core.14184
-rw------- 1 squid squid 0 2008-08-15 03:23 core.14192
-rw------- 1 squid squid 0 2008-08-15 03:23 core.14202
-rw------- 1 squid squid 0 2008-08-15 03:23 core.14210
-rw------- 1 squid squid 0 2008-08-15 03:24 core.14218
-rw------- 1 squid squid 0 2008-08-15 03:24 core.14226
-rw------- 1 squid squid 0 2008-08-15 03:24 core.14234
-rw------- 1 squid squid 0 2008-08-15 03:24 core.14242
-rw------- 1 squid squid 0 2008-08-15 03:24 core.14250
-rw------- 1 squid squid 0 2008-08-15 03:24 core.14258
-rw------- 1 squid squid 0 2008-08-15 03:24 core.14266
-rw------- 1 squid squid 0 2008-08-15 03:24 core.14274
-rw------- 1 squid squid 273784832 2008-09-05 00:50 core.15288
-rw------- 1 squid squid 298901504 2008-02-09 02:24 core.19953
-rw------- 1 squid squid 0 2008-08-14 11:24 core.2041
-rw------- 1 squid squid 0 2008-08-17 15:52 core.2043
-rw------- 1 squid squid 0 2008-02-28 00:47 core.2050
-rw------- 1 squid squid 192131072 2008-09-09 00:40 core.2053
-rw------- 1 squid squid 280207360 2008-08-30 00:51 core.2054
-rw------- 1 squid squid 10489856 2008-08-14 12:06 core.2055
-rw------- 1 squid squid 0 2008-08-10 12:07 core.2056
-rw------- 1 squid squid 0 2008-08-17 15:50 core.2066
-rw------- 1 squid squid 0 2008-09-04 01:03 core.2092
-rw------- 1 squid squid 0 2008-09-12 00:45 core.21345
-rw------- 1 squid squid 0 2008-08-14 11:24 core.2272
-rw------- 1 squid squid 0 2008-08-17 15:53 core.2277
-rw------- 1 squid squid 0 2008-08-10 12:07 core.2278
-rw------- 1 squid squid 0 2008-08-14 11:24 core.2280
-rw------- 1 squid squid 0 2008-08-17 15:53 core.2285
-rw------- 1 squid squid 0 2008-08-10 12:07 core.2286
-rw------- 1 squid squid 0 2008-08-17 15:50 core.2287
-rw------- 1 squid squid 0 2008-08-14 11:24 core.2288
-rw------- 1 squid squid 0 2008-08-10 12:07 core.2294
-rw------- 1 squid squid 0 2008-08-17 15:50 core.2295
-rw------- 1 squid squid 0 2008-08-14 11:24 core.2297
-rw------- 1 squid squid 0 2008-08-17 15:50 core.2303
-rw------- 1 squid squid 0 2008-08-17 15:50 core.2312
-rw------- 1 squid squid 0 2008-08-17 15:53 core.2337
-rw------- 1 squid squid 0 2008-08-17 15:53 core.2347
-rw------- 1 squid squid 0 2008-08-17 15:53 core.2386
-rw------- 1 squid squid 0 2008-08-17 15:53 core.2395
-rw------- 1 squid squid 0 2008-08-17 15:53 core.2403
-rw------- 1 squid squid 0 2008-08-17 15:53 core.2412
-rw------- 1 squid squid 0 2008-08-17 15:53 core.2420
-rw------- 1 squid squid 0 2008-08-17 15:50 core.2425
-rw------- 1 squid squid 0 2008-08-17 15:50 core.2433
-rw------- 1 squid squid 0 2008-08-17 15:51 core.2471
-rw------- 1 squid squid 0 2008-08-17 15:51 core.2480
-rw------- 1 squid squid 0 2008-08-17 15:51 core.2488
-rw------- 1 squid squid 276963328 2008-08-31 00:50 core.24985
-rw------- 1 squid squid 0 2008-08-14 11:39 core.2510
-rw------- 1 squid squid 0 2008-08-14 11:39 core.2519
-rw------- 1 squid squid 0 2008-08-14 11:40 core.2527
-rw------- 1 squid squid 0 2008-08-14 11:40 core.2548
-rw------- 1 squid squid 0 2008-08-14 11:40 core.2556
-rw------- 1 squid squid 0 2008-08-17 15:51 core.2558
-rw------- 1 squid squid 0 2008-08-17 15:51 core.2566
-rw------- 1 squid squid 0 2008-08-17 15:51 core.2575
-rw------- 1 squid squid 0 2008-08-17 15:51 core.2583
-rw------- 1 squid squid 0 2008-08-17 15:51 core.2623
-rw------- 1 squid squid 0 2008-08-17 15:51 core.2631
-rw------- 1 squid squid 0 2008-08-14 11:46 core.2982
-rw------- 1 squid squid 0 2008-08-14 11:46 core.2991
-rw------- 1 squid squid 0 2008-08-13 21:17 core.30002
-rw------- 1 squid squid 0 2008-08-14 11:46 core.3006
-rw------- 1 squid squid 0 2008-08-17 03:49 core.30132
-rw------- 1 squid squid 0 2008-08-14 11:46 core.3016
-rw------- 1 squid squid 0 2008-08-14 11:46 core.3024
-rw------- 1 squid squid 0 2008-08-14 11:49 core.3129
-rw------- 1 squid squid 58486784 2008-04-11 00:17 core.31365
-rw------- 1 squid squid 0 2008-08-14 11:49 core.3157
-rw------- 1 squid squid 0 2008-08-14 11:49 core.3165
-rw------- 1 squid squid 0 2008-02-29 00:39 core.31680
-rw------- 1 squid squid 0 2008-08-14 11:49 core.3182
-rw------- 1 squid squid 0 2008-08-14 11:49 core.3190
-rw------- 1 squid squid 0 2008-08-14 11:49 core.3198
-rw------- 1 squid squid 0 2008-08-14 11:49 core.3206
-rw------- 1 squid squid 0 2008-08-14 11:49 core.3215
-rw------- 1 squid squid 0 2008-08-14 11:49 core.3223
-rw------- 1 squid squid 0 2008-08-14 11:49 core.3231
-rw------- 1 squid squid 0 2008-08-14 12:01 core.3424
-rw------- 1 squid squid 0 2008-08-14 12:01 core.3461
-rw------- 1 squid squid 0 2008-08-14 12:01 core.3469
-rw------- 1 squid squid 0 2008-08-14 12:01 core.3478
-rw------- 1 squid squid 0 2008-08-14 12:01 core.3486
-rw------- 1 squid squid 0 2008-08-14 12:02 core.3576
-rw------- 1 squid squid 0 2008-08-14 12:02 core.3585
-rw------- 1 squid squid 0 2008-08-14 12:02 core.3594
-rw------- 1 squid squid 0 2008-08-14 12:03 core.3602
-rw------- 1 squid squid 0 2008-08-14 12:03 core.3611
-rw------- 1 squid squid 0 2008-08-14 12:03 core.3647
-rw------- 1 squid squid 0 2008-08-14 12:03 core.3663
-rw------- 1 squid squid 0 2008-08-14 12:03 core.3671
-rw------- 1 squid squid 0 2008-08-14 12:03 core.3679
-rw------- 1 squid squid 0 2008-08-14 12:03 core.3687
-rw------- 1 squid squid 0 2008-08-14 15:56 core.5088
-rw------- 1 squid squid 263348224 2008-04-05 00:37 core.5249
-rw------- 1 squid squid 0 2008-08-17 03:49 core.5473
-rw------- 1 squid squid 0 2008-08-17 03:49 core.5481
-rw------- 1 squid squid 0 2008-08-17 03:49 core.5489
-rw------- 1 squid squid 0 2008-08-17 03:50 core.5498
-rw------- 1 squid squid 0 2008-08-17 03:50 core.5518
-rw------- 1 squid squid 0 2008-08-14 15:56 core.8089
-rw------- 1 squid squid 0 2008-08-14 15:56 core.8112
-rw------- 1 squid squid 0 2008-08-14 15:56 core.8142
-rw------- 1 squid squid 0 2008-08-14 15:57 core.8171
-rw------- 1 squid squid 0 2008-08-14 15:57 core.8204
[root_at_stud-pxy squid]# pwd
/var/spool/squid
[root_at_stud-pxy squid]# du -sh /var/spool/squid
1.8G /var/spool/squid
[root_at_stud-pxy squid]#
> Find out whats leaving so many of such big logs and see if you can cut
> the size down a bit.
>
> Amos
>
>>
>> Give the pointers and the step-wise solution of the problem.
>>
>>
>> > Which will show you what parts of /var/ are the biggest space users
>> and
>> > then recurse down to see what inside them is wasting space.
>> >
>> >>
>> >> Give some poniters, as i am a new bie.
>> >>
>> >> As of now, I keep deleting the files which are created on daily
>> basis.
>> >>
>> >
>> > huh? what filenames?
>>
>> yup these files are generated to keep track of the sites visited by the
>> student users more than 1000, to keep a check on :
>>
>> they are crated on the directory:
>>
>> /var/www/sarg/daily
>>
>> The filenames are of the type:
>>
>> 2008Sep10-2008Sep10
>>
Received on Fri Sep 12 2008 - 14:24:32 MDT
This archive was generated by hypermail 2.2.0 : Sat Sep 13 2008 - 12:00:03 MDT