• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

14种清硬盘空间的方法

发布: 2007-6-08 22:43 | 作者: seanhe | 来源: | 查看: 65次 | 进入软件测试论坛讨论

领测软件测试网
14 Tips on Freeing up Hard Disk Space

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.

 hanyu 回复于:2003-07-15 19:41:05
实用

 pcas400 回复于:2003-07-16 07:51:24
精华

 居士 回复于:2003-07-16 08:50:54
very good very good very good very good very good

 michael9406 回复于:2003-07-16 12:01:24
过奖了

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网