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!
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.
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.
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.
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!
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)
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)
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)
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)