I found myself out of diskspace due to a runaway httpd log (or bad
planning, take your pick). I removed one of the logs (see below) but df
still reported 0% available. Any suggestions why this would not have
created 424M of space?
Subsequently I backed up the entire directory and then for each log
file did:
[root@ns httpd]# cat > access_lot
^d
[root@ns httpd]#
and that seemed to fix things.
David
[root@ns httpd]# ls -lH
total 1.1G
-rw-r--r-- 1 root root 147M Apr 27 14:11 access_log
-rw-r--r-- 1 root root 294M Apr 27 14:11 agent_log
-rw-r--r-- 1 root root 223M Apr 27 14:11 error_log
-rw-r--r-- 1 root root 424M Apr 27 14:11 referer_log
[root@ns httpd]# rm referer_log
rm: remove `referer_log'? y
[root@ns httpd]#
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug