Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

on our linux system (suse), one of the partition is nfs-mounted and some process is continuously eating the disk space in it, leaving behind zero bytes to write. How can I figure out this process or daemon which is eating the disk space? Is there any way like checking in /proc with ps -ef?

share|improve this question

migrated from stackoverflow.com Mar 1 '11 at 21:34

This question came from our site for professional and enthusiast programmers.

2 Answers 2

up vote 5 down vote accepted

You could use lsof to see which processes have which files open. It would be worth looking at the man page for this as the arguments would need to be tweaked depending on how often the files are being written, where they are and how the NFS partition is mounted.

So as an example, to see which processes are using the open files in the /mount/nfs_partition directory and refresh every 2 seconds you would use:

lsof -Nr 2 -- /mount/nfs_partition
share|improve this answer

atop has a column for this called WRDSK. In your situation I'd install and run it, then hit D to sort processes by disk activity.

share|improve this answer
    
Sounds interesting! Thanks. –  Manoj R Mar 3 '11 at 6:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.