[wplug] Extended "du" reporting.

Poyner, Brandon bpoyner at ccac.edu
Wed Aug 4 14:55:50 EDT 2004


My bad, it seems the GNU du does have a -x. 

# du -s -h -x /
272M    /
# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3             756M  289M  430M  41% /
/dev/sda1             251M   17M  221M   8% /boot


Brandon Poyner
Network Engineer II
CCAC - College Office
412-237-3086


-----Original Message-----
From: Poyner, Brandon 
Sent: Wednesday, August 04, 2004 2:51 PM
To: General user list
Subject: RE: [wplug] Extended "du" reporting.


Which operating system?  The *BSD du has a -x flag that tells du to not
traverse file system mount points, but that seems to be missing in GNU
du.

Brandon Poyner
Network Engineer II
CCAC - College Office
412-237-3086


-----Original Message-----
From: Burt E Reany [mailto:breany at csc.com] 
Sent: Wednesday, August 04, 2004 2:45 PM
To: wplug at wplug.org
Subject: [wplug] Extended "du" reporting.


   When getting a message that a physical filesystem has reached the 90%
full level, my normal "cd /", "du -s *" gives me the directory size for
each root -level directory.  Since our NFS-mounts are in further
subdirectories, the root directory size INCLUDES the disk space for the
remote mounted filesystem, as well as that on the root hard drive, so we
have to subtract that disk space of the remote filesystem from the "du"
figure to get the amount of space on the primary drive of interest.  Now
that we're getting more such mounts, it's turning into work.

  What would be a help is a perversion of "du" - - er, rather, a
flavor/option of "du", that would give the disk space used ONLY ON THE
PHYSICAL DISK OF THE DESIGNATED DIRECTORY. By excluding remotely mounted
filesystems, the directory having the inflation problem would be more
obvious.

  Of the approaches to getting this - "C", script, etc - there will be
some
approaches that work better than others. Before investing too much time
in
this,  might I ask the group their opinion as to the most elegant and
effective approach to helping find which directories have grown to
create
this type of space problem?

Thanx.


------------------------------------------------------------------------
----------------

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit
written
agreement or government initiative expressly permitting the use of
e-mail
for such purpose.
------------------------------------------------------------------------
----------------



_______________________________________________
wplug mailing list
wplug at wplug.org
http://www.wplug.org/mailman/listinfo/wplug

_______________________________________________
wplug mailing list
wplug at wplug.org
http://www.wplug.org/mailman/listinfo/wplug




More information about the wplug mailing list