Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: OT: Solaris: Finding the cause for disk space growth

Re: OT: Solaris: Finding the cause for disk space growth

From: <Jared.Still_at_radisys.com>
Date: Fri, 23 Jan 2004 09:39:28 -0800
Message-ID: <F001.005DDFD0.20040123093928@fatcity.com>



One way to determine where to start looking is via find:

find / -mtime -1 -type f -print | xargs ls -ld

This will find all files touched within the list day.

If you get the gnu version of find, you can use '-mmin -30' to find all
files touched in the last 30 minutes.

You can then play with sort, and sort on the size of the file and pipe
it through head to see the most recently touched files.

eg.

find /u03 -mtime -1 -type f -print | xargs ls -ld | sort -nr -k5.1|head -5

This command finds all files in the /u03 file system that have been
touched in the last day, pipes it to ls, sorts in reverse by file size
and then shows you the five largest files.

You can run this on /, it will probably take several minutes.

Jared




"Naveen, Nahata (IE10)" <Naveen.Nahata@honeywell.com>
Sent by: ml-errors@fatcity.com

 01/23/2004 12:44 AM
 Please respond to ORACLE-L

       
        To:        Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
        cc:        
        Subject:        OT: Solaris: Finding the cause for disk space growth



Hi All,
 
Sorry for an OT question, but nowhere else to go. Pretty new to Solaris so might be a naive question. Need a pointer on how to do this.
 
The disk space in the machine is constantly decreasing. And I want to know which files/directories are growing.
 
Is there any way to find out?
 
Regards
Naveen

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: Jared.Still_at_radisys.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri Jan 23 2004 - 11:39:28 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US