SUMMARY (Why df command is not showing free space)

From: Warren, John H. <JHWARREN_at_ESCOCORP.com>
Date: Tue, 20 Jan 1998 09:15:45 -0800

Thank you to all who responded.

I copied a new file into /usr, df showed 100%
Removal of file did not reflect any new free space

Problem:
It was a file that was opened by a
process DU will only release the space
(i.e. df will show it) when the process closes the last file
descriptor referencing the file.

So a tip: instead of 'rm logfile' do a 'cp /dev/null logfile'.
(Thanks Rainer Freis [freis_at_santix.de])

I did a lsof (list open files), on the directory I was working in, and
killed
the process that this command reported, and my free space showed up!
Received on Tue Jan 20 1998 - 18:16:10 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT