INODE issue (11 Views)
Reply
Frequent Advisor
Carl Munnelly
Posts: 44
Registered: ‎10-27-2002
Message 1 of 7 (11 Views)
Accepted Solution

INODE issue

In vain hope that I can avoid a system reboot.

A user had deleted a file in /tmp which was still accessed by a process. However, I don't know the process. Is there anyway of identifying the inode and process and killing it from my current situation. Other than a reboot obviously.
Honored Contributor
Robert-Jan Goossens
Posts: 7,384
Registered: ‎04-04-2000
Message 2 of 7 (11 Views)

Re: INODE issue

Hi,

You could try and use fuser or lsof on the tmp filesystem.

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

Regards,
Robert-Jan
Honored Contributor
G. Vrijhoeven
Posts: 1,832
Registered: ‎09-21-2001
Message 3 of 7 (11 Views)

Re: INODE issue

Hi,

If you rm-ed the file the inode gets removed when the Process keeping it open stops. To get the process, you can use lsof < not standard installed but the best tool for this kind of problems> or fuser -cu /tmp

HTH,

Gideon

PS. a link to lsof:

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

Frequent Advisor
Carl Munnelly
Posts: 44
Registered: ‎10-27-2002
Message 4 of 7 (11 Views)

Re: INODE issue

I know lsof is ideal unfortunately not installed and can't download as blocked.
Frequent Advisor
Carl Munnelly
Posts: 44
Registered: ‎10-27-2002
Message 5 of 7 (11 Views)

Re: INODE issue

Thanks guys,

I was investigating fuser and during that time the process must have sfinished as space released
Honored Contributor
Mark Grant
Posts: 2,712
Registered: ‎04-01-2003
Message 6 of 7 (11 Views)

Re: INODE issue

Other than the "fuser" suggestion above which on "/tmp" is probably going to be a bit of a nightmare, you can't do it in any easy way.

THere is no way you can reclaim the space without stopping that process.

If you know the name the file had, it might be useful. If it is a tempory file that usually has the same name, you could doa strings on on the binaries of your running applications to lookf for the filename and then stop that application.

Never preceed any demonstration with anything more predictive than "watch this"
Honored Contributor
Robert-Jan Goossens
Posts: 7,384
Registered: ‎04-04-2000
Message 7 of 7 (11 Views)

Re: INODE issue

Attached lsof 11.0 64 bits tar.gz file.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.