jschiwal |
02-03-2010 11:33 AM |
Look at "lsof +L1" to list deleted files. A common method is to open a file (in C) and delete it, but keep the FD number. The directory entry is gone but the program can still use the file because the kernel won't remove the inode until the file is closed. Now if the program crashes, there won't be a stale file. Rebooting will remove these temporary files, or restarting the programs or services that are accessing them.
Other differences could be due to a file being sparse. You didn't mention which was the second tool that said 36GB free.
The filesystem may also have a certain percentage reserved for the root user. As root, this space may be counted as free space while as a regular user it wouldn't be. If this isn't for the root directory or a system directory, you may be able to run a program to adjust this. For ext2/3/4 use the tune2fs program. The intent is to A) reduce fragmentation B) Allow services to run if regular user files fill the filesystem.
|