Saturday, June 23, 2007

Deleting a large file that’s causing problems

When you have a process that's going haywire and filling up a filesystem, you have to remember to kill the process that's accessing/writing the file before the disk space will be freed up.

If you're not sure what process that is, use the fuser command:

fuser filename

Sure, you can use options in the fuser command to automatically kill off all those processes, but that would make me really nervous if I wasn't absolutely sure what each of them was... killing one of those off could be worse than having a full filesystem.

No comments: