Disk space vanishes then reappears


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Disk space vanishes then reappears
# 1  
Old 12-14-2009
Disk space vanishes then reappears

Can you tell me a command to show which file in the filesystem recently grew tremendously and then went back to its original size? I tried looking into dtrace disk i/o type commands but they take time to learn.. I want to know how to detect where in the filesystem the most drastic disk usage changes recently occurred. Thanks!

---------- Post updated at 03:58 PM ---------- Previous update was at 02:38 PM ----------

Is this not possible? I was hoping it would be find with exec and some filters on it, but maybe it is way harder than that?
# 2  
Old 12-14-2009
I don't have a solution - just a comment.

A process can create a file with open(), then remove the file. The process at this point now has a file which does not show up in utilities like ls, for example. The file is removed from the filesystem when the last process that has a decriptor for the file closes the descriptor. This can make it hard to find the process behind the problem. Or the cause of a huge flux in disk space.

I mention this because it sounds like you've tried a scan with find and it is not picking up really big files that come and go.
# 3  
Old 12-15-2009
Yes Jim, that is a valid point.. If I could find out what file it is, I would have a better idea of the process.. How about a command to have any file that grows above say, 20GB reported in system log? Is that doable?
# 4  
Old 12-21-2009
block it, instead of spot it ...

here's my two cents:

- as the easier/cheaper alternative, I would recommend using disk quotas in order to block the growing of the suspicious file, thus triggering a syslog event for quota-offenders ;

- now deeper (and way different) than that approach, a Dtrace probe to inspect the stat/lstat syscalls and the st_size value can spot your file, at the costs of some overhead to your overall performance, and some Dtrace programming ;

good luck, and success !

alexandre botao
<< botao {dot} org >>
# 5  
Old 12-28-2009
Botao, that is also a valid point, but from what I'm being told by the sysadmin, we have quotas and they are being ignored fir some reason.. this is a Mac OS X environment with disk quotas applied through the workgroup mgr util.

---------- Post updated at 11:06 AM ---------- Previous update was at 11:05 AM ----------

We have discovered that Firefox 3.5.5 was causing this problem, so I we have rolled it back. Thank for the help, I'd still be interested in any others thoughts on the issue, but it can be closed if necessary.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Login screen reappears..!!

Hi all, My login screen reappears if i give a correct password for a user and give login.. I am doing Linux BMR process for CentOs .. I first backup the ' / ' folder with partition details and then restore it using a live cd. By doing so i got succeeded in restoring a machine.. But while... (0 Replies)
Discussion started by: selvarajvs
0 Replies

2. Solaris

Disk Space

I know there are other threads but they have not helped. My server is running low on disk space and I haven't been able to re-allocate. I think my solaris machine is missing tools or the way it was originally setup, may not have the right pathing. $ df -k Filesystem kbytes used... (5 Replies)
Discussion started by: lnxjenn
5 Replies

3. Solaris

Setting PATH - Vanishes

Hi , I new to solaris. I want to set path variable . Eg: JAVA_HOME. When i do this, #JAVA_HOME=/usr/jdk/jdk1.6 #export JAVA_HOME #echo $JAVA_HOME /usr/jdk/jdk1.6 Then its ok. When i toggle to bourne shell or if i log off or restart. then JAVA_HOME is echoed blank. How to set... (4 Replies)
Discussion started by: gnanagurus
4 Replies

4. UNIX for Dummies Questions & Answers

How much disk space?

Hi, I have this : uname -a Linux servername 2.6.18-194.11.3.el5PAE #1 SMP Mon Aug 23 15:57:10 EDT 2010 i686 i686 i386 GNU/Linux df -k Sys. de fich. 1K-blocs Occupied Disponible Capacity Monted on /u01/applis 10321208 3190160 6606760 33% /applis Does it mean... (1 Reply)
Discussion started by: big123456
1 Replies

5. Shell Programming and Scripting

Cron job vanishes if i disconnect the session upruptly

Hi Am logging in to the server as root. Using the export EDITOR=vi option before editing the cron file editing the crontab entry using crontab -e option the additional jobs which i added can be seen immediately, but when i disconnect the session upruptly the cron entry vanishes the next time... (4 Replies)
Discussion started by: aemunathan
4 Replies

6. Red Hat

disk space

when i check /export directory of my machine gets filled up (85%) i removed some old logs. but after cleaning df -k command still shows that /export is still 85% full. Is there a way to force df to reflect actual free space without rebooting? My machine is a production one and can't... (8 Replies)
Discussion started by: aboorkuma
8 Replies

7. Filesystems, Disks and Memory

disk space

Hi experts i am new in unix and informix and would like to ask 2 questions 1) my server shows when using df -k fs 1024-block used available /usr 10079072 3668670 6381144 does this mean i have 10GB, and used up 3.7GB and available 6.3GB ??? is... (3 Replies)
Discussion started by: kingsto88
3 Replies

8. UNIX for Dummies Questions & Answers

available disk space on disk device???

Hello, Can someone please tell me which command to use to determine the available disk space on a given disk device? I have to write a shell script that compresses files and stores them in a specific location but I am not sure how "conservative" I should be? Thanks in advance! Al. (4 Replies)
Discussion started by: alan
4 Replies

9. Filesystems, Disks and Memory

Disk Space -

I know I have posted this question before, but I still just don't understand how to determine disk space. This server is an IBM RS6000 running on AIX version 4.2.1. I in essence need to know the following if anyone can assist me. 1) I need to know how many drives are configured in the... (2 Replies)
Discussion started by: Docboyeee
2 Replies

10. UNIX for Dummies Questions & Answers

Out of disk space?

Hi I'm trying to install gcc and the installation program tells me that I'm out of disk space! I have just installed the os (using the default settings for partitions and sizes) and have only installed apache on the machine. Can it really be out of disk space already? How do I check how much... (4 Replies)
Discussion started by: alfabetman
4 Replies
Login or Register to Ask a Question