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.
- Sign on the system using a user profile with sufficient authority to do the restore operation (such as QSECOFR).
- 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.
- If you use tape media, run the Display Tape (DSPTAP) command and specify DATA(*LABELS) to find the file labeled QFILEUPR.
- If you use DVD-RAM optical media, perform the following
steps:
- From a command line run this command:
DSPOPT VOL(*MOUNTED) DEV(OPT01) DATA(*FILATR) PATH('QFILEUPR')
. - 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.
- From a command line run this command:
- 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.
- 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).
- Display the Restore menu:
GO RESTORE
. - 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:
- Display the reply list sequence numbers to find what numbers are
available for use:
WRKRPYLE
- 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')
- Change your job to use the reply list:
CHGJOB INQMSGRPY(*SYSRPYL) BRKMSG(*NOTIFY)
- Display the reply list sequence numbers to find what numbers are
available for use:
- Select the option (21, 22, or 23) from the Restore
menu.
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
- 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.
- Type your choice for the Prompt for commands prompt.
Specify
N
(No) if you want to run an unattended restore. SpecifyY
(Yes) if you want to change the defaults on the RSTxxx commands. - 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.
- 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
- 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.
- Type 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. - Type your choice for the Print joblog prompt.
Specify
Y
(Yes) if you want to print the joblog when the menu operation ends. - After you type your choices, press the Enter key.
- 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. - 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. - 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.
- 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
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- This completes the restore operation.
- 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.
- 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.
orDSPJOBLOG * *PRINT
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.