Operating System - HP-UX
1754979 Members
3115 Online
108828 Solutions
New Discussion юеВ

Re: bdf /tmp shows 100% full

 
Bill Hassell
Honored Contributor

Re: bdf /tmp shows 100% full

Unfortunately, fuser missies about 50% of processes that have open files on a mountpoint. The tool of choice (until fuser is rewritten) is lsof (list open files). You can download lsof from the Liverpool Archive at: http://hpux.connect.org.uk/
Search for lsof


Bill Hassell, sysadmin
Ravi S. Banda
Regular Advisor

Re: bdf /tmp shows 100% full

Thanks, Bill.
We're on hp-ux 11.00, though. http://hpux.connect.org.uk shows only for 11i pa-risc and itanium 2.

Where can I download for 11.0?
Thanks!
Ravi.
Bill Hassell
Honored Contributor

Re: bdf /tmp shows 100% full

The author is Vic Abell and he has a web page for lsof at: http://people.freebsd.org/~abe/


Bill Hassell, sysadmin
A. Clay Stephenson
Acclaimed Contributor

Re: bdf /tmp shows 100% full

And this points to the problem I was alluding to earlier --- you should not be using /tmp for user processes (even cron jobs). The current convention (now well over a decade old) is to use /var/tmp for these temporary files. You should change your scripts/programs to reflect this and see that TMPDIR is not set to /tmp.
If it ain't broke, I can fix that.
Sorrel G. Jakins
Valued Contributor

Re: bdf /tmp shows 100% full

You need a utlity called lsof.
then lsof|grep /tmp will show who and what is using /tmp