Using restore menu options 21, 22, and 23

To restore information using option 21, 22, or 23 from the Restore menu, follow these steps.

The basic steps are the same for each menu option. Which option or options you use depends on which save menu option was used and what other procedures, if any, you use to save information.

Before you begin

  • Clean the read and write heads of the tape unit if you are restoring from a tape drive.
  1. Sign on the system using a user profile with sufficient authority to do the restore operation (such as QSECOFR).
  2. Ensure that you load the correct volume of your last set of save media and make the device ready. The save media should contain the file labeled QFILEUPR.
    1. If you use tape media, run the Display Tape (DSPTAP) command and specify DATA(*LABELS) to find the file labeled QFILEUPR.
    2. If you use DVD-RAM optical media, perform the following steps:
      1. From a command line run this command: DSPOPT VOL(*MOUNTED) DEV(OPT01) DATA(*FILATR) PATH('QFILEUPR').
      2. If the file is on the media, page down on your display to verify that the file is on the first volume. If the display says Continued from previous volume...NO, then the file QFILEUPR is on the first volume of your save media set.
  3. Ensure that any device configuration objects not used in the restore operation are varied off.
    You can use the Work with Configuration Status (WRKCFGSTS) command to display the status of devices.
  4. Ensure that the devices that you are using for the restore operation (workstations, devices, and device controllers) are varied on.
    These configuration objects are excluded from the restore operation (message CPF379C in the job log).
  5. Display the Restore menu: GO RESTORE.
  6. If you want to do an attended restore, skip to step 7.
    In most cases, you should do an attended restore operation to monitor for messages and correct any problems that occur. This helps your system return to operation as quickly as possible. If you want to do an unattended restore, do the following steps. This prevents your restore operation from stopping because of unanswered messages:
    1. Display the reply list sequence numbers to find what numbers are available for use:
      
      WRKRPYLE
    2. If MSGID(CPA3709) is not already in your reply list, add it. For xxxx, substitute an unused sequence number from 1 through 9999:
      
      ADDRPYLE SEQNBR(xxxx) MSGID(CPA3709) RPY('G')
    3. Change your job to use the reply list:
      
      CHGJOB INQMSGRPY(*SYSRPYL) BRKMSG(*NOTIFY)
  7. Select the option (21, 22, or 23) from the Restore menu.
    Start of change
                                Specify Command Defaults                     
                                                                             
     Type choices, press Enter.                                              
                                                                             
       Devices  . . . . . . . . . . .   TAP01        Names                   
                                        __________                           
                                        __________                           
                                        __________                           
                                                                             
       Prompt for commands  . . . . .   Y            Y=Yes, N=No             
                                                                             
       Message queue delivery . . . .   *BREAK       *BREAK, *NOTIFY         
                                                                             
       Restore to different system      N            Y=Yes, N=No             
                                                                             
       Spooled file data  . . . . . .   *NEW         *NEW, *NONE             
                                                                             
       End TCP/IP wait time . . . . .   300          *NONE, 1-9999 seconds   
                                                                             
       Print joblog . . . . . . . . .   Y            Y=Yes, N=No             
    
    End of change
  8. Type your choices for the Devices prompt.
    You can specify up to four device names. If you specify more than one device, the system automatically switches to the next device after it finishes reading the current save media.
  9. Type your choice for the Prompt for commands prompt.
    Specify N (No) if you want to run an unattended restore. Specify Y (Yes) if you want to change the defaults on the RSTxxx commands.
  10. Type your choice for the Message Queue Delivery prompt.
    The Message Queue Delivery prompt only applies if messages are sent to the QSYSOPR message queue. Specify *NOTIFY if you want to do an unattended restore. This prevents communications messages from stopping the restore procedure. For example, messages that request a new volume to be loaded interrupt the restore operation because they are associated with the job, they have nothing to do with setting the delivery mode of the message queue. You cannot continue until you reply to these messages. Specify *BREAK, if you want to be interrupted for severity 99 messages that are sent to xxxx that require a reply.

    Specify *BREAK, if you want to be interrupted for severity 99 messages that require a reply.

  11. Type your choice for the Restore to different system prompt. If you specify Y (Yes), the following values will be specified.
    The system requires these values in order to perform a system recovery to a different system or to a different logical partition.
    • SRM(*NONE) will be specified on the Restore Configuration (RSTCFG) command
    • ALWOBJDIF(*ALL) or ALWOBJDIF(*COMPATIBLE) will be specified on the restore commands
    • MBROPT(*ALL) will be specified on the Restore Library (RSTLIB) command
  12. Type your choice in the Spooled file data prompt.
    Specify *NEW to restore spooled file data that was saved and does not already exist on the system. Specify *NONE if you do not want to restore spooled file data.
  13. Start of changeType your choice for the End TCP/IP wait time prompt. Specify the number of seconds to delay the job to allow TCP/IP processing to end before ending all subsystems. Specify *NONE to end all subsystems without ending TCP/IP processing first.End of change
  14. Start of changeType your choice for the Print joblog prompt. Specify Y (Yes) if you want to print the joblog when the menu operation ends.End of change
  15. After you type your choices, press the Enter key.
  16. If you responded Y to the Prompt for commands prompt, you are shown the End Subsystem display after TCP has ended.
    Type any changes and press the Enter key. While the system is ending subsystems, you see and respond to these messages:
    • CPF0994  ENDSBS(*ALL) command being processed
      . Press the Enter key.
    • CPF0968  System ended to restricted condition
      . Press the Enter key.

    If you responded N to the Prompt for commands prompt, skip to step 18.

  17. When the system is ready to perform each major step in the restore process, you are shown the prompt display for that step.
    The time between displays might be quite long.

    For option 21, you are shown these displays:

    • ENDSBS SBS(*ALL) OPTION(*IMMED)
    • RSTUSRPRF USRPRF(*ALL)
    • RSTCFG OBJ(*ALL)
    • RSTLIB SAVLIB(*NONSYS)
    • RSTDLO DLO(*ALL) SAVFLR(*ANY)
    • RST DEV('/QSYS.LIB/media-device-name.DEVD') OBJ(('/*') ('/QSYS.LIB' *OMIT) ('/QDLS' *OMIT))
    • RSTAUT
    • STRSBS SBSD(controlling subsystem)

    For option 22 (System data only) you are shown these displays:

    • ENDSBS SBS(*ALL) OPTION(*IMMED)
    • RSTUSRPRF USRPRF(*ALL)
    • RSTCFG
    • RSTLIB SAVLIB(*IBM)
    • RST DEV('/QSYS.LIB/media-device-name.DEVD') OBJ(('/QIBM/ProdData') ('/QOpenSys/QIBM/ProdData'))
    • STRSBS SBSD(controlling-subsystem)

    For option 23 (All user data) you are shown these displays:

    • ENDSBS SBS(*ALL) OPTION(*IMMED)
    • RSTUSRPRF USRPRF(*ALL)
    • RSTCFG
    • RSTLIB SAVLIB(*ALLUSR)
    • RSTDLO DLO(*ALL) SAVFLR(*ANY)
    • RST DEV('/QSYS.LIB/media-device-name.DEVD') OBJ(('/*') ('/QSYS.LIB' *OMIT) ('QDLS' *OMIT) ('/QIBM/ProdData' *OMIT) ('/QOpenSys/QIBM/ProdData' *OMIT))
    • RSTAUT
    • STRSBS SBSD(controlling-subsystem)

    Type your changes, if any, when the display is shown and press the Enter key.

    Note: The Restore Authority (RSTAUT) command will run immediately after the Restore Object (RST) commands when you use option 21 or option 23. If you use option 22 only, you must run the RSTAUT command. If you have additional restore operations to run, you might need to restore security data and restore authority again after those restore operations.
  18. When the system sends a message asking you to load the next volume, load the next media volume and respond to the message.

    If a media error occurs...

    If an error occurs during the restore operation, see Recovery from an unsuccessful restore operation.

    If an unrecoverable error occurs when running the RSTDLO DLO(*ALL) SAVFLR(*ANY) command, see Recovering from an error while restoring document library objects.

  19. If you used the distribution media to restore the operating system, some information was not restored.
    If you are restoring to a different system or different logical partitions, the network attributes might have been reset to the IBM-supplied defaults. You must create or change this information again. You should have lists of this information that were created at the time you performed your save operation.

    The following might need to be created or changed:

    • Configuration lists
    • Network attributes
    • Edit descriptions
    • Reply list entries
    • IBM-supplied subsystem descriptions
    1. For the configuration lists, perform the following task:

      Use the Work With Configuration Lists (WRKCFGL CFGL(*ALL)) command to create the configuration lists to match the information in your list.

    2. For network attributes, perform the following task:

      Use the Change Network Attributes (CHGNETA) command to change the network attributes to match the information in your list.

    3. For edit descriptions, perform the following task:

      Use the Work with Edit Descriptions (WRKEDTD EDTD(*ALL)) command to create edit descriptions to match the information in your list.

    4. For reply list entries, perform the following task:

      Use the Add Reply List Entry (ADDRPYLE) command to add reply list entries to match the information in your list.

    5. For IBM-supplied subsystem descriptions, perform the following task:

      Use the Work with Subsystem Descriptions (WRKSBSD SBSD(*ALL)) command to change the IBM-supplied subsystem descriptions to match the information in your list.

  20. If you need to restore independent ASPs, see Recovering an independent auxiliary storage pool. Skip this step if you use Checklist 21: Recovering your entire system after a complete system loss including independent auxiliary storage pools.
  21. This completes the restore operation.
  22. If you are unsure what the QSECOFR password is, change it now.
    To see if the password has expired, type the following command:
    
    DSPUSRPRF QSECOFR

    The passwords from your save media are now the current passwords. If the password expiration is active for the QSECOFR user profile, you will see the expiration date on the Date password expired field. If the date is the current system date or prior, change the password for the QSECOFR user profile.

  23. Check the job log to ensure all objects were restored.

    The job log contains information about the restore operation. To verify that all objects were restored, you should spool the job log for printing, along with the job's remaining spooled output, if any.

    DSPJOBLOG * *PRINT
    or
    SIGNOFF *LIST

    Message CPC3703 is sent to the job log for each library that was successfully restored. Message CPF3773 is sent to tell you how many objects were restored. It also tells you how many objects were not restored. Objects are not restored for various reasons. Check for any error messages, correct the errors, and then restore those objects from the media.