LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-05-2007, 12:45 PM   #1
mouncifb
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Rep: Reputation: 0
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?
 
Old 07-05-2007, 12:55 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,333
Blog Entries: 15

Rep: Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347
lsof /mountpoint

Will show you all processes that currently have files open on a given mountpoint.
 
Old 07-05-2007, 01:32 PM   #3
ak_random
Member
 
Registered: Jun 2007
Location: Silicon Valley, CA
Distribution: Xubuntu
Posts: 83

Rep: Reputation: 15
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.
 
Old 07-05-2007, 02:42 PM   #4
mouncifb
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Original Poster
Rep: Reputation: 0
disk usage

yeah the process is local.
 
Old 07-05-2007, 03:04 PM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,333
Blog Entries: 15

Rep: Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Disk Usage kegwell Linux - Software 2 05-11-2005 10:59 AM
LQ disk usage student04 LQ Suggestions & Feedback 4 10-24-2004 09:35 PM
Disk Usage karan101 Linux - Software 8 10-17-2004 03:59 AM
101% disk usage on an empty disk tsiuser Linux - Software 3 01-28-2004 06:24 PM
Disk Usage LinuxTiro Linux - Newbie 6 09-03-2003 09:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration