1829581 Members
4044 Online
109992 Solutions
New Discussion

space issue

 
rudy_3
Occasional Advisor

space issue

when i remove data , a big directory of 7 Giga sometime the space doesnt get reduced it remains the same , i have to restart the system for the space to be reduce what can i do any comments
good
4 REPLIES 4
Printaporn_1
Esteemed Contributor

Re: space issue

the space will not return to OS if there still have some process access that space.
use fuser to check.
enjoy any little thing in my life
Steven Sim Kok Leong
Honored Contributor

Re: space issue

Hi,

You can also use lsof to grep for the name of the file that you removed in order to identify the process hanging on to the open file.

You can download lsof from:

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.55/

Hope this helps. Regards.

Steven Sim Kok Leong
Hakan Dedorson
Occasional Advisor

Re: space issue

If the problem is a large file which is held open by an application you want to remove to reclaim space, you can also flush the contents of the file.

The result is an empty file, still held open by the application.

You will of course lose all information in the file. You have to evaluate if this is a problem for the (still running) application.

One command for flushing the file is:

> filename

Regards
/Hakan

Pavel Hampl
Occasional Advisor

Re: space issue

Hi,

I had the similar problem and helped me only remount of the concerned fs. Anyway it is better than reboot.

Ciao