Cian Cullinan wrote:
> "ls -l" and "du -s" are
> reporting different values for many files, eg:
>> [root at Netmon10 root]# ls -lh /var/log/httpd/access_log
> -rw-r--r-- 1 root root 2.1M Sep 22 21:25
> /var/log/httpd/access_log
>> [root at Netmon10 root]# du -hs /var/log/httpd/access_log
> 37M /var/log/httpd/access_log
Hmm there is a difference between the blocks used and the file size.
I would guess that some program had access_log open, thus
keeping a hold on the blocks even if the file is truncated etc.
by another process. lsof /var/log/httpd/access_log should tell
you if some process has it open, and restarting that processes
should free the blocks up?
--
Pádraig Brady - http://www.pixelbeat.org
--- Following generated by rotagator ---
Exporting filesystems over NFS
To export filesystem in NFS with read-only access and no root
write access, edit the /etc/exports file and add the following line:
/dir/to/export (ro,insecure,all_squash).
'man 5 exports' for other details
The `exportfs -r` command makes the /etc/exports command take affect
--
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!