Essentials of Backup and Recovery

Essentials of Backup and Recovery
DISASTER STRIKES
Are you ready?
1
Your Goal
Complete OS/400 restoration
I Complete application restoration
I
Bring back the most current information
I Protect your job
I
2
Your AS/400 just lost all of its data!
Are you worried!
3
Save Strategy
I
Monthly a full system save Option 21 is performed.
SAVSYS, SAVLIB *NONSYS, SAVDLO, SAV.
I
Daily SAVLIB of all production libraries using Save While - Active
I
IFS save is performed daily
I
Configuration and Security information is saved daily.
I
Tapes sent offsite daily.
4
Offsite Storage Policy - Daily
Backup Software
Off Site Storage
5
Steps for Recovery
Evaluate the situation
I Replace hardware
I Retrieve Tapes from off-site storage
I Restore software
I Review users' access
I
6
Recovery Terminology
I
Licensed Internal Code - The layer of the
AS/400 architecture just above the hardware.
I
Load Source Unit - The first disk unit in the
system ASP(1). It contains the Licensed
Internal Code and disk configuration.
I
ASP - Contains OS/400, IBM libraries, user
data.
7
Restoring System Objects
Licensed Internal Code
SAVSYS
Operations System Objects in library QSYS
QGPL & QUSRSYS
User Profiles, Authorization Lists (in library QSYS )
RSTUSRPRF
Configuration Objects in library QSYS
RSTCFG
8
Install Licensed Internal Code
I
Contained on the latest SAVSYS media
I
Load this media on your alternate IPL media
drive
• Make sure you have Licensed Internal Code CDROM
• Review the procedures before attempting your
restore
9
IPL
I
Perform IPL from Alternate Device
10
IPL from D Common Errors
SRC CODE
A1xx 1933
A12x 1933
B1xx 1803
B1xx 1806
B1xx 1938
B1xx 1934
2507 0001
2642 0001
2643 0001
Any other SRC
Description
The tape unit for the alternate IPL is
not ready
The tape unit for the alternate IPL was
not found or was not ready.
The wrong tape is loaded.
A tape is not loaded in the tape unit for
alternate IPL.
The system has encountered a
problem loading the LIC.
11
Install Licensed Internal Code
After you have performed the IPL from
alternate device
Install Licensed Internal Code
Select one of the following:
1. Install Licensed Internal Code
2. Work with Dedicated Service Tools (DST)
3. Define alternate installation device
12
Define Alternate IPL Device
System: WTS
Type Option, press Enter.
1=Select
Option
__
__
__
__
__
__
__
__
__
__
__
__
Bus Number
2
3
4
5
6
7
8
9
A
B
C
D
Selected
*
13
Select Alternate IPL Device
Select Alternate Installation Device
System: WTS
Type option, press Enter.
1=Select
5=Details
Option
_
_
_
Resource
Name
TAP01
TAP03
TAP02
Type
6380
3590
6380
Model
001
011
001
Serial
Number
Selected
00-1017187
32-234333
*
00-2017187
14
Licensed Internal Code
Restore
Install Licensed Internal Code
( LIC )
Disk selected to write the Licensed Internal Code ( LIC )
Serial Number
xx – xxxxxx
Select one
1. Restore
2. Install
3. Install
4. Install
5.
Install
Type
xxxx
Model
xxxx
of the following:
Licensed Internal
Licensed Internal
Licensed Internal
Licensed Internal
Licensed Internal
I/O Bus
x
Code
Code
Code
Code
Code
&
&
&
&
Controller
x
Device
x
Initialize system
Recover configuration
Restore Disk Unit
upgrade load source
15
If You Take Option 2, 3, 4 or 5
Install LIC and Initialize System - Confirmation
Warning:
All data on this system will be destroyed and Licensed
Internal Code will be written to the selected disk if you
choose to continue the initialize and install
Return to the install selection screen and choose one of
the other options if you want to perform some type of
recovery after the install of the Licensed Internal Code
is complete.
Press F10 to continue the install
Press F12 (Cancel) to return to the previous screen.
Press F3(Exit)to return to the install selection screen.
16
Licensed Internal Code
Restore
Initialize the Disk
-
Status
The load source disk is being initialized.
Estimated time to initialize in
minutes:
12
Elapsed time in minutes …………………………………………:
0.00
Percent Complete …………………………………………..……….…:
0.00
The screen will auto update.
17
Licensed Internal Code
Restore
Licensed Internal Code Installation Status
Installation of the Licensed Internal Code in progress.
Percent complete
+----------------------+
XXXXXXXXXXXXXX
+----------------------+
0
20
40
60
100
Elapsed time in minutes
. .
. . . :
x.x
18
Disk Report Status
Disk Configuration Error Report
OPT
Error
____
New disk configuration
Press F10 To accept the following problems
and continue
19
ASP Disk Management
IPL or Install the System
Select one of the Following:
1. Perform an IPL
2. Install the operating system
3. Use Dedicated Service Tools ( DST )
4. Perform automatic installation
5. Save Licensed Internal Code
Select option 3
to get into DST.
20
ASP Disk Management
Dedicated Service Tools ( DST ) Sign On
DST user …………. QSECOFR
DST password……. _________
Sign on all “ UPPER CASE” as QSECOFR DST user.
21
ASP Disk Management
I
The DST tools profile QSECOFR password is
shipped expired and must be changed before
first use.
• At the Change Service tools User password screen
enter in a new Password twice (once on each input
field).
• Document your new QSECOFR DST password.
22
ASP Disk Management
I
At the Use Dedicated Service Tools Screen:
I
Select option 4 ( Work with disk units )
I
Select option 1 ( Work with disk unit Configuration )
I
Select option 3 ( Work with ASP Configuration )
I
Select option 3
( Add disk units to ASPs )
23
ASP Disk Management
Specify ASPs to Add Units to
ASP
Serial Number Type
Model Capacity
1
44-12345
6717
074
6442
1
12-34567
6717
074
6442
1
12-89012
6717
074
6442
1
12-34555
6717
070
8589
2
12-45505
6718
070
17548
2
12-55930
6718
070
17548
I
Press enter to accept
24
ASP Disk Management
Confirm Add Units
Press Enter to Confirm your Choice for Add units
ASP
1
Unit
Serial Number Type
Model
Resource
1
44-12345
6717
074
DD001
1
12-34567
6717
074
DD002
1
12-89012
6717
074
DD003
1
12-34555
6717
070
DD004
ASP
2
Unit
Serial Number Type
Model Resource
2
12-45505
6718
070
DD005
2
12-55930
6718
070
DD006
25
Restore OS/400
I
Read the panels as they display
• Make sure you have QSECOFR and DST passwords
that go with the SAVSYS tape
• You will want to install the operating system
• You will want to install the system values, system
reply lists, and edit descriptions
I
Finally, a message will state that OS/400 is
installed
26
Operating System Restore
IPL or Install the System
Select one of the Following:
1. Perform an IPL
2. Install the operating system
3. Use Dedicated Service Tools ( DST )
4. Perform automatic installation
5. Save Licensed Internal Code
Select option 2 Install the operating system and press Enter.
27
Operating System Restore
Select a language Group
Type Choice, press Enter.
Language feature …………..
2924
Press Enter to Confirm Language Feature
28
Install the Operating System
Install the Operating System
Type options, press Enter.
Install
1=Take defaults (No
options - - - - _2_
other options are
displayed)
2=Change install
options
Date:
Year - - - __
00-99
Month - - __
01-12
Day - - - - - __
01-31
Time:
Hour - - - __
00-23
Minute - - __
00-59
Second - - __
00-59
29
Specify Install Options
Specify Install Options
Type choices, press Enter.
Restore options - -- __1=Restore programs and language
objects from current media set
2=Do not restore programs or
language objects
3=Restore only language
objects from current media set
4=Restore only language
objects from a different
media set using the current
install device
Job and output
queues option - - - - __
1=Clear, 2=Keep
30
Specify Restore Options
Specify Restore Options
Type choices, press Enter.
Restore from the installation media:
System information - - - __1=Restore,
Edit descriptions - - - __1=Restore,
Message reply list - - - __1=Restore,
Job description - - - - -__1=Restore,
Subsystem description - __1=Restore,
2=Do not restore
2=Do not restore
2=Do not restore
3=Keep customization
3=Keep customization
31
OS/400 Installation Status
Message ID . . . :CPI2070
Stage 2
OS/400 Installation Status
+------------------------------------------------------------- ----+
XXXXXXX
+----------------------------------------------------------- ------+
0
20
40
60
80
100
Installation
Stage
Completed
1 Creating needed profiles and libraries:
x
>> 2 Restoring programs to library QSYS:
3 Restoring language objects to library QSYS:
4 Updating program table:
5 Installing database files:
6 Completing AS/400 installation
Objects
Restored
XXXX
32
IPL Options Panel
IPL Options
Type choices, press Enter.
System date………………………………………………………:
System time…………………………………………………… :
Clear job queues……………………………………..:
Clear output queues……………………………….:
Clear incomplete job logs…………………:
Start print writers…………………………………:
Start system to restricted state:
Set major system options……………………:
Define or change system at IPL……:
08/26/06
12:00:00
N
N
N
Y Set this flag to
Y ‘Y’-Keep users
off the system
Y
Y
You should always choose the option to set system options.
33
Set Major Systems Options
Type choices, press Enter.
Enable automatic configuration ……..
Y
Device configuration naming …………….. *NORMAL
Default special Environment ……………….. *NONE
34
Systems Values to Modify
QALWOBJRST
QJOBMSGQFL
QJOBMSGQMX
QMAXSIGN
QPWDEXPITV
QMCHPOOL
QPFRADJ
QVFYOBJRST
QFRCVNRST
QALWUSRDMN
to
to
to
to
to
to
to
to
to
to
*ALL
*PRTWRAP
64
*NOMAX
*NOMAX
Current system value
2
1
0
*ALL
35
Network Attribute Requirements
System Name
Local network ID
Local control point name
Default local location name
Default node
Default type
Maximum number of sessions
Network node servers
36
OS/400 Is Restored
I
When the AS/400 main menu is
displayed, you have completed restoring
the operating system.
37
Restore User Profiles
I
SAVSYS or SAVSECDTA, whichever media
contains current information
I
CHGMSGQ MSGQ(QSYSOPR)
DLVRY(*NOTIFY) SEV(99)
I
ENDSBS *ALL *IMMED
38
Restore User Profiles
Restore User Profiles (RSTUSRPRF)
Type choices, press Enter.
Device
+for more values
User profile
+for more values
Volume identifier
+for more values
Sequence number
End of tape option
Save file
Library
tap01
________
*all
________
*MOUNTED
Name, *SAVF
*SEARCH
*LEAVE
_________
*LIBL
1-16777215, *SEARCH
*REWIND, *LEAVE, *UNLOAD
Name
Name, *LIBL, *CURLIB
Name, generic*, *ALL
Character value, *MOUNTED
Additional Parameters
Mail
*NO
*NO, *YES
*NONE, *ALL
Allow objects differences *ALL
Output
*NONE
*NONE, *OUTFILE
F3=Exit
F4=Prompt
F24=More keys
F5=Refresh
More…
F12=Cancel F13=How to use this display
39
QSECOFR Password
I Ensure
you change the
QSECOFR Password
40
Restore Configuration Objects
I SAVSYS
or SAVCFG media
I RSTCFG
command
41
Restore Configuration
Restore Configuration (RSTCFG)
Type choices, press Enter.
Objects
+ for more values
Device
+ for more values
Object types
+ for more values
Volume identifier
+ for more values
Sequence number
End of tape options
Save file
Library
System Resource Management
> *SRM
Name, generic*, *ALL, *SRM
> TAP01
Name, *SAVF
*ALL
*ALL, *CFGL, CNNL, COSD
*MOUNTED
1-16777215, *SEARCH
*REWIND, *LEAVE, *UNLOAD
Name
Name, *LIBL, *CURLIB
*ALL, *NONE, *HDW, *TRA
More…
F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display
Critical
F24=More keys
Allow object differences
Output
File to receive output
Library
Output memory options:
Member to receive output
Replace or add records
*SEARCH
*REWIND
_________
*LIBL
> *NONE
> *ALL
*NONE
_________
*LIBL
*FIRST
*REPLACE
*NONE, *ALL
*NONE, *PRINT, *OUTFILE
Name
Name, *LIBL, CURLIB
Name, *FIRST
*REPLACE, *ADD
42
Restoring User Objects
OS/400 Optional Libraries
-QHLPSYS
-QUSRTOOL
Licensed Program Libraries
-QRPG
Q Libraries that contains user data
-QGPL
-QUSRSYS
-Q36F
User libraries
-data libraries
-program libraries
*NONSYS
RSTLIB
*IBM
RSTLIB
RSTLIB
*ALLUSR
Filed Documents and Folders (in library QDOC) RSTDLO
Distribution Objects (in library QUSRSYS)
Domino, Client Access, Root directories
RST
Private Authorities
RSTAUT
43
Restore User Libraries
I
RSTLIB *NONSYS ( Monthly Tapes )
I
Omit daily libraries
• Allow object difference and member option
parameter = *ALL
44
RSTLIB *NONSYS
Restore Library (RSTLIB)s
Type choices, press Enter.
Name, *NONSYS, *ALLUSR,
Saved library
*NONSYS
*IBM
Device
TAP01
Name, *SAVF
+ for more values ________
Volume identifier
*MOUNTED
+ for more values ________
Sequence number
*SEARCH
1-1677215, *SEARCH
*SAVLIB
Label
End of tape option
*UNLOAD
*REIND, *LEAVE, *UNLOAD
Starting library
*FIRST
Name, *FIRST
Name, *NONE
Libraries to omit
LIBX _
+ for more values LIBY_____
Save file
_________
Name
Name, *LIBL, *CURLIB
Library
*LIBL
Optical file
__________________________________________
More…
F3=Exit
F4=Prompt F5=Refresh F12=Cancel F13=How to use this
display F24=More keys
45
RSTLIB *NONSYS
Restore Library (RSTLIB)
Type choices, press Enter.
Additional Parameters
Options
Data base member option
Date when saved
Time when saved
Allow object differences
Force object conversion:
Convert during restore
Object to convert
Restore to library
Auxiliary storage pool ID
Output
File to receive output
Library
*ALL
*ALL
________
________
*ALL
*ALL, *NEW, *OLD, *FREE
*MATCH, *ALL, *NEW, *OLD
Date
Time
*NONE, *ALL
*SYSVAL, *NO ,*YES
*RQD, *ALL
Name, *SAVLIB
1-16, *SAVASP
*NONE, *PRINT, *CURLIB
Name
Name, *LIBL, *CURLIB
More…
F12=Cancel
F24=More keys
*SYSVAL
________
*SAVLIB
*SAVASP
*PRINT
________
*LIBL
F3=Exit
F4=Prompt F5=Refresh
F13=How to use this display
46
Restore User Libraries
RSTLIB User Libraries from Daily save tapes
I Separate RSTLIB for each library
I
I
Omit Development ????
• Allow object difference and member option
parameter = *ALL
47
RSTLIB Libraries
Restore Library (RSTLIB)s
Type choices, press Enter.
Saved library
LIBX
Name, *NONSYS, *ALLUSR,
*IBM
Device
TAP01
Name, *SAVF
+ for more values ________
Volume identifier
*MOUNTED
+ for more values ________
Sequence number
*SEARCH
1-1677215, *SEARCH
*SAVLIB
Label
End of tape option
Starting library
Libraries to omit
*LEAVE
*REWND, *LEAVE, *UNLOAD
*FIRST
Name, *FIRST
Name, *NONE
*NONE
+ for more values
Save file
_________
Name
Name, *LIBL, *CURLIB
Library
*LIBL
Optical file
__________________________________________
More…
F3=Exit
F4=Prompt F5=Refresh F12=Cancel F13=How to use this
display F24=More keys
48
RSTLIB Libraries
Restore Library (RSTLIB)
Type choices, press Enter.
Additional Parameters
Options
Data base member option
Date when saved
Time when saved
Allow object differences
Force object conversion:
Convert during restore
Object to convert
Restore to library
Auxiliary storage pool ID
Output
File to receive output
Library
*ALL
*ALL
________
________
*ALL
*ALL, *NEW, *OLD, *FREE
*MATCH, *ALL, *NEW, *OLD
Date
Time
*NONE, *ALL
*SYSVAL, *NO ,*YES
*RQD, *ALL
Name, *SAVLIB
1-16, *SAVASP
*NONE, *PRINT, *CURLIB
Name
Name, *LIBL, *CURLIB
More…
F12=Cancel
F24=More keys
*SYSVAL
________
*SAVLIB
*SAVASP
*NONE
________
*LIBL
F3=Exit
F4=Prompt F5=Refresh
F13=How to use this display
49
Restoring User Libraries
I Make
sure all logical files have been
restored.
I Separate
RSTLIB command required
for every library containing missed
logical files.
50
Restoring Document Library
I Make
sure QUSRSYS has been
restored
I RCLDLO
I Full Save - RSTDLO DLO(*ALL)
SAVFLR(*ANY)
51
RSTDLO
Restore Document Lib Object (RSTDLO)
Type choices, press Enter
Name, *ALL, *SYSOBJNAM…
Document library object
> *ALL
+ for more values _______
Saved folder
*ANY _________________________________
+ for more values _______________________________________
New object name
*SAME
Name, *SAME
+ for more values _______________________________________
Restore into folder
*SAME________________________________
Device
> TAP01
Name, *SAVF
+ for more values _______________________________________
*MOUNTED
Volume identifiers
+ for more values _______________________________________
More…
F3=Exit
F4=Prompt F5=Refresh F12=Cancel
F13=How to use this display F24=More keys
52
RSTDLO
Restore Document Lib Object (RSTDLO)
Type choices, press Enter
Sequence number:
Beginning sequence number
Ending sequence number
End of tape option
Label
1-1677215, *SEARCH
1-1677215, *ONLY
*REWIND *LEAVE *UNLOAD
*SEARCH
________
*LEAVE
*GEN
Additional Parameters
Object name generation
Date when saved
Time when saved
Allow object differences
Saved from ASP
Restore to ASP
Output
F3=Exit
F4=Prompt
F24=More keys
F5=Refresh
*SAME
________
________
*ALL
*ANY
*SAVASP
*NONE
F12=Cancel
*SAME, *NEW
Date
Time
*NONE, *ALL
1-16, *ANY
1-16, *SAVASP
*NONE *PRINT *OUTFILE
More…
F13=How to use this display
53
Restore QLANSrv File System
I
Make sure QUSRSYS has been restored
I
Restore all user data from last full save
• RST DEV('/qsys.lib/tap01.devd')
OBJ(('/QLANsrv/*')) SUBTREE(*ALL)
OPTION(*ALL) ALWOBJDIF(*ALL)
54
RST - Restore Directories
Restore Object (RST)
Type choices, press Enter.
Device
+for more values
Objects:
Name
Included or omit
New object name
+ for more values
Directory subtree
Output
Volume identifier
+ for more values
> ‘/qsys.lib/tap01.devd’ _____________
______________________________________
-’*’__________________________________
*INCLUDE, *OMIT
*INCLUDE
*SAME_________________________________
*ALL, *DIR, *NONE, *OBJ
*ALL
*PRINT _________________________________
*MOUNTED______________________________
______________________________________
More…
F3=Exit
F4=Prompt F5=Refresh F12=Cancel
F13=How to use this display F24=More keys
55
Review the History Log
I Examine
all CPC3700/CPF3700
Messages
56
Restore Authority
I
ENDSBS *ALL *IMMED
• Does not have to be done in
restricted state, but recommended
I
RSTAUT Restore Authority
• This process will apply authority to
all objects and directories
• It coincides with the RSTUSRPRF
57
RSTAUT
Restore Authority (RSTAUT)
Type choices, press Enter.
User profile
+ for more values
Name, generic*, *ALL
*ALL
_________
Bottom
F3=Exit
F4=Prompt F5=Refresh F12=Cancel
F13=How to use this display F24=More keys
58
Final Step(s)
I Return
I IPL
the Control panel to NORMAL
the System
59
General Tips for Recovery
Save Database Access Paths
I Save entire libraries
I Make sure SAVSYS is done on the Alternate
IPL Device
I Make sure you have the CDROM with the
original configuration information
I Make sure you have the key for the keylock
switch
I
60
Plan Your Recovery
I
Depending on when the failure occurs, you
may need to use different restoration
approach
I
Build a timeline of what was saved, when it
was saved, and then apply your recovery to
this timeline.
I
Use the SAVLIB *NONSYS as your starting
point.
61
General Tips For Recovery
Maintain a log of what is on each media
• BRMS or 3rd party tools
I Audit your backups; review jobs logs
I Clean media drive before starting Recovery
I Practice your Recovery
I Read IBM Backup and Recovery Manuals
( Only if you are having trouble sleeping )
I
62
Save/Restore Strategy
System saves must be reviewed
I Ensure compete recovery is possible from
mid week, mid day or weekend failure.
ƒ Electronic notification of exceptions
I Review Restoration Procedures
I Backup software BRMS
I
63
When was the last Full Save
64
Last Save Info
I
Following system data areas that contain last save
information for save/restore commands:
Data Area Name
•
•
•
•
•
•
QSAVALLUSR
QSAVCFG
QSAVIBM
QSAVLIBALL
QSAVSYS
QSAVUSRPRF
Purpose
SAVLIB/RSTLIB LIB(*ALLUSR)
SAVCFG/RSTCFG
SAVLIB/RSTLIB LIB(*IBM)
SAVLIB/RSTLIB LIB(*NONSYS)
SAVSYS
SAVSECDTA/RSTUSRPRF
65
Reliable Backups
Backups are the backbone to any recovery
situation
• In most recovery situations, the backups
are not adequate
• Excessive time is spent recreating parts of
operating system
• QUSRSYS not complete
66
BRMS for OS/400
IBM's Strategic Backup Management Product
¦
¦
¦
¦
Manages your media
Automates your Backups
Simplifies your Restores and Recoveries
Provides Detailed Reporting
..…and more
67
BRMS Log
I
I
I
I
I
I
I
I
I
I
I
System not in restricted state, SAVSYS Processing completed
with errors
Starting SAVDLO of folder *ANY to devices TAP01.
2574 document library objects saved.
Starting save of list *LINK to devices TAP01.
43917 objects saved. 342 not saved.
Save of list *LINK completed with errors.
Starting save of media information at level *OBJ to device TAP01.
18 objects saved from library QUSRBRM.
Save of BRM media information at level *OBJ complete.
DAILY *BKU 0070 *EXIT CALL PGM(BBSYSTEM/ENDDAYBU).
Control group DAILY type *BKU completed with errors.
68
BRMS Maintenance
I
I
I
I
I
Remove outdated save history records
Clean up old BRMS log entries
Collect and apply media usage & error statistics
Reorganize BRMS Databases
Reports
• Media Expiration report (newly expired)
• Media report of expired volumes
• Media Information report
69
BRMS Maintenance
•
•
•
•
•
Recovery Analysis report
Recovery Volume Summary report
ASP Information report
Produce the Location Analysis report
Recovery reports by system
Send Recovery report offsite….Daily
70
Backup = Recovery
•
•
•
I
How many people backup their system ?
I
Of these company’s that perform regular backups…
42 % are in-complete
21 % ( iSeries/400 ) are un-recoverable
36 % ( Intel ) are un-recoverable
71
Offsite Storage Considerations
of major system areas
I The
PRTSYSINF command produces lists
and reports:
72
What is Virtual Tape?
Server
Benefits
Virtual tape (on disk)
ƒ Run concurrent or parallel saves
without buying extra drives
ƒ Less impact from drive/media
failures
Physical Tape
Duplicate
Virtual to
Physical
ƒ Overcome Savefile Restrictions
ƒ Quick restores from virtual tape
ƒ V5R4
73
Virtual Tape Support
• Supported on all Save/Restore Commands - No SAVSTG
• Can Be Faster than Saving Directly to Tape
– Similar Performance as Save Files
– Best Performance in Separate ASP
• Eliminates Save File Limitations
– One Library Per Save File
• Onsite and Offsite Storage
– Keep Virtual Volumes on Systems as Needed
– Keep Duplicated Volumes Offsite
74
Virtual Tape Support
IConsiderations
• Additional Disk Requirements
• No Install from SAVSYS Virtual Volume
– D-IPL Only from Media
75
Spooled File Support
I
Save /Restore of Spooled Files Supported
• Preserves Spooled File Data, Spooled File Identity
and Attributes
– Spooled File Name
– Spooled File Number
– Creation Date/Time
– Fully Qualified Job Name
– Job System Name
76
Backup and Recovery
Can Be a Good
Experience
IIf
you plan
IIf you test
77
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertising