Operating System - HP-UX
1844043 Members
2277 Online
110227 Solutions
New Discussion

Re: root file system usage

 
Camel_1
Valued Contributor

root file system usage

Hi there,

bdf shown / usage us 200MB however du only shown 100MB.

=>du -ksx /
101392 /
=>bdf /
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 256000 205941 49984 80% /

Is there anyway I can figure which process are occupying the space?

Thanks
6 REPLIES 6
Deoncia Grayson_1
Honored Contributor

Re: root file system usage

you can download and use lsof which will list all open files on / but you will come up with a huge list of processes, the easy way out is to reboot the hard way is to list all open files on / or you can list them all with fuser -cu that will list all proceses on / (still same logic apply, a huge list).
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Geoff Wild
Honored Contributor

Re: root file system usage

See this thread:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1005845


lsof +aL1 /

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Camel_1
Valued Contributor

Re: root file system usage

thanks guys.

lsof / and fuser return a huge list, it is hard to locate the problem.

And lsof -aL1 / return nothing.

Any other contribution please.

Sandman!
Honored Contributor

Re: root file system usage

>>>And lsof -aL1 / return nothing. Any other contribution please.<<<

The command for locating that process is...

# lsof +aL1 /

...NOTE it's a plus "+" not minus "-" for the token specifier.

cheers!
John Payne_2
Honored Contributor

Re: root file system usage

Did you have a filesystem previously unmounted, which sits under /? If the filesystem was unmounted, and stuuf was written there, then you mount said filesystem, you will have used space in /, but will not be able to see it at all.

Hope it helps

John
Spoon!!!!
rayche
Frequent Advisor

Re: root file system usage

use lsof command to check / direcory