Operating System - HP-UX
1851685 Members
4026 Online
104061 Solutions
New Discussion

Re: can't empty /tmp directory

 
SOLVED
Go to solution
Erol KAHRAMAN
Advisor

can't empty /tmp directory

hi,

i have a rp3440 box with HP-UPiv1. Today i tried to empty my /tmp dir. I erased all unnecessary files. In spite of the fact that i erased files, the /tmp dir is seemed to be %100 full. What could be a problem?
4 REPLIES 4
Pete Randall
Outstanding Contributor

Re: can't empty /tmp directory

The problem is most likely that the file is still opened by a process. Until that process terminates, the file descriptor will still be held open and the space occupied by the file will not be released.

A reboot may well be the quickest way to cure this.


Pete

Pete
Matti_Kurkela
Honored Contributor

Re: can't empty /tmp directory

If you have the "lsof" utility installed, you can use "lsof +aL1 /tmp" to find all the files that were deleted but are still open... and you will also get the PIDs of the processes holding them open.

Stopping those processes will allow the disk space to be freed without a reboot.

MK
MK
Rita C Workman
Honored Contributor
Solution

Re: can't empty /tmp directory

Have you tried the fuser -cu /tmp to see who or what might be holding on to the process.
And if you can figure out which, then maybe fuser -ku to see if that will kill it off.

If those don't work, then try rebooting.

Rgrds,
Rita
Erol KAHRAMAN
Advisor

Re: can't empty /tmp directory

Thanks all,

I killed all processes using /tmp dir. And my problem was solved.