Operating System - HP-UX
1834796 Members
3210 Online
110070 Solutions
New Discussion

Re: processes with handle on deleted fiels.

 
SOLVED
Go to solution
Leo The Cat
Regular Advisor

processes with handle on deleted fiels.

Hi

We have this command
fuser -d /fs1

this command is returning the list of processes where some handle are always open on deleted files ! it's interesting.

But is there a way to retrieve the list of all files in this sitaution ?

Thanks in advance
Bests Regards
Den
1 REPLY 1
James R. Ferguson
Acclaimed Contributor
Solution

Re: processes with handle on deleted fiels.

Hi Den:

You need to use 'lsof' to find deleted but open files.

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):

# lsof +L1 +D /var/spool

If you don't have 'lsof' installed (and you should) fetch it for installation from:

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

Regards!

...JRF...