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?
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.


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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

Occasionally Windows/Microsoft Updates will fail to update. We have found a code that will delete all temporary files and re-register all dll's related to Windows/Microsoft Updates! This works 99% of the time to get the updates working again! The…
Introduction How to create multiboot configuration with XP\Vista and Windows 7 on it? And most important question - how to do this correctly so not to have any kind of nightmares we get when system gets screwed? First of all one should realize t…
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.
Suggested Courses

636 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