Yesterday one of the users on our system had a poorly formed script that consumed all the space in one of our file systems. Through a lot of trial and error, I was able to identify the user and kill the processes causing the problem.
Is there a simple way to identify such processes in the future?
I think the output from the
lsof /file-system command will display each open file with USER, PID, and file size and I suppose I could write a program to parse the output, but I'm curious if there is another command to do this. I really want a report of total file size by user, just to help focus if this problem happens again.
I'm on Solaris 10, if that's relevant. And I'm not the System Admin; I'm probably a "power user" and coordinate things for our department end-users.