Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-21-2008, 01:51 AM   #1
LQ Newbie
Registered: Mar 2007
Posts: 2

Rep: Reputation: 0
Deleting a 28gb log file has no impact on disk usage, can someone explain why?


Could someone explain the following, I've never understood how deleting a 28gb log file would not reduce the disk usage on the filesystem?



[root@linuxcp20051 vhosts]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/cciss/c0d0p1    139074672  86111216  45898876  66% /
none                   2073888         0   2073888   0% /dev/shm

[root@linuxcp20051 vhosts]# du -sh /home/feed.log
28G     /home/feed.log

[root@linuxcp20051 vhosts]# rm -f /home/feed.log

[root@linuxcp20051 vhosts]# df

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/cciss/c0d0p1    139074672  86119364  45890728  66% /
none                   2073888         0   2073888   0% /dev/shm
Old 10-21-2008, 02:00 AM   #2
Senior Member
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Old 10-21-2008, 02:03 AM   #3
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
If the feed.log file is still opened by another program, the inode for that program won't be removed until after that program closes the program.
Old 10-21-2008, 05:50 AM   #4
Registered: Oct 2007
Distribution: Fedora, openSUSE
Posts: 252

Rep: Reputation: 39
Or could there be a hard link to feed.log? Not sure how you'd search for that


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removed a large file but disk usage not updated. LucL Red Hat 2 03-21-2007 07:46 PM
Please explain Linux memory usage DIGITAL39 Linux - General 6 12-31-2006 03:59 PM
LXer: Open Source Impact on Software Innovation Outweighs Impact on ... LXer Syndicated Linux News 0 08-15-2006 01:54 PM
Log entry: can someone explain this? future assassin Slackware 3 11-22-2005 02:46 AM
how to log data to disk file mikesievers Programming 1 04-25-2002 12:36 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration