Recovering from an error while restoring libraries

Here are the basic library recovery steps for a restore operation when errors occur.

Some errors that occur during a restore operation stop the operation. Here are two examples of this type of error:

  • An unrecoverable media error.
  • Exceeding the maximum storage specified in the user profile of the user running the restore operation or in a user profile that owns objects that are being restored.

If an error stops the restore operation, you can correct the error condition and then start the restore operation where it ended. For example, if the maximum storage is exceeded, you can increase the MAXSTG parameter in the user profile.

You can use the STRLIB parameter on the RSTLIB command to restart the restore operation. The STRLIB parameter is valid only when *NONSYS, *ALLUSR, or *IBM is specified for the restore operation,

The basic recovery steps for a restore operation are as follows:

  1. Check the job log to determine the library where the previous RSTLIB SAVLIB(*NONSYS, *IBM, or *ALLUSR) failed.
    Find the last library that is restored which is indicated by a successful restore completion message.
  2. Load the media volume of the SAVLIB LIB(*NONSYS, *ALLUSR, or *IBM) media.
  3. Type the following and press the Enter key:
    
    RSTLIB SAVLIB(*NONSYS, *IBM or *ALLUSR)
           DEV(media-device-name) ENDOPT(*LEAVE)
           STRLIB(library-name)
           OMITLIB(library-name)
    • If the restore operation stopped because of a media error that you cannot correct, the library-name for the STRLIB and the OMITLIB parameters should be the library where the restore operation failed. This causes the operation to start with the library after that library.
    • If the failure was not related to a media error, the library-name for the STRLIB and the OMITLIB parameters should be the name of the last library that was successfully restored. This causes the operation to start with the library that caused the error.
  4. You will be asked to load the volume that contains the starting library.
  5. After the restore operation is complete, restore the library that failed using the media from a previous save operation.
    Note: Consider eliminating the media volume with the media error from the next save.