1756089 Members
4113 Online
108841 Solutions
New Discussion юеВ

Re: FS size growing

 
SOLVED
Go to solution
himacs
Super Advisor

FS size growing

Hi gurus

my mountpoint /oracle growing rapidly.
but ls -lrt not shows nothing
can anybody tell how to check last modified or last created files..

quick response highly appreciated

regards
himacs
16 REPLIES 16
Sharma Sanjeev
Respected Contributor

Re: FS size growing

Hi Himacs

You can use -m (mtime) with find command to see modified file.

Regards
Sanjeev

Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
James R. Ferguson
Acclaimed Contributor

Re: FS size growing

Hi Himacs:

Use 'lsof' to see if you have unlinked open files. These are commonly temporary files that are opened and immediately unlinked (removed). When the last process using them terminates, then and only then will there allocated disk blocks be returned to the system.

You can find the process(es) by looking for a file with a zero link count:

# lsof +D /oracle +L1

Regards!

...JRF...
sarfaraj ahmad
Trusted Contributor

Re: FS size growing

hi,
please explain this mount point is being used for which purpose?
is oracle installed in this mountpoint?
Ganesan R
Honored Contributor

Re: FS size growing

Hi Himacs,

You can compare the bdf and du outputs. If there is a difference in usage then use lsof to find out which process having open files on it.
Best wishes,

Ganesh.
himacs
Super Advisor

Re: FS size growing

hi admins.

thanx for ur replies..
server is B.11.23
lsof not there
while i tried to open man page of lsof it says no manul entry..

/oracle is home dir

regards
himacs
James R. Ferguson
Acclaimed Contributor

Re: FS size growing

Hi (again):

> lsof not there

So, download it from the HP Porting Centre. Installation is done with 'swinstall'; includes manpages; and no reboot is required to install it:

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.82/

Regards!

...JRF...
Ganesan R
Honored Contributor

Re: FS size growing

Hi,

You need to download it from here and install it.

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.82/
Best wishes,

Ganesh.
himacs
Super Advisor

Re: FS size growing

HI james,Ganesan

thanx for the link
but since its a live server i cannot install now.

plz tell me any alternative ways..

i think using find command is it possible to track latest generated files or modified files

plz help on this

regards
himacs
Mel Burslan
Honored Contributor

Re: FS size growing

The question is, what is under /oracle as subdirectories ? Usually this type of behavior is seen when somebody makes a typo and say instead of putting a file under /oracle/data01 directory, they type, let's say /oracle/dat01. While /oracle/data01 is a filesystem and should not affect the size of /oracle, the latter, i.e., /oracle/dat01 gets created as a directory and whatever is put in there blows up the size of /oracle.

I bet you, a clever dba is performing a database dump and placing the ascii file unde oracle, either deliberately, assuming it has infinite space, or they made a typo and accidentally doing this. Talk to you dba's if you are not able to install the lsof tool. But in the long run, lsof is an invaluable tool that should be on every sysadmins list to install as an add-on.
________________________________
UNIX because I majored in cryptology...