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
           }'

Mike

--
Mike Gerdts
http://mgerdts.blogspot.com/
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to