Raars's Blog

July 2, 2020

File system still full after deleting big files

Filed under: UNIX & Linux — raars @ 1:14 am

What happened : Linux Redhat server – toot file system was almost full.Removed unneeded files ,but file system still is full.du command shows very small amount of space are used.

Reason is that ,some processes still were using those user files ,even users said they don’t need them.

Solution: run lsof | grep delete

Check second and fourth columns

cd /proc/<second column from output>/fd

echo > <number portion from fourth row>

Repeat that for each ,specially for large files and you will see right file system size from df command

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.