1748158 Members
4119 Online
108758 Solutions
New Discussion юеВ

Re: FS size growing

 
SOLVED
Go to solution
Mel Burslan
Honored Contributor

Re: FS size growing

Yes you can install lsof on a live server as it won't require a reboot or modify anything currently running on the system.

in the faceof what you say might be true, try running a find statement as follows:

find /oracle -xdev -mtime -1 >/tmp/filelist

this will give you the files modified in the last day. Then you can go over these files to see what is taking up so much space.

Or you can do this if you want

find /oracle -xdev -mtime -1 | xargs ll | more

to see the file sizes on the fly
________________________________
UNIX because I majored in cryptology...
James R. Ferguson
Acclaimed Contributor

Re: FS size growing

Hi (again):

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

Remember, there is NO REBOOT required and installation takes just a few minutes.

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

Well, yes, 'find' can do this as long as the link-count remains greater than one. (Re-read my post above). You could try:

# find /oracle -type f -mtime 0 -exec ls -l {} +

...to find files modified within the last 24-hours.

Regards!

...JRF...
himacs
Super Advisor

Re: FS size growing

hi

i want to check hidden file -

i used ls -la-nothing shows
any other options?


/oracle>ls -lrt
total 117160


plz tell me what total 117160 indicates

regards
himacs

James R. Ferguson
Acclaimed Contributor

Re: FS size growing

Hi (again):

> i want to check hidden file - i used ls -la-nothing shows any other options?

In one sense, "hidden" files are simply those that have a dot ('.') as their first character. By default, root always lists them.

However, read on.

> /oracle>ls -lrt
> total 117160
> plz tell me what total 117160 indicates

This is the total blocks used by the directory.

I am beginning to think that Mel is right. You have "hidden" files because you have over-mounted. If anything was written to the /oracle directory when it was _NOT_ mounted, and then the directory was mounted, the files first written are "hidden" from view.

I would unmount /oracle and look again at the /oracle directory while it is unmounted.

Regards!

...JRF...
himacs
Super Advisor

Re: FS size growing

Hi admins,

thanx a lot for ur help.

As recommended James and Ganesan, i have installed lsof in the server and found around more than 1000 unlinked open processes.We are going to restart the DB now.

regards
himacs
himacs
Super Advisor

Re: FS size growing

hi gurus,

issue solved!!!
we restarted the DB.All unlinked open files killed.


lsof +D /oracle +L1 - did wonderful job.
thanks james..



regards
himacs
James R. Ferguson
Acclaimed Contributor
Solution

Re: FS size growing

Hi (again):

...and thanks for posting what worked to solve your problem...

Regards!

...JRF...