• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • When i5/OS Backups Keep You Waiting

    December 16, 2009 Hey, Joe

    We recently watched our month-end backup drag on forever. Occasionally, a job log message would appear saying that an object was in use and couldn’t be opened. Do the i5/OS backup commands “wait” on locked objects? Does that mean if several objects are in use, the backup wastes time waiting, or does it save other objects until it times out waiting for the locked items?

    –Mike

    Mike went on to say that he understood his system shouldn’t be locking objects when he’s performing a month-end backup, but his suspicion is that the locked objects are log files from various third-party software products. He is considering performing an End Subsystem (ENDSBS) command with the *ALL option to ensure the system was quiet before backup.

    To answer Mike’s questions, i5/OS backups will pause when waiting to backup a locked object. The SAVxxx commands will not backup other objects and then come back to the locked objects later. The backup will just stop on a locked object, and it will wait until either the object comes free or the command’s wait time parameter times out. So IMHO, if he’s trying to run a backup while the system is active and several critical i5/OS objects are locked and cannot be backed up, that could very well be why his month-end backups are taking so long. For each locked object, the backup routine would need to wait for its time out parameter to expire before it can move on to the next object, resulting in a fairly long cumulative backup time.

    Mike has a few different options for improving this situation, including:

    1. Check the Save Active Wait Time (SAVACTWAIT) parameters associated with his SAVxxx commands. One of the SAVACTWAIT list values is a timer for how long the command should wait for locked objects before skipping the object and moving on to the next object to save. By default, this parameter is set to 120 seconds, which means that the backup operation could wait up to two minutes before deciding it can’t backup the object and move on to the next object. If Mike doesn’t care whether these objects are backed up or not, he can reduce the SAVACTWAIT wait time down to something more reasonable (say 10 seconds) to improve his backup speed. Looking at IBM‘s documentation, it’s unclear whether this parameter is only in use for Save While Active backups or whether it’s used for all backups, but I suspect it’s the main culprit behind Mike’s long backup times.

    2. Mike can change his backup to a Save While Active backup. This may sidestep some of the issues with objects in use, though he would still have to deal with setting his SAVACTWAIT parameter correctly. If you’ve never worked with a Save While Active back up, read my article on creating a simple Save While Active backup program.

    3. Ending all subsystems will free up Mike’s locked objects, but that may not be compatible with the processing goals of his shop. Mike could perform some research to figure out exactly which active jobs are locking the log files that are holding up the backup, and then selectively turn off and turn back on those jobs while performing his backup. To do this, Mike would need to change his backup routine to segment the backup steps this way.

    • Backup all objects that typically do not have locked files, ignoring objects in the libraries where the locked files reside. On the Save Library (SAVLIB) command, for example, Mike can specify any libraries to omit from a multi-library backup by entering those library names in the Libraries To Omit (OMITLIB) parameter.
    • After all the libraries without locked objects are saved, Mike can automatically end any jobs that traditionally lock the objects that hold up his backup.
    • Backup the libraries that usually have locked objects.
    • Restart the jobs that were ended.

    4. Similar to how we discussed omitting libraries in step three, Mike could set up his SAVxxx commands to omit problem objects, skipping those objects that are generally locked during the backup. He can specify the names of objects to omit in the Objects To Omit (OMITOBJ) parameter on each of his SAVxxx commands. If he decides to skip backing up any objects that are locked when his system is active, he would then have to ensure that he performs full system backups on a semi-regular basis so that he can get periodic backups of his locked objects.

    5. Mike could restructure his month-end backup routine so that he takes full system backups (FSB) during his month-end save. A FSB puts the system in restricted state, allowing the system to backup all objects without having to worry about object locks. The only problem is that many (if not most) shops are requiring 24x7x365 system access so it may be difficult to take the system down for an FSB even once a month. However, if he can perform a full system backup, it would definitely be worth his while if only to save a complete snapshot of the system at least once a month.

    Performing one of these options should solve his problems.

    –Joe

    RELATED STORY

    A Simple Save While Active Backup Program



                         Post this story to del.icio.us
                   Post this story to Digg
        Post this story to Slashdot

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    VISUAL LANSA 16 WEBINAR

    Trying to balance stability and agility in your IBM i environment?

    Join this webinar and explore Visual LANSA 16 – our enhanced professional low-code platform designed to help organizations running on IBM i evolve seamlessly for what’s next.

    🎙️VISUAL LANSA 16 WEBINAR

    Break Monolithic IBM i Applications and Unlock New Value

    Explore modernization without rewriting. Decouple monolithic applications and extend their value through integration with modern services, web frameworks, and cloud technologies.

    🗓️ July 10, 2025

    ⏰ 9 AM – 10 AM CDT (4 PM to 5 PM CEST)

    See the webinar schedule in your time zone

    Register to join the webinar now

    What to Expect

    • Get to know Visual LANSA 16, its core features, latest enhancements, and use cases
    • Understand how you can transition to a MACH-aligned architecture to enable faster innovation
    • Discover native REST APIs, WebView2 support, cloud-ready Azure licensing, and more to help transform and scale your IBM i applications

    Read more about V16 here.

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Sponsored Links

    10ZiG Technology:  Ask us about our new Ethernet Terminal for only $195!
    Bytware StandGuard Security:  Are you monitoring and auditing your System i security? FREE trial.
    Manta Technologies:  Year-End SALE! 40% off the complete library and all combo packs. Ends Jan 15

    IT Jungle Store Top Book Picks

    Easy Steps to Internet Programming for AS/400, iSeries, and System i: List Price, $49.95
    The iSeries Express Web Implementer's Guide: List Price, $49.95
    The System i RPG & RPG IV Tutorial and Lab Exercises: List Price, $59.95
    The System i Pocket RPG & RPG IV Guide: List Price, $69.95
    The iSeries Pocket Database Guide: List Price, $59.00
    The iSeries Pocket SQL Guide: List Price, $59.00
    The iSeries Pocket Query Guide: List Price, $49.00
    The iSeries Pocket WebFacing Primer: List Price, $39.00
    Migrating to WebSphere Express for iSeries: List Price, $49.00
    Getting Started With WebSphere Development Studio Client for iSeries: List Price, $89.00
    Getting Started with WebSphere Express for iSeries: List Price, $49.00
    Can the AS/400 Survive IBM?: List Price, $49.00
    Chip Wars: List Price, $29.95

    SafeData Moves Data Center to SAS Type II Facility Power Systems i: The Windows Conundrum

    Leave a Reply Cancel reply

Volume 9, Number 39 -- December 16, 2009
THIS ISSUE SPONSORED BY:

SEQUEL Software
ProData Computer Services
Twin Data

Table of Contents

  • Encouraging Mere Mortals
  • Miscellaneous Comments from Readers
  • When i5/OS Backups Keep You Waiting

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • Liam Allan Shares What’s Coming Next With Code For IBM i
  • From Stable To Scalable: Visual LANSA 16 Powers IBM i Growth – Launching July 8
  • VS Code Will Be The Heart Of The Modern IBM i Platform
  • The AS/400: A 37-Year-Old Dog That Loves To Learn New Tricks
  • IBM i PTF Guide, Volume 27, Number 25
  • Meet The Next Gen Of IBMers Helping To Build IBM i
  • Looks Like IBM Is Building A Linux-Like PASE For IBM i After All
  • Will Independent IBM i Clouds Survive PowerVS?
  • Now, IBM Is Jacking Up Hardware Maintenance Prices
  • IBM i PTF Guide, Volume 27, Number 24

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle