วันอังคารที่ 11 มีนาคม พ.ศ. 2551

14 Tips on Freeing Up Hard Disk Space Article Information

A common message in the AS/400 newsgroups and forums is a frantic plea
for help from someone whose AS/400 is in danger of running out of disk
space. The following are 14 ways you can free up disk space (in no
particular order).

1. Run the WRKF (Work with Files) command to search for all files in
library QSYS that fit generic name QHST* (system history log), and
then delete all but two or three of the most recent QHST* files.

2. Run the WRKPRB (Work with Problems) command to list all problem
logs, and then delete all unnecessary logs. You may have to change
system value QPRBHLDITV, which governs the problem log hold interval,
to a lower value so the system will let you delete recent logs.

3. Run GO CLEANUP, select option 1, and choose the appropriate cleanup
options for your installation. For more info, read
http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/QB3AGO04/4.3 .

4. Remove obsolete user profiles, which take up space on your system.
You can learn how to remove them at
http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/QB3AGO04/4.3.2 .

5. Run the RCLSTG (Reclaim Storage) command to reclaim storage wasted
by damaged objects, objects without an owner, objects not in a
library, and so on. This command can take hours to run (and it can't
be run in batch). To run RCLSTG, you sign on to the system console,
run the ENDSYS (End System) command to put the system in a restricted
state, and run RCLSTG interactively. For more information, see the tip
"Unattended Reclaim Storage" at
http://www.as400network.com/article.cfm?ID=6515 and a follow-up letter
at http://www.as400network.com/article.cfm?ID=2726 . (For AS400
Network Professional members only.)

6. Apply PTFs permanently because temporarily applied PTFs eat up
DASD. Until a PTF is applied permanently, the system has to keep two
copies of the code affected by the PTF.

7. Use the RGZPFM (Reorganize Physical File Member) command to
reorganize database files that contain many deleted records. Another
option is to specify REUSEDLT(*YES) on the CRTPF command when creating
a new physical file or on the CHGPF command when modifying an existing
physical file. You can read about the ramifications of using
REUSEDLT(*YES) in "Reusing Deleted Records" in the May 24, 2000, Club
Tech newsletter at
http://www.as400network.com/resources/artarchive/index.cfm?fuseaction=viewarticle&CO_ContentID=8236 .

8. Delete unnecessary libraries using the SBMJOB (Submit Job) command
with the DLTLIB (Delete Library) command:

SBMJOB CMD(DLTLIBxxx)

Don't use DLTLIB with IBM-supplied libraries, however, because
deleting an IBM-supplied library using DLTLIB may affect the system
configuration.

9. Run GO LICPGM to uninstall unnecessary IBM licensed programs. For
example, you may have the S/36 environment installed even if you don't
use it. There's more info at http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/QB3AGO04/4.3.4 .

10. If you use OfficeVision, run the RCLDLO (Reclaim Document Library
Object) command to reclaim document storage.

11. Run the CPROBJ (Compress Object) command on objects (such as
programs or panel groups) that are rarely used but that must be on the
system in case someone needs them.

12. Delete unnecessary files in the QEZJOBLOG queue. You can view the
QEZJOBLOG files with

WRKOUTQ *ALL

13. Clear or delete old save files. To display a list of save files in
user libraries, use the command

WRKF FILE(*ALLUSR/*ALL) FILEATR(SAVF)

14. Locate the objects using the most storage and delete them from
your system. One method for determining which objects are using the
most disk space is to use the tools available in the GO DISKTASKS
menu. These tools are described in Chapter 7 of the "AS/400 Disk
Storage Topics and Tools" Redbook (SG24-5693-00) at http://publib-b.boulder.ibm.com/Redbooks.nsf/RedbookAbstracts/sg245693.html?Open .

Another way to analyze object disk usage is with the DSPOBJD command,
which can create an outfile showing object storage:

DSPOBJD OBJ(*ALLUSR/*ALL) OBJTYPE(*FILE) OUTPUT(*OUTFILE)
OUTFILE(yourlib/youroutfile)

Using the outfile created with the above command, you can create
queries such as the one below, which creates a list of files on the
system, in order from largest to smallest size:

SELECT ODLBNM, ODOBNM, ODOBSZ
FROM yourlib/youroutfile
ORDER BY ODOBSZ DESC

Use the following query to view library disk usage:

SELECT ODLBNM, SUM(ODOBSZ) AS SIZE
FROM yourlib/youroutfile
GROUP BY ODLBNM
ORDER BY SIZE DESC

Use the following query to view disk usage by users:

SELECT ODOBOW, SUM(ODOBSZ) AS SIZE
FROM yourlib/youroutfile
GROUP BY ODOBOW
ORDER BY SIZE DESC

The above tips were adapted from a NEWS/400 Tech Corner item by Ernie
Malaga and Juergen Specht and from newsgroup answers by Thad Rizzi,
Wayne Sadecki, and Michael Buus Sorensen.

ไม่มีความคิดเห็น: