Managing File System Space


Contents

About This Document
    Related Documentation
If root (/) Is Full
If /var Is Full
Other File Systems or General Search Techniques

About This Document

This document addresses what files may need monitoring on a system to prevent excess space utilization and what to look for if space in a file system is unexpectedly lost. This document applies to all versions of AIX.

Related Documentation

The AIX and RS/6000 product documentation library is also available:

http://www.rs6000.ibm.com/resource/


If root (/) Is Full

NOTE: Before removing any files, the user should check to see if the file is currently in use by an active user process. Execute the following command:

 
    fuser <filename> 

<filename> is the file name that is being checked by the active user process. If a file is "open" at the time of removal it is only removed from the directory listing. The blocks allocated to that file are not freed until the process holding the file open is killed.


If /var Is Full


Other File Systems or General Search Techniques

Use the find command with the -size flag to attempt to locate large files or, if the file system just filled up, use the -newer flag to find recently modified files. To produce a file for the -newer flag to find against, use the following touch command:

 
   touch mmddhhmm filename 

From left to right, the following correspondences apply:

Execute the following command:

 
   find /filesystem_name -xdev -newer touched_file -ls 

Another useful flag for the find command will allow files to be located that have been changed in the last 24 hours.

For example:

 
   find /filesystem_name -xdev -mtime 0 -ls 

Managing File System Space: out.of.space.all.cmd ITEM: FAX
Dated: 98/10/27~00:00 Category: cmd
This HTML file was generated 99/06/24~12:42:02
Comments or suggestions?
Contact us