LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (https://www.linuxquestions.org/questions/aix-43/)
-   -   disk/file grow (https://www.linuxquestions.org/questions/aix-43/disk-file-grow-431319/)

R00thavok 04-03-2006 08:40 AM

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.

tizzef 04-03-2006 10:03 AM

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

AbrahamJose 04-03-2006 11:52 AM

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

R00thavok 04-03-2006 12:47 PM

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

AbrahamJose 04-05-2006 06:34 AM

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

R00thavok 04-07-2006 09:47 AM

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


All times are GMT -5. The time now is 01:02 PM.