Posted on 2004-11-22
Last Modified: 2011-10-03
I am trying to restore a library that takes about 2 hours to save and 8 hours to rstore.  It is saved to the 3580 tape drive as a SAVLIB LIB(*ALLUSR) and am using RSTOBJ OBJ(*ALL) SAVLIB(IPTSFIL) DEV(TAPULT01) ENDOPT(*LEAVE) MBROPT(*ALL) ALWOBJDIF(*ALL) RSTLIB(IPTSFIL2) OUTPUT(*PRINT) command

As i want to restore all objects in this library is there a quicker way to do it?  The save includes ACCPTH(*YES) so shouldnt take that much longer to restore.

I also have a file with 14,000 empty members and 8 logicals over that file which takes quite some time to restore even with ACCPTH(*YES).

Any help very gratefully received
Question by:RVIT
    LVL 14

    Expert Comment

    Have you tried clearing library IPTSFIL2 before trying the restore.
    That way the system is not doing as much checking during the restore.
    I am assuming that IPTSFIL2 does not contain anything other that the objects to be restored.

    LVL 1

    Expert Comment

    I don't know your disk status but you could put your save file on disk and put it on tape after, that way you could restore from your disk instead of tape, which is a lot faster. And if you get any problem you still have it on tape !!

    Author Comment


    I am clearing the library first to try and improve the restore times but its still taking forever.  Saving to SAVF then backing up the SAVF's is worth considering though!

    LVL 6

    Accepted Solution


    AFAIK, RSTLIB is faster than RSTOBJ *ALL

    The fastest way should be:
    then after clearing the library:

    Allow object difference *ALL is to skip any checkin in the system prior to restoration.
    If the tape contain more than one sequence, then it is faster to specify the tape sequence number.
    Please try.

    Author Comment

    Thank you, will try it today.
    LVL 26

    Expert Comment


    Since you're restoring to a different library, why save and restore? Why not just CPYLIB? But I suspect you have a reason for doing it the way you are.

    First, get rid of the excess members. Each database member is a separate object and holds individual attributes such as authorities. Each member is created separately and object creation can be relatively expensive, especially when there's no real data space being restored.

    Unfortunately, because you're restoring from a SAVLIB *ALLUSR, it sounds like you don't have much choice in the procedure. But I'd probably not do a *ALL object restore of *ALL object types. I'd probably separate them out so I could specifically restore only the physical files and I'd handle the logical files later.

    But, you have saved access paths, so you apparently need to avoid rebuilding access paths. Which again pretty much means you're stuck with the process you've got.

    Which brings us back to 14000 members.

    First cleanup what's being saved. That's where you'll eventually save time for saves _and_ restores. Sounds like a BPCS installation with a bunch of obsolete workstation members. Get rid of 'em. (I might have an old procedure for that in my archives.)

    Otherwise, I suspect you're stuck.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
    This paper addresses the security of Sennheiser DECT Contact Center and Office (CC&O) headsets. It describes the DECT security chain comprised of “Pairing”, “Per Call Authentication” and “Encryption”, which are all part of the standard DECT protocol.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now