Hi
Can someone explain this to me?
I started off with
Code:
[root@zs]# df -h
Filesystem Size Used Avail Use% Mounted on
...
/dev/hda6 48G 45G 0 100% /var
So I did some investigating and found these three files
6.6G /var/log/httpd/error_log.1
7.3G /var/log/httpd/error_log.2
6.7G /var/log/httpd/ssl_error_log.2
I had a look in them, saw which php was causing the trouble, fixed it and deleted the log files. Then I had...
Code:
[root@zeldia tmp]# df -h
Filesystem Size Used Avail Use% Mounted on
...
/dev/hda6 48G 25G 21G 55% /var
But whithin about an hour the used space (according to df) had gone up to 39G, the newly used 14G were not in the log files, infact I can't find them anywhere and du is reporting only 27G used. So why the descrepancy? Where have my 14Gs gone?
Code:
[root@zs]# df -h /var
Filesystem Size Used Avail Use% Mounted on
/dev/hda6 48G 39G 6.0G 87% /var
[root@zs]# du -sh /var
27G /var
[root@zs]# du -sh /var/*
12K /var/account
22M /var/cache
16K /var/crash
8.0K /var/cvs
28K /var/db
16K /var/empty
28K /var/gdm
146M /var/lib
8.0K /var/local
124K /var/lock
2.9G /var/log
20K /var/lost+found
4.0K /var/mail
80K /var/named
8.0K /var/nis
8.0K /var/opt
8.0K /var/preserve
8.0K /var/racoon
288K /var/run
1.6M /var/spool
8.0K /var/tmp
8.0K /var/tux
24G /var/www
24K /var/yp