Operating System - HP-UX
1753797 Members
7155 Online
108799 Solutions
New Discussion юеВ

How to check the files increasing in drive

 
trilok_pvp
Frequent Advisor

How to check the files increasing in drive

Hi

In HP unix server, the drive disk01 keep on increasing nearly 2 GB daily, Now its reached 91 %. How to check which directory files are creating up to date.
12 REPLIES 12
Pete Randall
Outstanding Contributor

Re: How to check the files increasing in drive

You can run "du -sk" on the mount point to give you a first level overview - maybe put this in cron and save the outputs for a few days to give you a feel for where the growth is occurring.


Pete

Pete
Johnson Punniyalingam
Honored Contributor

Re: How to check the files increasing in drive

>>>>>>In HP unix server, the drive disk01 keep on increasing nearly 2 GB daily, Now its reached 91 %. How to check which directory files are creating up to date.<<<<<<<<<<<

Example :-

cd /disk01
du -sk *

(look for directory /files has biggersize)

or

find /disk01 -xdev -type f -size +5000000c -exec ll {} \; | sort -nk 5

HTH,

Johnson
Problems are common to all, but attitude makes the difference
trilok_pvp
Frequent Advisor

Re: How to check the files increasing in drive

Hi i tried with du -sk, but it gets hangs.

obelix:/>du -sk

Many folders and subfolders are in disk01, i need to check which folder files are creating.
Pete Randall
Outstanding Contributor

Re: How to check the files increasing in drive

It may well take a while. The du command has to search through all the files, adding up the sizes to give you a summary. Be patient.


Pete

Pete
Johnson Punniyalingam
Honored Contributor

Re: How to check the files increasing in drive

>>Hi i tried with du -sk, but it gets hangs<<<

Above input by you, looks like you may disk problem ?

bdf
dmesg
check /var/adm/syslog/syslog.log


cd /disk01

find . -mtime -1 -exec ll -t {} \;

find . -mtime 0 -size +500 -exec ll -t {} \; |more
Problems are common to all, but attitude makes the difference
trilok_pvp
Frequent Advisor

Re: How to check the files increasing in drive

Hi

when using du -sk, it is showing the used space of disk01, i need to check the files which are recently updated in a directory in disk01
Johnson Punniyalingam
Honored Contributor

Re: How to check the files increasing in drive

>>when using du -sk, it is showing the used space of disk01, i need to check the files which are recently updated in a directory in disk01<<

why are you doing # du -sk /disk01 ?

you should

cd /disk01
du -sk *
Problems are common to all, but attitude makes the difference
trilok_pvp
Frequent Advisor

Re: How to check the files increasing in drive

Hi

i Need to check Latest Files generating in MOUNT point disk01
Johnson Punniyalingam
Honored Contributor

Re: How to check the files increasing in drive

>>i Need to check Latest Files generating in MOUNT point disk01<<<


Any helps from the above commands earlier post

cd /disk01

find . -mtime -1 -exec ll -t {} \;

find . -mtime 0 -size +500 -exec ll -t {} \; |more

or

>>Latest Files generating<<<<<

cd /disk01
ls -lrt
Problems are common to all, but attitude makes the difference