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

2004-01-27 Thread Stephen Evans

i normally go to the mount point (ie highest level dir for that disk) and issue:

du -k | sort -n

that way you see where the space is going in descending sequence

good luck,

steve








Naveen, Nahata (IE10) [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
01/23/2004 03:44 AM
Please respond to ORACLE-L


To:Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
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



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

2004-01-26 Thread Naveen, Nahata (IE10)
I'm new in the unix world, so get stuck in simple things like this. 

I'm thankful to the list, since I didn't get rebuked for asking a non-oracle
question.

du (disk usage) worked easily for me, though Jared's idea of using find was
amusing, I'll get acquainted with that command as well.

Regards
Naveen
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Naveen, Nahata (IE10)
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).


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

2004-01-23 Thread Gene Sais



Check out the du (disk usage) command.

man du

 [EMAIL PROTECTED] 01/23/04 03:44AM 

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 
knowwhich files/directories are growing.

Is there any way to find out?

Regards
Naveen


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

2004-01-23 Thread Stephen Andert
Naveen, 

Since you are new to Solaris, how new are you to unix/linux?  If you
are already aware of anything, I apoligize:

spool the output of df -k  to a file.  I really like the script command
for this.  Wait some time (long enough for more disk to get used) and do
it again (rename the first file if you used script).  Then 
diff list1 list2 
This should tell you which mount point changed.

Since you are asking this in an Oracle forum, I'll guess that the mount
point that is growing is related to an Oracle database.  At a similar
interval to the df command above, run something like this in your Oracle
database.  If you have more than one, do it in all, but spool to a
instance_specific file name:

spool begin (or end)
select tablespace_name, sum(bytes)/1024 Kb
from dba_extents
group by tablespace_name
order by 1 asc;
spool off

diff begin end 
will tell you which tablespace is growing.

You can then modify the query above to see which object is growing in
that tablespace.  I won't write that one for you or you won't get a
chance to learn anything from this grin

Good luck and let us know how it goes.
Stephen

 [EMAIL PROTECTED] 01/23/04 01:44AM 
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: Stephen Andert
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).


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

2004-01-23 Thread Jared . Still

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) [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
01/23/2004 12:44 AM
Please respond to ORACLE-L


To:Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
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



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

2004-01-23 Thread DENNIS WILLIAMS
Naveen - Are you using autoextend on any of your datafiles?



Dennis Williams
DBA
Lifetouch, Inc.
[EMAIL PROTECTED] 

-Original Message-
Sent: Friday, January 23, 2004 11:39 AM
To: Multiple recipients of list ORACLE-L



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) [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED] 


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



To:Multiple recipients of list ORACLE-L
[EMAIL PROTECTED] 
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: DENNIS WILLIAMS
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).