We had a fun problem at the office this week.
/tmp was filling up. Normal steps to solve this problem did not work.
I ran the following command:
sudo ls -althRr /tmp
Nope. No major offenders out there. The total size of the files visible to the system via 'ls' was maybe 16MB.
cd /tmp
lsof indicated that there were some pending deletes that had not been completed. These were still consuming space on /tmp. Here's the one liner to find the top ten sized open files and what process is using each:
sudo /usr/sbin/lsof | sort -nr -k 7,7 | head -10 | awk '{ print $2 }' | xargs ps
Recent Comments