• 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
    Raz-Lee Security

    Start your Road to Zero Trust!

    Firewall Network security, controlling Exit Points, Open DB’s and SSH. Rule Wizards and graphical BI.

    Request Demo

    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

  • Public Preview For Watson Code Assistant for i Available Soon
  • COMMON Youth Movement Continues at POWERUp 2025
  • IBM Preserves Memory Investments Across Power10 And Power11
  • Eradani Uses AI For New EDI And API Service
  • Picking Apart IBM’s $150 Billion In US Manufacturing And R&D
  • FAX/400 And CICS For i Are Dead. What Will IBM Kill Next?
  • Fresche Overhauls X-Analysis With Web UI, AI Smarts
  • Is It Time To Add The Rust Programming Language To IBM i?
  • Is IBM Going To Raise Prices On Power10 Expert Care?
  • IBM i PTF Guide, Volume 27, Number 20

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