Freeing up disk on your IBM i

56
Freeing up disk on your IBM i By Rob Berendt 04/16/2010

description

Freeing up disk on your IBM i. By Rob Berendt 04/16/2010. Traditional items. Spool files Ptf save files. RTVDSKINF Your first line of attack. - PowerPoint PPT Presentation

Transcript of Freeing up disk on your IBM i

Page 1: Freeing up disk on your IBM i

Freeing up disk on your IBM i

By Rob Berendt

04/16/2010

Page 2: Freeing up disk on your IBM i

Traditional items

• Spool files

• Ptf save files

Page 3: Freeing up disk on your IBM i

RTVDSKINFYour first line of attack

The Retrieve Disk Information (RTVDSKINF) command is used to collect disk space information. Disk space information can then be printed using the Print Disk Information (PRTDSKINF) command. The collected information is stored in a database file in library QUSRSYS. The file name depends on the auxiliary storage pool (ASP) device for which disk space information is retrieved. If the information was retrieved from the system and basic ASPs, the collected information will be stored in file QAEZDISK. If the information was retrieved from an independent ASP device, the collected information will be stored in file QAEZnnnnn, where 'nnnnn' is the ASP number of the independent ASP. The information will be stored in a data base file member named QCURRENT.

Each time this command is run, existing information in QCURRENT is written over. To save existing information in member QCURRENT, rename file QAEZDISK or QAEZDnnnnn, or copy the member to another file.

Note: Do not rename member QCURRENT within file QAEZDISK or QAEZDnnnnn. If there is more than one member in QAEZDISK or QAEZDnnnnn, the results of running this command can be unpredictable.

Page 4: Freeing up disk on your IBM i

RTVDSKINFmore small print

Restrictions:

1. You must have all object (*ALLJOB) special authority to collect disk space information.

2. You must be enrolled in the system distribution directory to collect folder and document information. Use the Work with Directory Entries (WRKDIRE) command to enroll.

Page 5: Freeing up disk on your IBM i

PRTDSKINF *SYS

Page 6: Freeing up disk on your IBM i

PRTDSKINF *SYSInformation collected . . . . . . . . . : 03/18/10 04:00:02

Total disk space on system in 1,000,000 bytes . . . . . . . . . . . . . . . . : 326233 Main storage size in megabytes . . . . . : 8116

% of Size in Description Disk 1,000,000 bytes User libraries 54.74 178588.88 User directories 11.77 38393.65 Folders and documents .00 3.58 QSYS .77 2516.57 Other IBM libraries 2.88 9389.23 Licensed Internal Code 1.49 4855.48 Temporary space 2.71 8826.39 Unused space 25.20 82217.03 System internal objects .28 897.42 Objects not in a library .00 .00 TOTAL 99.84 325688.23

Page 7: Freeing up disk on your IBM i

i5/OS items reported

i5/OS items reported: Disk 1,000,000 bytes

History files .04 138.06

Journal receivers 42.45 138477.56

User profiles .03 104.44

Configuration information .00 3.77

System help (QHLPSYS) .01 44.03

Calendars .00 1.59

System directories .00 2.80

Document files .00 2.92

Page 8: Freeing up disk on your IBM i

OfficeVision items reported

OfficeVision items reported: Disk 1,000,000 bytes Enrollment .00 .12 Mail files .00 .43 Text search .00 .00 Personal directories .00 .59

Page 9: Freeing up disk on your IBM i

Licensed Internal Code

Licensed Internal Code: Disk 1,000,000 bytes LIC and tables 1.10 3581.56 Dump space .33 1077.94 Error logs .00 5.07 Trace tables .00 .00 VLIC logs .06 188.75 VLIC control blocks .00 2.16

Page 10: Freeing up disk on your IBM i

Space used by system internal objects

Space used by system internal objects: Disk 1,000,000 bytes Additional configuration information .00 .12 Communications .00 8.31 Data base .01 31.11 Manage jobs .18 589.01 Monitor performance .00 .00 Folders .00 .23 Mail .00 .02 i5/OS .01 19.95 S/36 Environment .00 .00 Security .02 64.41 SNADS and object distribution .01 25.83 Spool .04 135.59 Cross component .01 18.04 Product installation .00 .12 Recovery of information .00 .92 Obsolete .00 .04 Internal system journals .00 3.72

Page 11: Freeing up disk on your IBM i

Miscellaneous items reported

Miscellaneous items reported: Disk 1,000,000 bytes Printer output & Spooling (QSPL) .45 1476.66 Replaced object library (QRPLOBJ) .00 11.94 Storage affected by RCLSTG .00 .00 Reclaim storage library (QRCL) .00 .10

Page 12: Freeing up disk on your IBM i

PRTDSKINF(Refreshed)

Information collected . . . . . . . . . : 03/22/10 10:52:29 Total disk space on system in 1,000,000 bytes . . . . . . . . . . . . . . . . : 326233 Main storage size in megabytes . . . . . : 8116 % of Size in Description Disk 1,000,000 bytes User libraries 62.28 203184.91 User directories 11.87 38726.31 Folders and documents .00 3.58 QSYS .78 2557.08 Other IBM libraries 2.88 9392.98 Licensed Internal Code 1.49 4855.48 Temporary space 3.26 10629.18 Unused space 17.04 55588.60 System internal objects .33 1082.70 Objects not in a library .00 .00 TOTAL 99.93 326020.82

Page 13: Freeing up disk on your IBM i

i5/OS items reported

% of Size in Disk 1,000,000 bytesi5/OS items reported: History files .04 137.79 Journal receivers 50.04 163239.19 User profiles .03 104.44 Configuration information .00 3.77 System help (QHLPSYS) .01 44.03 Calendars .00 1.59 System directories .00 2.80 Document files .00 2.93

Page 14: Freeing up disk on your IBM i

PRTDSKINF *LIB

Type of report . . . . . . . . . > *LIB ASP device . . . . . . . . . . . *SYSBASLibraries . . . . . . . . . . . *ALL Objects . . . . . . . . . . . . > *NONE Object types . . . . . . . . . . *ALL + for more values Smallest size . . . . . . . . . 0 Sort by . . . . . . . . . . . . *SIZE

Page 15: Freeing up disk on your IBM i

Library summary

% of Size in Library Owner Disk 1000 bytesQUSRSYS QSYS 49.99 163070406.7ROUTINES ROB 4.30 14012014.6QMPGDATA QPM400 3.19 10396958.7QSYS QSYS .78 2540699.1QSYSDIR QSYS .64 2097987.6DOM85 PROGRAMMER .60 1947873.3...

Page 16: Freeing up disk on your IBM i

PRTDSKINF *LIB(with objects)

Type of report . . . . . . . . . > *LIB ASP device . . . . . . . . . . . *SYSBASLibraries . . . . . . . . . . . *ALL Objects . . . . . . . . . . . . > *ALL Object types . . . . . . . . . . *ALL + for more values Smallest size . . . . . . . . . > 10000 Sort by . . . . . . . . . . . . *SIZE

Page 17: Freeing up disk on your IBM i

w/Objects

Library/ % of Size in Object Type Owner Library 1000 bytesQUSRSYS *LIB QSYS 163070406.7 QAUDJR0261 *JRNRCV PROGRAMMER .94 1540194.3 QAUDJR0262 *JRNRCV PROGRAMMER .94 1540194.3 QAUDJR0266 *JRNRCV PROGRAMMER .94 1540194.3 QAUDJR0283 *JRNRCV PROGRAMMER .94 1540194.3 QAUDJR0288 *JRNRCV PROGRAMMER .94 1540194.3 QAUDJR0290 *JRNRCV PROGRAMMER .94 1540194.3 QAUDJR0345 *JRNRCV PROGRAMMER .94 1540194.3 QAUDJR0348 *JRNRCV PROGRAMMER .94 1540194.3 ... QAEZDISK *FILE PROGRAMMER .02 29474.8ROUTINES *LIB ROB 14012014.6 IFSLIST *FILE SSA 28.23 3956215.8 QAEZD0058O *FILE PROGRAMMER 1.30 181481.5 QAEZD0054O *FILE PROGRAMMER 1.24 173183.0 QAEZD0017O *FILE PROGRAMMER 1.24 173162.5 QAEZD0014O *FILE PROGRAMMER 1.24 173092.9

Page 18: Freeing up disk on your IBM i

Before/After cleaning receivers

System ASP . . . . . . . . . . . . . . : 326.2 G% system ASP used . . . . . . . . . . : 83.7664

After

% system ASP used . . . . . . . . . . : 36.2684

Page 19: Freeing up disk on your IBM i

Run SQL Scripts

Page 20: Freeing up disk on your IBM i

Biggest objects left

-- List of objects by biggest object, descending-- Does NOT include stream file (aka other IFS) stuffSelect diobsz as size, diobli as library, diobnm as object, diobtp as type, diobat as attributeFrom qusrsys.qaezdiskwhere diobli <> ' 'Order by diobsz desc;

Page 21: Freeing up disk on your IBM i

Biggest objects left

Page 22: Freeing up disk on your IBM i

Other IBM libraries

If you see significant space in “Other IBM libraries” you may want to look carefully in the PRTDSKINF *LIB. One user noticed these libraries

% of Size in Library Owner Disk 1000 bytes QPFRD61001 QSYS .12 404222.0QPFRD54001 QSYS .11 366313.5They all had a text of “Down level files from library QMPGDATA”. On his system they consumed 30% of his disk.

Page 23: Freeing up disk on your IBM i

What about “User directories”?

% of Size in Description Disk 1,000,000 bytesUser libraries 15.39 50200.09 User directories 11.84 38617.42 Folders and documents .00 3.58 QSYS .78 2557.05 Other IBM libraries 2.87 9375.59 Licensed Internal Code 1.49 4855.48 Temporary space 3.54 11543.27 Unused space 63.62 207540.71 System internal objects .32 1038.80 Objects not in a library .00 .00 TOTAL 99.85 325731.99

Page 24: Freeing up disk on your IBM i

RTVDIRINF DIR('/') INFLIB(...)

WRKF QAEZD*QAEZD0001DQAEZD0001OQAEZD0002DQAEZD0002OQAEZD0003DQAEZD0003O…

Page 25: Freeing up disk on your IBM i

List of objects by biggest directory

-- List of objects by biggest directoryWith t1 as(select distinct d.qezdirnam1 as ParentDirectory,qezdiridxfrom routines.QAEZD0058d dwhere locate('/',d.qezdirnam1,2)=0 and d.qezdirnam1<>'/'),T2 as (Select ParentDirectory, qezdirnam1,o.qezdtasize as sizefrom T1, routines.qaezd0058d d left outer join routines.qaezd0058o o on d.qezdiridx=o.qezdiridxwhere qezdirnam1 like trim(ParentDirectory) concat '%' and (qezdirnam1 = ParentDirectory or substr(qezdirnam1,1,max(locate('/',qezdirnam1,2)-1,1)) = ParentDirectory))select ParentDirectory, sum(size) as dirsizeFrom T2Group by ParentDirectoryorder by 2 desc;

Page 26: Freeing up disk on your IBM i

List of objects by biggest directory

Page 27: Freeing up disk on your IBM i

Growth, by directory-- List of objects by biggest directory-- Compared to an earlier run to check growth on that directory.With t1 as(select distinct d.qezdirnam1 as ParentDirectory, qezdiridxfrom routines.QAEZD0058d dwhere locate('/',d.qezdirnam1,2)=0 and d.qezdirnam1<>'/'),T2 as (Select ParentDirectory, qezdirnam1,o.qezdtasize as sizefrom T1, routines.qaezd0058d d left outer join routines.qaezd0058o o on d.qezdiridx=o.qezdiridxwhere qezdirnam1 like trim(ParentDirectory) concat '%' and (qezdirnam1 = ParentDirectory or substr(qezdirnam1,1,max(locate('/',qezdirnam1,2)-1,1)) = ParentDirectory)),t3 as(select distinct d.qezdirnam1 as ParentDirectory, qezdiridxfrom routines.QAEZD0057d dwhere locate('/',d.qezdirnam1,2)=0 and d.qezdirnam1<>'/'),

Page 28: Freeing up disk on your IBM i

cont

T4 as (Select ParentDirectory, qezdirnam1,o.qezdtasize as sizefrom T1, routines.qaezd0057d d left outer join routines.qaezd0057o o on d.qezdiridx=o.qezdiridxwhere qezdirnam1 like trim(ParentDirectory) concat '%' and (qezdirnam1 = ParentDirectory or substr(qezdirnam1,1,max(locate('/',qezdirnam1,2)-1,1)) = ParentDirectory)),T5 as (select t2.ParentDirectory, sum(t2.size) as dirsizeFrom T2Group by ParentDirectoryorder by 2 desc),

Page 29: Freeing up disk on your IBM i

cont

T6 as (select t4.ParentDirectory, sum(t4.size) as dirsizeFrom T4Group by ParentDirectoryorder by 2 desc)select t5.ParentDirectory, t5.dirsize, ifnull(t6.dirsize,0) as OldSize, t5.dirsize - ifnull(t6.dirsize,0) as growthfrom t5 left outer join t6 on t5.ParentDirectory = t6.ParentDirectoryorder by growth desc;

Page 30: Freeing up disk on your IBM i

Results

Page 31: Freeing up disk on your IBM i

Detailed-- List of objects by biggest directory - DetailedWith t1 as(select distinct d.qezdirnam1 as ParentDirectory, qezdiridxfrom routines.QAEZD0058d dwhere locate('/',d.qezdirnam1,2)=0 and d.qezdirnam1<>'/'),T2 as (Select ParentDirectory, qezdirnam1 as Dir, qezobjnam as object,o.qezdtasize as sizefrom T1, routines.qaezd0058d d left outer join routines.qaezd0058o o on d.qezdiridx=o.qezdiridxwhere qezdirnam1 like trim(ParentDirectory) concat '%' and (qezdirnam1 = ParentDirectory or substr(qezdirnam1,1,max(locate('/',qezdirnam1,2)-1,1)) = ParentDirectory))select ParentDirectory, dir, object,sizeFrom T2where ParentDirectory like '/fixes%'order by ParentDirectory, size desc;

Page 32: Freeing up disk on your IBM i

Detailed Results - fixes

Page 33: Freeing up disk on your IBM i

Detailed Results – gdi01

Page 34: Freeing up disk on your IBM i

Detailed Results - /QIBM

Page 35: Freeing up disk on your IBM i

System 2Total disk space on system in 1,000,000 bytes . . . . . . . . . . . . . . . . : 210990 % of Size in Description Disk 1,000,000 bytesUser libraries 71.41 150657.68 User directories 3.72 7852.45 Folders and documents .12 262.48 QSYS 1.43 3008.61 Other IBM libraries 2.34 4935.92 Licensed Internal Code 1.83 3864.31 Temporary space 2.36 4977.59 Unused space 15.76 33243.50 System internal objects .35 743.61 Objects not in a library .00 1.37 TOTAL 99.32 209547.52

Page 36: Freeing up disk on your IBM i

PRTDSKINF *LIB

% of Size in Library Owner Disk 1000 bytesEMIFILES QPGMR 15.06 31764607.0AMAFILES QPGMR 4.82 10176118.8LECFILES QPGMR 4.33 9132789.8PMBDMART61 QPGMR 3.64 7689179.1LEPFILES QPGMR 2.71 5718450.2ERAFILES QPGMR 2.57 5414633.5RBSPGMLIB RBTADMIN 2.46 5186822.1PEPFILES QPGMR 2.38 5016404.0SEAFILES QPGMR 2.29 4836237.3PMBBS61 QPGMR 2.25 4739317.8EPAFILES QPGMR 1.65 3491524.6RJSTEMP QTMHHTP1 1.54 3244945.4QSYS QSYS 1.42 2993903.1QGPL QSYS 1.36 2865692.7PMBPROD DTYNDALL 1.36 2863366.1NCRFILES QPGMR 1.32 2791444.5...

Page 37: Freeing up disk on your IBM i

PRTDSKINF *LIB with obj

PRTDSKINF RPTTYPE(*LIB) OBJ(*ALL) MINSIZE(10000)

Library/ % of Size in Object Type Owner Library 1000 bytesEMIFILES *LIB QPGMR 31764607.0 DMFJRNHS *FILE QPGMR 21.45 6813753.3 DMRIJRNHS *FILE QPGMR 13.92 4420911.1 DMRJRNHS *FILE QPGMR 11.43 3629232.1 DMMJRNHS *FILE QPGMR 4.20 1332854.8 TRANS *FILE QPGMR 3.66 1161936.9...AMAFILES *LIB QPGMR 10176118.8 DMFJRNHS *FILE QPGMR 20.48 2083622.9 DMRIJRNHS *FILE QPGMR 13.79 1403105.3 DMRJRNHS *FILE QPGMR 11.64 1185001.5...

Page 38: Freeing up disk on your IBM i

Save filesSELECT DIOBLI AS LIBRARY, DIOBNM AS OBJECT, DIOBAT AS ATTR, DIOBSZ AS SIZE FROM QUSRSYS/QAEZDISK WHERE DIOBAT='SAVF' ORDER BY DIOBSZ DESC

LIBRARY OBJECT SIZEQIWA2 QSI33310J4 355,500,032QJAVA QSI18127J1 353,271,808QGPL QSI36331 189,698,048QGPL QSI36797 180,883,456QGPL QSI37237 171,667,456QSYSDIR QSI17959J1 156,270,592QGPL QSI36479 148,082,688QSYSDIR QLWILWI71 127,811,584QSYSDIR QPZA011059 127,795,200QGPL Q5799PTL 118,591,488QGPL QSI36530 105,537,536QGPL QSI37712 97,243,136QSYSDIR QPZ1IWSS1O 93,872,128QGPL QSI36102 86,122,496...

Page 39: Freeing up disk on your IBM i

PTF save filesSELECT DIOBLI AS LIBRARY, DIOBNM AS OBJECT, cast(DIOBSZ as dec(9,0)) AS SIZE FROM QUSRSYS/QAEZDISK WHERE DIOBAT='SAVF' AND DIOBLI LIKE 'Q%' AND DIOBNM LIKE 'Q%'ORDER BY DIOBSZ DESC

LIBRARY OBJECT SIZEQIWA2 QSI33310J4 355,500,032QJAVA QSI18127J1 353,271,808QGPL QSI36331 189,698,048QGPL QSI36797 180,883,456QGPL QSI37237 171,667,456QSYSDIR QSI17959J1 156,270,592QGPL QSI36479 148,082,688QSYSDIR QLWILWI71 127,811,584QSYSDIR QPZA011059 127,795,200QGPL Q5799PTL 118,591,488QGPL QSI36530 105,537,536QGPL QSI37712 97,243,136QSYSDIR QPZ1IWSS1O 93,872,128QGPL QSI36102 86,122,496...

Page 40: Freeing up disk on your IBM i

Total PTF save files

SELECT SUM(DIOBSZ) AS TOTALSIZE FROM QUSRSYS/QAEZDISK WHERE DIOBAT='SAVF' AND DIOBLI LIKE 'Q%' AND DIOBNM LIKE 'Q%'

TOTALSIZE5,065,977,856

or 2.4% of 211GB

Page 41: Freeing up disk on your IBM i

Other save filesSELECT DIOBLI AS LIBRARY, DIOBNM AS OBJECT, cast(DIOBSZ as dec(9,0)) AS SIZE FROM QUSRSYS/QAEZDISK WHERE DIOBAT='SAVF' AND not(DIOBLI LIKE 'Q%' AND DIOBNM LIKE 'Q%')ORDER BY DIOBSZ DESC

LIBRARY OBJECT SIZENGSSUPPORT QIQE6403 65,101,824ZENDCORE ZENDMYSQL 61,673,472NGSJWINS JWKIFS31R0 35,151,872C61CLAIMS PHASE1 25,198,592PMBBS61 EXBILFIL04 16,281,600QSYSINC UNISAVE 15,785,984QSYSINC UNISAVE34 15,785,984QSYSINC UNISAVE32 14,716,928PMBBS61 EXBILFIL03 14,184,448NGSJWINS SEJIFS31R0 14,184,448C61CLAIMS CMBMAINT 13,987,840QGPL SVN14PRD 13,987,840QSYSINC UNISAVE24 13,668,352QSYSINC UNISAVE26 13,139,968PMBBS61 EXBILFIL02 12,611,584...

Page 42: Freeing up disk on your IBM i

Deleted recordsDSPFD FILE(*ALL/*ALL) TYPE(*MBRLIST) OUTPUT(*OUTFILE) FILEATR(*PF) OUTFILE(QTEMP/DSPFD)

SELECT MLLIB, MLFILE, MLNAME, MLNDTRFROM ROB/DSPFD ORDER BY mlndtr desc

Library File Member Deleted RecordsPMBDMART61 DMTMPINS DMTMPINS 6,179,026RBSPGMLIB RBSOH RBSOH 225,283PMBBS61 XECSREF XECSREF 75,601EMIFILES TRWRKOPR TRWRKOPR 17,276PMBBS61 SYSTEMZ SYSTEMZ 9,444EMIFILES TRWRKOPD TRWRKOPD 8,168LECFILES SOUNDXPF SOUNDXPF 5,852EMIFILES TRWRKOPH TRWRKOPH 5,399EMIFILES TRWRKOPM TRWRKOPM 5,399LEPFILES SOUNDXPF SOUNDXPF 5,351SEAFILES TRWRKOPR TRWRKOPR 4,719AMAFILES TRWRKOPR TRWRKOPR 4,616...

Page 43: Freeing up disk on your IBM i

Deleted space

DSPFD FILE(ROB/*ALL) TYPE(*MBR) OUTPUT(*OUTFILE) FILEATR(*PF) OUTFILE(QTEMP/DSPFDOUT)

SELECT MBLIB, MBFILE, MBNAME, MBNDTR, MBNDTR * MBMXRL AS DELSPACEFROM QTEMP/DSPFDOUT ORDER BY mBndtr*MBMXRL desc

Page 44: Freeing up disk on your IBM i

Directories

PARENTDIRECTORY DIRSIZE/QSYS.LIB 123,926,617,828/QIBM 1,585,680,999/usr 859,082,352/QOpenSys 466,744,063/QDLS 177,440,609/QCA400 70,185,973/RBSTMPLIB 59,659,232/www 51,795,922/NGSJWALK 32,897,411/JWALK 32,873,086/RJSTEMP 29,138,944/JWALKC61 26,725,882/SEAJWK 6,617,400/NGSJWR 1,393,416/CFPMB 1,277,458...

Page 45: Freeing up disk on your IBM i

/QIBM

OBJECT SIZEiNav.ear 187,696,231setup.exe 77,683,617QSI333105722XH20005R04M00505000000018 29,081,765iwawps.war 29,081,718src.jar 19,497,537rt.jar 19,343,171UNI1.CAB 18,296,089QSI333105722XH20005R04M00505000000019 17,119,740habeansnlv.jar 17,119,740IDSWebApp.ear 16,460,986JRE1.CAB 16,248,776QSI169155722XE10005R02M00505000000013 13,949,702...

Page 46: Freeing up disk on your IBM i

/usr

DIR /usr/local/Zend/Core/lib /usr/local/Zend20081106223315/Core/lib /usr/local/Zend/Core/lib/aspell-0.60 /usr/local/Zend20081106223315/Core/lib/aspell-0.60 /usr/local/Zend/Core/lib/aspell-0.60 /usr/local/Zend20081106223315/Core/lib/aspell-0.60 /usr/local/Zend/Core/lib/aspell-0.60 /usr/local/Zend20081106223315/Core/lib/aspell-0.60 /usr/local/Zend/Core/lib/aspell-0.60 /usr/local/Zend20081106223315/Core/lib/aspell-0.60 /usr/local/Zend/Core/lib/aspell-0.60 /usr/local/Zend20081106223315/Core/lib/aspell-0.60 /usr/local/Zend/Core/lib/aspell-0.60 /usr/local/Zend20081106223315/Core/lib/aspell-0.60 /usr/local/Zend/Core/lib /usr/local/Zend20081106223315/Core/lib /usr/local/Zend/Core/lib/php/20060613 /usr/local/Zend20081106223315/Core/lib/php/20060613

Page 47: Freeing up disk on your IBM i

/QOpenSys

DIR OBJECT SIZE/QOpenSys/QIBM/ProdData/OS400/PASE/lib libxlf90_r.a 12,314,298/QOpenSys/QIBM/ProdData/OS400/PASE/lib libXm.a 10,676,892/QOpenSys/QIBM/ProdData/OS400/PASE/lib libc.a 8,174,466/QOpenSys/QIBM/ProdData/OS400/PASE/lib libC.a 8,079,369/QOpenSys/QIBM/ProdData/DeveloperTools/emacs/bin emacs 7,573,089/QOpenSys/QIBM/ProdData/OS400/PASE/MRI2924/loc TE_IN.UTF-8__64 6,822,537/QOpenSys/QIBM/ProdData/OS400/PASE/MRI2924/loc HI_IN.UTF-8__64 6,729,611/QOpenSys/QIBM/ProdData/OS400/PASE/MRI2924/loc MR_IN.UTF-8__64 6,729,611/QOpenSys/QIBM/ProdData/OS400/PASE/MRI2924/loc GU_IN.UTF-8__64 6,691,348/QOpenSys/QIBM/ProdData/OS400/PASE/MRI2924/loc TA_IN.UTF-8__64 6,670,169/QOpenSys/QIBM/ProdData/OS400/PASE/lib/nls/loc ID_ID.UTF-8__64 6,647,065...

Page 48: Freeing up disk on your IBM i

/QDLSDIR OBJECT SIZE/QDLS/TRANSFER CTYSTATE.WRK 61,170,843/QDLS/MONTHEND/EMI ARSELPRT.PDF 5,146,291/QDLS/TRANSFER PPRRVU10.CSV 2,365,799/QDLS/TRANSFER PPRRVU09.CSV 2,291,868/QDLS/MONTHEND/EMI PRANAL.PDF 1,065,234/QDLS/MONTHEND/LEC PRANAL.PDF 962,749/QDLS/QBKBOOKS/UNITABLE EPHU932 786,432/QDLS/QBKBOOKS/UNITABLE EPHU939 786,432/QDLS/QBKBOOKS/UNITABLE EPHU942 786,432/QDLS/MONTHEND/ESP PRANAL.PDF 661,559/QDLS/MONTHEND/PCR PRANAL.PDF 618,419/QDLS/TRANSFER X12N271 574,163/QDLS/MONTHEND/LEP PRANAL.PDF 408,437/QDLS/TRANSFER XENVYFLO 331,250/QDLS/MONTHEND/PCR PRANL3.PDF 278,643...

Page 49: Freeing up disk on your IBM i

MGTC/service

/QIBM/UserData/OS400/MGTC/service

This directory can get quite sizable. You may have turned on tracing at one time to help IBM help you with a problem. If you have data in there see:

http://www-01.ibm.com/support/docview.wss?uid=nas1d1cbd364ea28199b862573d20062e9cb

Or search ibm.com for 862573D20062E9CB

Page 50: Freeing up disk on your IBM i

GO CLEANUP

Type choices below, then press Enter. Allow automatic cleanup . . . . . . . . . . . Y Y=Yes, N=No Time cleanup starts each day . . . . . . . . 22:00:00 00:00:00- 23:59:59, *SCDPWROFF, *NONE Number of days to keep: User messages . . . . . . . . . . . . . . . 7 1-366, *KEEP System and workstation messages . . . . . . 4 1-366, *KEEP Critical system messages . . . . . . . . . *KEEP 1-366, *KEEP Job logs and other system output . . . . . 7 1-366, *KEEP System journals and system logs . . . . . . 30 1-366, *KEEP

Page 51: Freeing up disk on your IBM i

GO CLEANUP help

Page 52: Freeing up disk on your IBM i

PTF save files

-- List of objects by biggest object, descending-- Does NOT include stream file (aka other IFS) stuff-- Save files onlySelect diobsz as size, diobli as library, diobnm as object, diobtp as type, diobat as attributeFrom qusrsys.qaezdiskwhere diobli <> ' ' and diobat='SAVF'Order by diobsz desc;

Page 53: Freeing up disk on your IBM i

Summary

Always start with RTVDSKINF.

Query the data generated by RTVDIRINF for some detail about stream files.

What you knew in the past may still be important, but, start with the above first to get the biggest bang for your buck.

Page 54: Freeing up disk on your IBM i

Hip Shots

Keep your /QIBM/UserData/OS400/MGTC/service directory clean.

Watch your journal receivers.

If a Domino shop consider:R8 compressionDAOSArchivingclearing out your IBM_TECHNICAL_SUPPORT directory

Page 55: Freeing up disk on your IBM i

Hip Shots

Apply your ptf’s permanently.

Page 56: Freeing up disk on your IBM i

Reference

http://www.statususer.org/pdf/20100413Freeing%20up%20disk%20on%20your%20IBM%20i.ppt

[email protected]