Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Start Recovery using BRM (STRRCYBRM) command recovers items ranging from a single library to the entire system. Any library or group of libraries that were saved by a BRMS save command can be restored by this command. Recovery is based on entries in the BRMS media inventory contents information.
Recovery using the STRRCYBRM uses the most recent times and dates of entries in the BRMS media content information. This reflects the order in which libraries and objects were saved. For instance, a recovery request for a library will restore the most recent full backup of a library, the latest incremental backup of that library, and all object level saves that have dates after the last full save.
BRMS always uses non-duplicated media information when selecting items for recovery regardless of whether the location of the media if a value of *ALL is specified for the Volume location (LOC) parameter. If you want to select recovery items from duplicated media information, then specify *YES on the Use duplicate media (USEDUPMED) parameter.
The design of the STRRCYBRM command concerning libraries is to report all the resources needed to recover a library in its entirety. This means that during the search of media information a full backup is required as a starting point in recovering the library. If a full backup is not found meeting the search criteria, any subsequent saves of objects for that library are ignored. This could happen if control group A saves libraries full and control group B saves libraries incremental and the STRRCYBRM OPTION(*CTLGRP) CTLGRP((B) is issued. This could also happen if the time period specified does not have a full backup of the library.
Note: Prior to processing a restore, you should use the report option (*REPORT) to produce a report of the steps required to restore a portion of the system or the entire system. The report that is produced is the Recovery Analysis report. The report, if printed, is written to printer file QP1ARCY.
Note: When you are restoring multiple items, such as a *SYSTEM , *SYSBAS or *SAVSYS, it is advisable to first run a Recovery Analysis Report to assist you in evaluating the steps required to restore the requested items. For instance, BRMS cannot install the Licensed Internal Code and restore the operating system for you automatically. The report assists you in locating the required volumes and identifies the manual steps needed to restore the Licensed Internal Code, the operating system, the BRMS product and required system libraries.
After you have performed the manual steps, BRMS is able to provide automated assistance in restoring the remainder of the system. The steps required to restore the system are provided in the Recovery Analysis report.
To use this command, you must have the Backup Recovery and Media Services for iSeries, 5722-BR1, licensed program installed.
Restrictions:
Restore Object (RST) Restore Document Library Object (RSTDLO) Restore Library (RSTLIB) Restore Object (RSTOBJ) Restore Configuration (RSTCFG) Restore User Profiles (RSTUSRPRF) Restore System Information (RSTSYSINF)
and must have the object authorities required by those commands as outlined in Appendix D of the iSeries Security Reference.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
OPTION | Option | *SYSTEM, *ALLDLO, *ALLUSR, *APYJRNCHG, *ASP, *ASPDEV, *CTLGRP, *IBM, *LIB, *LNKLIST, *RCYEXITPGM, *RESUME, *SAVSYS, *SYSBAS | Optional, Positional 1 |
ACTION | Action | *REPORT, *RESTORE | Optional |
PERIOD | Time period for recovery | Element list | Optional |
Element 1: Start time and date | Element list | ||
Element 1: Beginning time | Time, *AVAIL | ||
Element 2: Beginning date | Character value, *BEGIN, *CURRENT | ||
Element 2: End time and date | Element list | ||
Element 1: Ending time | Time, *AVAIL | ||
Element 2: Ending date | Character value, *END, *CURRENT | ||
USESAVF | Use save files | *YES, *NO | Optional |
USEADSM | Use TSM | *YES, *NO | Optional |
ASP | Auxiliary storage pool | 1-32, *SYSTEM | Optional |
LIB | Library | Generic name, name | Optional |
LIST | List | Name, *ALL | Optional |
JRN | Journal | Single values: *JRNLST Other values (up to 25 repetitions): Qualified object name |
Optional |
Qualifier 1: Journal | Name | ||
Qualifier 2: Library | Name | ||
ASPDEV | ASP device | Values (up to 25 repetitions): Element list | Optional |
Element 1: From system | Name, *LCL | ||
Element 2: Auxiliary storage pool | Name, *ALL | ||
Element 3: Objects | *ALL, *LIB, *LNK | ||
CTLGRP | Control group selection | Single values: *SELECT Other values (up to 300 repetitions): Element list |
Optional |
Element 1: Control group | Name, *NONE, *BKUGRP, *SYSGRP, *SYSTEM | ||
Element 2: Sequence number | 1-99, 1 | ||
OMITLIB | Libraries to omit | Values (up to 25 repetitions): Generic name, name, *DELETE, *NONE | Optional |
ALWDUP | Allow duplicate entries | *NO, *YES | Optional |
LOC | Volume location | Single values: *ALL Other values (up to 10 repetitions): Name, *HOME |
Optional |
FROMSYS | From system | Character value, *LCL | Optional |
PRTSYSINF | Print system information | *NO, *YES | Optional |
USEDUPMED | Use duplicate media | *NO, *YES | Optional |
USRRCYINF | User recovery information | *NONE, *ADD | Optional |
Top |
Specifies what you want to restore from the BRMS media content inventory.
Refer to the Special Values table for the Save Library (SAVLIB) Command in the Saving Libraries section of the iSeries Backup and Recovery book for a list of libraries which can be restored using this special value.
If you want to apply journaled changes to a point in time, specify the point in time on the End time and date prompt of the Time period for recovery (PERIOD) parameter.
Note: When you select *NONE in the CTLGRP parameter you are indicating that you want to restore saved items from the media content information file not associated with a control group name.
Additionally you have the option of selecting up to 300 control groups to restore when you use the *SELECT option in the CTLGRP parameter. You can sequence the order in which the selected control groups are restored by using the Sequence number element of the CTLGRP parameter.
Refer to the Special Values table for the Save Library (SAVLIB) Command in the Saving Libraries section of the iSeries Backup and Recovery book for a list of libraries which can be restored using this special value.
This step is required to successfully rebuild objects that specified recovery exit processing when the objects were saved.
During a complete system recovery, steps are provided to restore all system and user data back to the system. Some of these objects were saved requesting that a recovery exit program be called via the Recovery exit program (RCYEXITPGM) parameter. The objects are all restored by BRMS in the appropriate recovery step, and each object that requires a call to a recovery exit program is put into a list. After all data for the recovery is restored, the exit program is called for each package through processing of this option.
A package is a related group of media files that were grouped together during the save operation by specifying a value on the Package identifier (PKGID) parameter.
In a recovery of a single object or package that had requested a recovery exit program be called on recovery, this step will be done in the same way, the objects will be restored and the exit program will be called with the list of objects.
Top |
You can either specify whether you want to create a Recovery Analysis Report or perform an actual recovery.
Note: If you specify *RESTORE and have specified *SYSTEM for the Option (OPTION) parameter, you will be returned to the Perform Recovery display.
Top |
Specifies the period of time for which the recovery items are selected for recovery. Selected items are either included in the recovery report or recovered. This is dependent on the value specified in the Action (ACTION) parameter.
Element 1: Start Time and date
Element 1: Beginning time
One of the following is used to specify the beginning creation time at which or after recovery items are included. Any items created before the specified time and date are not included in the selected recovery items.
The time is specified in 24-hour format and can be specified with or without a time separator:
Element 2: Beginning date
One of the following is used to specify the beginning date on or after which the recovery items must have been saved. Any entries saved prior to the specified date are not included in the recovery.
Element 2: End time and date
Element 1: Ending time
One of the following is used to specify the ending time before which recovery items are included. Any items created after the specified time and date are not included in the recovery items selected for recovery.
Element 2: Ending date
One of the following is used to specify the ending date on which or before which the recovery items must have been saved. Any recovery items created after the specified date are not included in the recovery operation.
Top |
Specifies whether you want to use save files for recovery.
Top |
Specifies whether data stored on the TSM (ADSM) server is included in the recovery. When the recovery includes data saved to TSM servers, additional steps are added to the recovery report to assist in the recovery of this data. During a full system recovery, the TSM server data is recovered after the system (1) and basic user (2-32) auxiliary storage pool data is recovered and after the initial IPL. This assures the necessary operating system resources are available for establishing the connection to the TSM server. BRMS also makes recovery decisions based on where the recovery data resides. For example, when the current full backup is stored on a TSM server, but incremental backups are stored on tape, the BRMS report or plan will indicate that the full backup from the TSM server must occur first, followed by the recovery of the incremental saves from tape.
Top |
Specifies the system (1) or basic user (2-32) auxiliary storage pool that you want to restore. The ASP parameter is a required field when the Option (OPTION) parameter is *ASP. If you are restoring the system (1) auxiliary storage pool, only user data is restored, not the operating system.
Top |
Specifies the name of the library that you want to restore. Library is a required field when the Option field contains *LIB.
Top |
Specifies the name of the list for the recovery operation.
When *LNKLIST is specified for the Option (OPTION) parameter the List (LIST) parameter specifies the name of the integrated file system list that you want to restore. You can restore a single list or all lists.
Top |
Specifies the qualified names of the journals to be included in the apply journal changes operation. Up to 25 qualified names can be specified.
Restrictions:
Single values
Qualifier 1: Journal
Qualifier 2: Library
Top |
Specifies auxiliary storage pool devices which are to be included in the recovery of the current system. Up to 25 iterations can be specified.
Restrictions:
Note: To include objects in auxiliary storage pool devices saved on other systems in the recovery, the current system must be receiving media content information from the systems which saved the auxiliary storage pool device information.
Note: To recover objects in auxiliary storage pool devices saved on other systems, the current system must have devices which support the density of the media volumes containing the saved items.
Element 1: From system
Specifies the system where the auxiliary storage pool device was saved.
Element 2: Auxiliary storage pool
Specifies the name of the auxiliary storage pool device.
Element 3: Objects
Specifies the type of objects.
Top |
Specifies the name of the control group that you want to restore. The CTLGRP) parameter is a required field when the Option (OPTION) parameter contains *CTLGRP. You can specify a single control group or you can specify multiple control groups and sequence the order in which they are restored.
When you want to select a control group or groups from a list of control groups, specify *SELECT in the CTLGRP parameter and press Enter. You are taken to the Select and Sequence Control Groups display where all control groups that are in the media content information are displayed. You can select and sequence each control group that you want to restore by putting a sequence number by each control group to establish a relative restore order. Sequence numbers can range from 1 to 99. Up to 300 control groups can be selected and can share the same sequence number.
If the full and incremental saves are done in different control groups, it would be necessary to specify both control groups in order for the incremental entries to be selected. For example you could specify STRRCYBRM OPTION(*CTLGRP) CTLGRP((A) (B)).
A sequence number can be used with the control group names to ensure the sequence of the entries on the report. Do not sequence the incremental control group ahead of the full control group. If this is done, the full save will be restored over the incremental. It is a good idea to use different sequence numbers for control groups that are running at the same time. Otherwise there may be alot of loading and unloading of different tapes. For instance, control group C runs at the same time as A, and D the same time as B. In this case STRRCYBRM OPTION(*CTLGRP) CTLGRP((A 10) (C 10) (B 20) (D 20) may be an appropriate use of sequence numbers.
Single values
Other values (up to 300 repetitions)
Element 1: Control group
Element 2: Sequence number
Note: The sequence number is ignored if *NONE is specified in the CTLGRP parameter.
Top |
Specifies the libraries you want to omit from recovery. You can choose to includes all libraries, or exclude deleted libraries and/or specifies libraries, and/or generic libraries. Up to 25 iterations can be specified.
Single values:
Other values:
Top |
Specifies whether to allow duplicate entries in the list of control groups that you can select to restore.
Top |
Specifies the locations that you want to include in the recovery.
Single values
Other values (up to 10 repetitions)
Top |
Specifies the location and network identification of the system from which you want to restore media information to the local system.
Note: Use the Display Network Attributes (DSPNETA) command to view the system network attributes.
Note: The BRMS Network feature (Option 1) is required to use this value if a value other than *LCL is specified.
Top |
Specifies whether you want to include system information in recovery reports that you print when processing this command. If you specify *YES, the Print System Information (PRTSYSINF) command is processed.
Top |
Specifies whether you want to use the original save media or duplicate save media when selecting history items for recovery. You may want to use this option if you move your original media offsite and keep duplicates of the original media onsite. The default value is *NO.
Top |
Specifies whether you want user recovery information added to the BRMS Recovery Report (QP1ARCY) created by this command.
Usage notes:
Note: This value can only be specified if *REPORT is specified for the Action (ACTION) parameter.
Top |
Example 1: Print the Recovering Your Entire System Report
STRRCYBRM OPTION(*SYSTEM)
This command produces a recovery report to assist you in restoring the entire system which includes the system (1) and basic user (2-32) auxiliary storage pools and any auxiliary storage pool devices.
Example 2: Omit Libraries from the Recovering Your Entire System Report
STRRCYBRM OPTION(*SYSTEM) OMITLIB(*DELETE QSC*)
This command produces a report to assist you in recovering the entire system which includes the system (1) and basic user (2-32) auxiliary storage pools and any auxiliary storage pool devices. However, deleted libraries and libraries beginning with the generic name QSC* are omitted from the report.
Example 3: Customize STEP 002 of the Recovering Your Entire System Report
Enter the following command to work with the user recovery information file.
WRKMBRPDM FILE(QUSRBRM/QO1AUSRRCY) MBR(STEP002)
Edit the member using option 2=Edit on member STEP002. Enter the detailed user recovery information you want added to the report. When finished, exit the Edit display and indicate on the Exit display to save the edit session changes.
Run the following command to print the report and validate the user recovery information in STEP 002. Use the same command to generate all future reports using the user recovery information.
STRRCYBRM OPTION(*SYSTEM) USRRCYINF(*ADD)
The above steps show how to customized STEP 002 in the Recovering Your Entire System Report by adding your own user recovery information. You might do this to provide your system operators with special detailed guidance unique to your recovery. You can do this with any or all steps in the report.
Example 4: Print the Recovering Your Entire System Report for the Base System
STRRCYBRM OPTION(*SYSBAS)
This command produces a report to assist you in restoring the base system which includes the system (1) and basic user (2-32) auxiliary storage pools, excluding any auxiliary storage pool devices.
Example 5: Print the Recovering Your Entire System Report for Auxiliary Storage Pool 2
STRRCYBRM OPTION(*ASP) ASP(2)
This command produces a report to assist you in restoring saved items to basic user auxiliary storage pool 2.
Example 6: Restore Auxiliary Storage Pool Device MYASP
STRRCYBRM OPTION(*ASP) ACTION(*RESTORE) ASP(MYASP)
This command present the Select Recovery Items display containing a list of storing objects saved items from auxiliary storage pool device MYASP.
Example 7: Entire System Recovery Report with a Switched Auxiliary Storage Pool Device
STRRCYBRM ACTION(*REPORT) OPTION(*SYSTEM) ASPDEV(SYSTEM_B PAYROLL)
This command produces a report to assist you in restoring the current system including auxiliary storage pool device PAYROLL saved on SYSTEM_B. SYSTEM_B is a system in the BRMS network and is networking media information about its saves to the current system.
Example 8: Applying Journal Changes
STRRCYBRM OPTION(*APYJRNCHG) JRN(*JRNLST)
This command prompts the BRMS Work with Journals using BRMS display. The display will be populated with the names of journals which have been saved using BRMS. Use Option 1=Apply changes to show the associated journals receivers on the Apply Journal Changes using BRMS display, then use F16=Apply changes to apply journal changes.
Top |
*ESCAPE Messages
Top |