Operating System - HP-UX
1826794 Members
2730 Online
109703 Solutions
New Discussion

Re: space not relinquised when files deleted

 
Donald Thaler
Super Advisor

space not relinquised when files deleted

removed file with the 'rm' command, files were removed but when i run the bdf command the space for the directory still shows the amount that was there before the files were deleted.
Running hpux 11i...
3 REPLIES 3
Patrick Wallek
Honored Contributor

Re: space not relinquised when files deleted

It sounds like the files were still in use by a process when you rm'ed them.

One should always do an 'fuser -u ' before removing a file to see if it is in use.

The space will only be freed up when the process using the file completes.

A. Clay Stephenson
Acclaimed Contributor

Re: space not relinquised when files deleted

Do a "man 2 unlink" (yeah, I know you ain't no C programmer) but if you read this here man page, you will never have to ask this question again.
If it ain't broke, I can fix that.
Sandman!
Honored Contributor

Re: space not relinquised when files deleted

If you have lsof then use the command below to find out which deleted files are still being held open by processes running on the system.

# lsof +aL1 /mount_point