Mike Gerdts wrote:
On 5/21/06, James C. McPherson <[EMAIL PROTECTED]> wrote:
Using du -sk on the local directories under /:

I assume that you have also looked through /proc/*/fd/* to be sure
that there aren't any big files with a link count of zero (file has
been rm'd but process still has it open).  The following commands may
be helpful:

Find the largest files that are open:

# du -h /proc/*/fd/* | sort -n

or

Find all open files that have a link count of zero (have been removed)

# ls -l /proc/*/fd/* \
   | nawk 'BEGIN { print "Size_MB File" }
           $2 == 0 && $1 ~ /^-/ {
              printf "%7d %s\n", $5/1024/1024, $NF
           }'

Hi Mike,
Thanks for the script, but no, it produced only this:


Size_MB File
/proc/102286/fd/3: No such file or directory
/proc/102286/fd/63: No such file or directory


The disk usage has persisted across several reboots.

--
James C. McPherson
--
Solaris Datapath Engineering
Data Management Group
Sun Microsystems
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to