disk use management (help!)

rich rich at cfi.COM
Tue Sep 20 06:47:48 AEST 1988


How many times have you frantically had to answer this question:

    "Who is using up all the #&$%@ space on this disk?!".

This happens to us all the time.  Does anyone know of the existence of a
program like 'du' that shows disk use by directory for a specific file system
(i.e., one that does not traverse mounted file systems)?  I have tried writing
a shell script to use 'find' with the '-xdev' option and du, but to no avail.
The problem is to get du to avoid mounted subdirectories.  What I'd really like
is a 'du' that takes a filesystem arg (like 'dump' does).  The main reason for
not using a single 'du' on a file server is speed ('du' on NFS-mounted systems
runs much slower than on local disks).

Our situation is that we have a network of 10 Sun 3s of varying types, two
that are running 4.0 and the rest running 3.4.  We have a nighttime production
environment that requires 50-150 MB of disk space, depending on the scheduled
production tasks (basically, tons of troff'ing).  We have the production areas
spread across two file servers (two disks each), along with many users and some
development areas.  Periodically, we run low on space on one or more of the
server disks.

I intend to write a script that will gather disk usage stats nightly and
allow us to compare current usage with an optimal, historical "snapshot" on
a directory-by-directory basis.  For reasons of speed, each machine will dump
its own disk usage stats to a central area.

This can hardly be a unique need - has anyone written or seen an appropriate
disk management utility?  BTW, we do not have a source license, so those
solutions are out.

Any help will be greatly appreciated.
-- 
Rich Baughman     The Consumer Financial Institute:  617-899-6500
rich at CFI.COM
{{decvax!yale}|allegra|ihnp4|{ucbvax!cbosgd}}!ima!cfisun!rich



More information about the Comp.unix.wizards mailing list