The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
disk usage rrs Shell Programming and Scripting 1 04-13-2007 12:48 AM
disk usage (df vs du) gfhgfnhhn UNIX for Advanced & Expert Users 8 09-23-2006 05:06 PM
Disk Usage lewisoco UNIX for Dummies Questions & Answers 3 05-09-2006 05:44 PM
Finding hidden files under mounted filesystems keelba UNIX for Dummies Questions & Answers 3 04-13-2005 11:59 AM
mounted filesystems jalburger UNIX for Dummies Questions & Answers 3 09-18-2002 12:32 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-03-2006
Registered User
 

Join Date: Jul 2006
Posts: 2
Disk usage excluding additional mounted filesystems

Hi,
I am trying to do a script which will show disk usage for filesystems within a vg.

This needs to exclude any additional filesystems which might be mounted over a dir within a filesystem.

an example:
/usr is mounted on /dev/hd2 within rootvg
If /usr/another is an additional mount point for some other lv, I would like this excluded.

problem I am having is that du includes all dirs exist below /usr, is there a way to restrict this to dirs within its own mount point and not additional mount points?

Cheers for any info...
Reply With Quote
Forum Sponsor
  #2  
Old 07-03-2006
linuxpenguin's Avatar
Registered User
 

Join Date: May 2002
Location: India
Posts: 295
I believe you are looking for the command df.
use
df mountpoint
__________________
War doesnt determine who is right, it determines who is left
Reply With Quote
  #3  
Old 07-03-2006
Registered User
 

Join Date: Nov 2005
Location: cyberjaya
Posts: 85
$ man du
.
.
.
-x, --one-file-system
skip directories on different filesystems
Reply With Quote
  #4  
Old 07-03-2006
Registered User
 

Join Date: Jul 2006
Posts: 2
Aye, I re-read the man page and found the -x yesterday afternoon, seems to do the job, just certain filesystems on a df -k show a different usage than the du -x, any reason you can think of?

Cheers for the reply.....
Reply With Quote
  #5  
Old 07-03-2006
Hitori's Avatar
Registered User
 

Join Date: Jun 2006
Posts: 360
try du -kx
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:56 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0