Re: Clearing Disk Space



On Nov 1, 1:42 pm, Dan Espen <dan...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Patrick T <ptu...@xxxxxxxxxxxxxxxxxxxx> writes:
Hi - I arrived at work this morning to find out that one of our drives
has reached 100% I've been trying to move files off the system to an
archive disk elsewhere, but moving the files doesn't seem to do
anything. I've also tried to rm files as well and it still doesn't
change anything. I would assume running rm on fairly large files that
reside on this filesystem should free up some space, but no luck. I
also tried running 'sync' to see if maybe that would help but still
nothing. It seems like no matter what I do, the disk space just
doesn't clear up (and I am positive I am removing files from the
correct location).

That's usually a sign of a process writing to disk while you are removing
files. As you free up space it starts using it up again.

More to the point, it is a sign that some process still has one or
more of the 'deleted' files open. Linux does not release the filespace
allocated to a file until all links have been removed and all readers
close the file.

Ideally programs should check to see whether their writes are succeeding.
Few do.


.



Relevant Pages

  • Re: Caching control
    ... | I haven't heard of the bugs you're talking about. ... or could risk them not being written (e.g. flushing not to disk, ... | of physical memory. ... I agree that a process writing a large file to disk should be considered normal. ...
    (comp.os.linux.development.system)
  • Re: Controlling File Descriptor Flush
    ... > process writing data to a file be aware of how much data has been written ... > and flushed to disk. ... > Descriptor Flush once the amount of data approaches 9000 bytes. ... setvbuf only affects the buffer used by the standard I/O library ...
    (comp.unix.solaris)
  • Re: Clearing Disk Space
    ... archive disk elsewhere, but moving the files doesn't seem to do ... It seems like no matter what I do, the disk space just ... doesn't clear up (and I am positive I am removing files from the ...
    (comp.os.linux.misc)
  • Re: Weird DISKS behaviour on 4.8-STABLE
    ... then some program has a reference to a file that has been ... deleted on disk, but is still writing to it. ... rotate some log file but do not tell the process writing to it to ...
    (freebsd-stable)
  • Controlling File Descriptor Flush
    ... Inorder to implement proper rollback processing, it is mandatory that the ... process writing data to a file be aware of how much data has been written ... and flushed to disk. ... Descriptor Flush once the amount of data approaches 9000 bytes. ...
    (comp.unix.solaris)