Solved

My disk is filling up - Help with "find"

Posted on 1997-12-14
3
260 Views
Last Modified: 2013-12-27
Hello
We are noticing that our /data filesystem is filling up - about an hour ago it was at 87%, now it is at 91%.

We would like to try to use "find" to see what
file is being produced that is growing and causing
the disk to fill.  We already know it is not a runaway process, and that a user program is running, but we
cannot detect which file it is creating.  We run:

ls -l `find /data -size +40000 -atime -1 -print`  | more
We get a list of files that exceed 40000 Kbytes (this is on SUN Solaris 2.5.1) but it does not list any files we suspect - more static files we already know are large, but not changing.   We then tried a modifier of:

  -atime 0

hoping this would show us what was created today, but it did not seem to work.
 
Can anyone suggest how we can use "find" to display files created today, or within a certain time frame, say a few hours?
0
Comment
Question by:ki121497
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 2008305
-mtime -1
-newer newfile
0
 
LVL 1

Accepted Solution

by:
dhughes111797 earned 100 total points
ID: 2008306
You don't want find. It's possible that the file that is being
created has been removed, and therefore not visible in the file
system. (e.g. the process still has an open file handle to
that original file, but the name of the file has been removed from
the directory tree so that you can't see it - even though it's
open).  Until the process that created/is creating the file is
killed, your file space will continue to be exhausted. Get lsof from
vic.cc.purdue.edu in the pub directory. run it, and then use it to find your open file and kill the offending process.
0
 

Author Comment

by:ki121497
ID: 2008307

 used options -mtime -1
              -mtime -2

 
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question