As we promised we have now created a program that will review the content of the IFS and identify any object which is greater than a size requested. We also built display panels to review the findings, but we think using SQL against the output file is going to be more productive for the users.
The program takes about 3 minutes to traverse the entire IFS on our test system, I am sure that will be a lot longer on other systems but it did run pretty quick in our view. One of the side effects we did not expect is the program actually traversed our NFS mounts as well as can be seen in the output below. The output is the result of running the command against the root directory with a minimum size of 500MB. You can request any object which is greater than 1 byte if you wish to display the entire IFS content, it will be sorted by size when displayed in the panel group.
Couple of things to note, the objects under ‘/mnt/shieldnas1…’ are actually stored on the NAS we have NFS mounted over the IBMi directory. The large QFPCLTSTG1 objects are actually the hosted IBMi instances on the test system and the object in the ‘/backup’ directory are our backup image catalog entries. The … before the path indicates that the path length would not fit on the output so we created a further panel group to display the entire path (option 5-Display Full Path) so you can cut and paste the path into commands if required.
We have only provided an option to delete the object so far, we have considered adding something like a ZIP function so you can compress the files but can see a number of issues with that. The Library based Object compress is a much nicer feature as the names remain unchanged and the OS will automatically decompress if required.
This completes our large object search utilities but we have a lot of other useful tools we are building which we hope to provide as a single utility package. As we develop them we will post what they are and how we feel they will be useful.
If you have any comments, suggestions or questions let us know.