Re: Space recovery
On Wed, 27 Jul 2005, John Graves wrote:
> I am still discovering what I don't know...Among that is why after I
> deleted a 17GB error log, df does not report that space as usable. Is
> there some process I need to start after deletion to actually recover
> that space?
In Unix the space will not be released back to the "free list" while a
process has the file open. Use losf or fuser to establish was processes
have a file open. Whether or not you actually want to stop them will
depend on the operational responsibilities of you and the box.
Given that it is a log file I believe it will be syslogd. In Debian you
can restart syslogd like this:
Check df afterwards and things should look better.
Robert Brockway B.Sc. Phone: +1-416-669-3073
Senior Technical Consultant Email: email@example.com
OpenTrend Solutions Ltd. Web: www.opentrend.net
We are open 24x7x365 for technical support. Call us in a crisis.