Filesystem filling up and no clue as to why!


 
Thread Tools Search this Thread
Operating Systems Solaris Filesystem filling up and no clue as to why!
# 1  
Old 09-19-2008
Filesystem filling up and no clue as to why!

df shows that the filesystem is filling up and the usage is 94%.
However when I actually traverse to the directory I du shows only about
10% of the space occupied!

Below is the output of df and du:
>>>df -kh
/cbmdata/00 470M 393M 29M 94% /cbmdata/00

>>>/cbmdata/00> du -sh *
57K billing
1K config
48M coreEMS
1.7M data
115K gdd
8K lost+found
4K sba

I am wondering how the hell is filesystem is so full!
Any pointers of what to look for and how would be a great help!

Thanks a lot.
# 2  
Old 09-19-2008
A process can open file, then unlink it. The file "disappears" to other users. As long as the file is held open by the originating process, the data exists on disk. Even if you cannot see it. It is a nice security measure. Plus the file goes away when the process closes it or exits.

That may be your problem.
Code:
lsof | grep  'cbmdata/00'

will show open files - if you have fuser instead you can try that. If there are no identifable large files look for files that do not show up in ls.
# 3  
Old 09-19-2008
One cause I see a lot of is someone 'removing', moving or clearing log files. Often someone will do an 'rm' of a log file which is held open. While the file will disappear from the file system ('ls' will not display it) it is still there and being written to by some process.

Also, do a find by size. It is possible that you are not looking at '.' files as the "*" in your example will not display '.' files.

find /cbmdata/00 -size +10000000c
# 4  
Old 09-19-2008
Thanks for your replies!

I figured out that the mount point was not empty by itself!
The mount point itself had about 300MB of data.
I unmounted the filesystem and checked for disk usage and bingo!
There it was!

Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need a clue to write a IF statement

Hi all, i am writing a shell script in which i got stuck when tried to use a if statement. This is my code : #!/bin/sh today=`date +"%a %b %e"` find /prod/logs -name '*.log' -mtime 0 -exec cp {} /home/hzjnr0/test \; find /home/hzjnr0/test -type f -exec grep -i "successfully" {} \; >... (6 Replies)
Discussion started by: Soma Das
6 Replies

2. UNIX for Dummies Questions & Answers

Root filesystem filling up!

Hi all. New to the forum and new to Unix admin... / filesystem filled up and I can't find where the large files are. Any help will be apppreciated: # df -k Filesystem kbytes used avail capacity Mounted on /dev/dsk/c1t0d0s0 8063580 7941745 41200 100% / /proc ... (4 Replies)
Discussion started by: jamie_collins
4 Replies

3. UNIX for Advanced & Expert Users

diff command filling /var filesystem space

Hi, I am using diff command to check difference between two files.Both files are very big and when i execute this command /var temp space is filled up almost 99%. Can any one please tell me is there any way i can specify directory name which has more space so that diff can use that dir for... (2 Replies)
Discussion started by: ukatru
2 Replies

4. Programming

I have no clue what's the point - fcntl() ?

hi, I need to know how to lock a file. I used the following code, but after executing the program the file 'write.txt' remined empty, and I have no idea why.Maybe I'm not using the corresponding syntax for blocking a file. But I deleted then the blocking part and the problem persisted. see to... (2 Replies)
Discussion started by: atticus
2 Replies
Login or Register to Ask a Question