IFSCleanup

From MidrangeWiki
Revision as of 15:46, 2 March 2020 by Rob@dekko.com (talk | contribs)
Jump to: navigation, search

Here are some areas of the Integrated File System (IFS) you may wish to clean up on a periodic basis

On some systems the IFS may be a very significant portion of your system. The first tool to start with in determining if it is a significant portion of your IBM i is to run the pair of commands RTVDSKINF and PRTDSKINF. A sample result may show you something like the following:

Description                                     Disk     1,000,000 bytes  
User libraries                                 61.45         4810922.84  
User directories                                1.15           90209.35  
Folders and documents                            .00                .94  
QSYS                                             .08            6211.86  
Other IBM libraries                              .55           42719.19  
Licensed Internal Code                           .55           42878.36  
Temporary space                                 4.83          378368.34  
Unused space                                   31.10         2435026.19  
System internal objects                          .26           20288.37  
Objects not in a library                         .00                .02  
QTEMP libraries                                  .00             311.18  
TOTAL                                          99.97         7826936.64  

The portion of that which is IFS is the portion called "User directories". On this system it is only 1.15%. I have seem some systems like the following:

                                                % of         Size in  
Description                                     Disk     1,000,000 bytes  
User libraries                                   .07           16375.86  
User directories                               71.76        16703615.24  
…  
 

The commands RTVDSKINF and PRTDSKINF really do not drill down into the IFS. For that you need the pair of commands RTVDIRINF and PRTDIRINF. Some people do not like the output of PRTDIRINF. An alternative to PRTDIRINF is to work directly with the files generated by RTVDIRINF. See Working with output of the RTVDIRINF and PRTDIRINF commands