Operating System - HP-UX
1752565 Members
5552 Online
108788 Solutions
New Discussion юеВ

Re: LSOF ( list open files )

 
Renz Malabanan
Frequent Advisor

LSOF ( list open files )

Any information about LSOF??

Is this a script that would let us see which files are still using the space but not having the process??

Please help!thanks..
10 REPLIES 10
Bill Hassell
Honored Contributor

Re: LSOF ( list open files )

It is not a script but a program that can identify files, directories, even network sockets that have been opened by one or more processes. Get a copy from:

software.hp.com

Search for lsof and select it from the Internet Express package.


Bill Hassell, sysadmin
Alzhy
Honored Contributor

Re: LSOF ( list open files )

'Pre -- can also buld it from sources.

Or download pre-built ones from the HP-UX Porting Site. (http://hpux.connect.org.uk/)


And surely you have access to Google too right?

Hakuna Matata.
Abid Iqbal
Regular Advisor

Re: LSOF ( list open files )

Hi,
Find the attached.
Viktor Balogh
Honored Contributor

Re: LSOF ( list open files )

Abid,

I'm not sure if attaching a zip file here is a proper way to distribute lsof. You could infringe copyrights by doing this. If Renz has a valid support contract he can download it from hp.com - it is part of the Internet Express DVD. And if he doesn't have a support, he can download an older version from the HP-UX Porting centre, which was linked above.
****
Unix operates with beer.
Abid Iqbal
Regular Advisor

Re: LSOF ( list open files )

I think this was downloaded from
http://hpux.connect.org.uk
James R. Ferguson
Acclaimed Contributor

Re: LSOF ( list open files )

Hi:

And when you have 'lsof' installed (and I would fetch a copy from the HP-UX Porting Centre) you can query the filesystem in question with:

# lsof +L1 +D /mymountpoint

Look for files with an "NLINK" count of zero (0). The "SIZE/OFF" field will be the size in characters consumed. Files with a link count of zero are those that have been unlinked (removed).

Regards!

...JRF...

Renz Malabanan
Frequent Advisor

Re: LSOF ( list open files )

Abid Iqbal, how about for hpux version 10.xx??
Abid Iqbal
Regular Advisor

Re: LSOF ( list open files )

No experience of working on 10.xx.
Dennis Handly
Acclaimed Contributor

Re: LSOF ( list open files )

>how about for HP-UX version 10.xx?

You may have a hard time finding lsof for that obsolete HP-UX version. You may have to build from source and backport it.