June 8, 201016 yr I recently deleted a large file on one of my near full drives but it is not showing the space as available. Is there any compress or checkdisk function I should run to get the space back?
June 8, 201016 yr In linux/unix the space is not freed until the file is no longer in use. If the file still has a program reading or writing to it, and if that program still has it open, then the blocks will not be freed until the last reference to it (directory entry or file-descriptor) is deleted/closed. Other than that, unless the file-system is corrupted, the space shows as free as soon as you delete the file.
June 10, 201016 yr Author I checked and not in use anywhere. Have even done restarts. In the past I have seen the space immediately. I guess I will manually add up the files and verify all space is there. Thanks.
June 10, 201016 yr I checked and not in use anywhere. Have even done restarts. In the past I have seen the space immediately. I guess I will manually add up the files and verify all space is there. Thanks. If there are, or were, any other "links" to the file, the the space is not freed until all links are 0. If there is a question about filesystem integrity, you can stop the array and do a file system check on the "unmounted" /dev/md? device.
Archived
This topic is now archived and is closed to further replies.