Recovering from a media error during a SAVLIB operation

 

This information describes the basic recovery steps for a save operation.

If an irrecoverable media error occurs when you save multiple libraries, restart the procedure with the Start Library (STRLIB) parameter on the SAVLIB command.

The basic recovery steps for a save operation are:

  1. Check the job log to determine the library where the previous save operation failed. Find the last library saved, which is indicated by a successful completion message.

  2. Load the next media volume and ensure that you initialized the media volume. If you were using menu option 21, 22, or 23 when the save operation failed, skip to step 4.
  3. Type the SAVxxx command you were using with the same parameter values. Add the STRLIB and OMITLIB parameters and specify the last library that was saved successfully. For example, if you were running a SAVLIB *ALLUSR and CUSTLIB was the last library that was successfully saved, you would type:
    SAVLIB LIB(*ALLUSR) DEV(media-device-name) +
           STRLIB(CUSTLIB) OMITLIB(CUSTLIB)

    This starts the save operation on the library after the last successfully saved library. You have completed restarting the SAVLIB operation.

  4. If you were using a menu option, select that menu option again.
  5. On the Specify Command Defaults display, type Y for the Prompt for commands prompt. When the system displays prompts for commands that you have completed successfully, press F12 (cancel). When the system displays the prompt for the SAVLIB command, specify the STRLIB and OMITLIB parameters as shown in step 3.

Restoring the system using this set of media requires two RSTLIB commands to restore the libraries.

 

Parent topic:

Saving libraries with the SAVLIB command
Related reference
Handling tape media errors