LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices

Reply
 
Search this Thread
Old 04-03-2006, 08:40 AM   #1
R00thavok
LQ Newbie
 
Registered: Aug 2005
Posts: 6

Rep: Reputation: 0
Question disk/file grow


Hello,

How can I find out which files are growing more than usual? Is there a way to take hourly/daily snapshots of disk space usage? I have a dir which is growing large and cant find the reason why or which file is it...Thanks for tips.
 
Old 04-03-2006, 10:03 AM   #2
tizzef
Member
 
Registered: Jan 2005
Location: Nice, France
Distribution: Ubuntu,RHES, Mandriva, RHAS, AIX 4.3.3, 5.2 & 5.3, Debian,Solaris8/10
Posts: 119

Rep: Reputation: 20
Hi there,

You can cron a 'du -h' command and mail the result to U or redirect the output to a file.
#crontab -e
00 * * * * du -h </path/to/repository> >> </path/to/log>

Will do the job, I think.

Cheers
 
Old 04-03-2006, 11:52 AM   #3
AbrahamJose
Member
 
Registered: Feb 2006
Location: India
Posts: 165

Rep: Reputation: 30
Post which directory

Is the directory created by U or in the systems area.
Use a find command to sortout big files.

Last edited by AbrahamJose; 04-03-2006 at 11:53 AM.
 
Old 04-03-2006, 12:47 PM   #4
R00thavok
LQ Newbie
 
Registered: Aug 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks Tizzef!

AbrahamJose, The directory is created by me.

I was thinking of using some kind of script that would take a snapshot of /my/dir so that i can later compare which files are growing abnormally or more than unusual...thanx

Last edited by R00thavok; 04-03-2006 at 12:51 PM.
 
Old 04-05-2006, 06:34 AM   #5
AbrahamJose
Member
 
Registered: Feb 2006
Location: India
Posts: 165

Rep: Reputation: 30
Post Any jobs?

Any jobs running, that generates some files in ur area.
find /my/dir size +2000 -print
will list out all files above the size 2000k
 
Old 04-07-2006, 09:47 AM   #6
R00thavok
LQ Newbie
 
Registered: Aug 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Thats what i need to find out, if there is any job doing something in that area. I wrote a little script that will hopefully give me an idea. Thanx
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Use of Embedded Linux Expected to Grow LXer Syndicated Linux News 0 12-29-2005 10:16 AM
using mdadm to grow an existing RAID 1 array kevburger Linux - Hardware 1 08-18-2005 08:17 AM
linux set to grow further by 2007... Lleb_KCir General 2 12-31-2004 11:53 AM
Can I grow an NTFS partition when I install Suse 9.1 Killer-Tomato Linux - Newbie 10 09-23-2004 08:52 AM
Reverse Engineering to see LINUX grow faster Nebulah Frost Linux - General 2 08-20-2004 11:48 AM


All times are GMT -5. The time now is 09:37 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration