Running out of disk space

Posted on 2010-11-08
Last Modified: 2013-12-06
I am monitoring a couple of iSeries systems and one of them is running out of disk space. I am not an admin though, but asked by him to post here!

One machine runs at 92% ASP and it is hard to find out what the heck is filling up the machine. We have got like 400k SPOOL files, which is too much and will be deleted soon, but that does not seem to be the problem. An IPL is scheduled for this weekend anyways.

System is still running on V5R3.

Is there a way to see this in iSeries Navigator or some command that shows the libraries and files / subfiles with their sizes?
Question by:Ferrosti
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +1
LVL 35

Expert Comment

by:Gary Patterson
ID: 34084360

Expert Comment

by:Jon Snyderman
ID: 34087789
To really get down to what is taking the space, you can use the RTVDSKINF and PRTDSKINF commands.  The latter cant be run interactively.  You need to submit it.

To check its status: WRKSBMJOB and look got job: RTVDSKINF.
When the job is in OUTQ, run PRTDSKINF and prompt it with F4.  

This will break down all the disk space on the system and help you find the bullk of the matter.

~ Jon

Author Comment

ID: 34088032
As far as I know our admin is going to do the IPL as well as the Reclaim Disk Storage. As far as I understood it (I am more familiar with Unix), this will need to be done in restricted mode right after IPL.

'Disk Tasks' is said to need at least 3% of disk space (link 1). At this point this will certainly blow up the machine and this one is the most important. Before the weekend we were down to 89% and today it got up to almost 93%.

We are archiving spool files to an external DMS system like invoices, orders, etc. Could it be possible that deleted spool files space is not reclaimed automatically by the system?
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Assisted Solution

LewisPower earned 200 total points
ID: 34088110

What's interesting with jsnyderman command is once the RTVDSKINF has finisehd to run (it could take several hours), you could print a first report (PRTDSKINF RPTTYPE(*LIB) by example), then refine your searches (PRTDSKINF RPTTYPE(*LIB) LIB(XYZLIB) OBJ(*ALL) by example). It can be sorted by objet size, etc. This command is use more to decrease your datas.

What's interesting with Gary link, it's to decrease space from the OS environment. It will help you delete performace collection objects, reclaim storage, etc.

Both ways are very interesting !


Assisted Solution

by:Jon Snyderman
Jon Snyderman earned 100 total points
ID: 34088687
Running the RTVDSKINF has a line that will show exactly how much space will be regained by running a RCLSTG.    It will also show you specifically how much the OS is taking for spooled objects, history logs, etc.  

I would suggest running that before you hang your hat on an IPL and a RCLSTG.  

LVL 35

Accepted Solution

Gary Patterson earned 200 total points
ID: 34088909
Clean up your spooled files, then run a RCLSPLSTG (0).  Spooled file space is not automatically released by the system.  The OS assumes that if you had 400K spooled files recently, you'll need space for them again.

Any time you make a drastic reduction in spooled files, or change you spool archival strategy, or have a runaway job that creates hundreds of thousands of unwanted spooled files, you should do a RCLSPLSTG.

If you just follow the system cleanup instructions in my first reply, it covers most of what you need to know.  If you still have space problems, you might want to engage the services of an AS/400 expert that can do a more detailed analysis for you.

- Gary Patterson

Author Comment

ID: 34091408
Thanks a lot for all your help.
Our Admin does not want to do all this before the upcoming weekend and the scheduled IPL. As far as I understood him this will be taken into consideration, but due the fact for the machine beeing extremely slow he does not want to do anything on it reducing performance during working hours.
After working hours and start of nightly batch jobs there is not enough time to achieve all this.
LVL 35

Expert Comment

by:Gary Patterson
ID: 34093207
The real answer to your question is in the two top links that I provided in my first response.

Tell your admin that there are lots of of small, fast, easy things he can do to cleanup during normal hours without waiting for the weekend or an IPL.  
Again, refer to the first link up top for details on these:

  • QHST cleanup
  • Delete joblogs and debug spooled files
  • Backup and delete journal receivers.
  • Clean up unneeded DLO's, and run RCLDLO (I'd submit the RCLDLO to batch, though)
  • Clean up any unneeded old performance data
  • Spooled file cleanup and RCLSPLSTG can go at any time.
  • SQL log cleanup
  • Problem log cleanup
  • Index advisor file cleanup
  • Stop SMTP tracing if running and cleanup traces.
These items are all non-performance intensive, and many can be accomplished in just a few minutes.  Silly not to do them now if you're having space and performance issues.

- Gary Patterson


Expert Comment

by:Jon Snyderman
ID: 34093258
I second that.  Gary is absolutely right.  I would encourage you to take action asap.  An iSeries running out of space is very bad.  Also, my post about running the RTVDSKINF can be submitted at low priority to run in the background without impacting your users.  

~ Jon

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Guide for enabling bit locker encryption within Windows 10 Pro 3 140
problem creating new luks volume on new VM disk 5 128
Monitor SQL Insert 8 122
Email Headers 4 27
Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question