LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   disk usage (https://www.linuxquestions.org/questions/linux-software-2/disk-usage-566887/)

mouncifb 07-05-2007 12:45 PM

disk usage
 
I am trying to find a tool or a way that will let me trace a process that is writting so much of data on an NFS mount (someone is abusing the disk usage by 1GB every 5 minutes). du is not an option cause this is an over 5TB system? any ideas or tool?

MensaWater 07-05-2007 12:55 PM

lsof /mountpoint

Will show you all processes that currently have files open on a given mountpoint.

ak_random 07-05-2007 01:32 PM

You didn't mention whether you know the process writing to the NFS mount is a local process or a remote process. For local processes, you can try lsof to see what processes have open files under the mount point. For remote processes, you can try nfsstat -s -n to see if will give you per client statistics in order to see which client might be generating the data.

mouncifb 07-05-2007 02:42 PM

disk usage
 
yeah the process is local.

MensaWater 07-05-2007 03:04 PM

lsof will show you "local" processes using the (remote) NFS mount. That is to say you don't have to go to the server that exported the mount if you suspect another server that mounted the mount to be the culprit. You can run lsof on that other server mountpoint to see what processes have it open.

On the flip side you can NOT use lsof on the exporting server to tell you anything (other than the basic network connection information) from the other server. The "process" detail can only be obtained from the server where the "process" itself is running.


All times are GMT -5. The time now is 08:35 AM.