HCL Technologies Ltd.
An Introduction to the AS/400 / iSeries / i5 Mid-Range System (Backup and Recovery)
Rama Krishna 1 Thommandra
Introduction
To backup is to copy some or all of a computer’s software to a storage location independent of the computer.
2
Introduction
To restore is to copy that remotely stored data back onto the computer and be able to use it.
3
Reasons to Backup
Object failure:
Most common reason. Objects deleted or damaged or corrupted.
System failure:
Less common. Power lost or disk units fail etc.
4
Reasons to Backup
Site movement:
Company moves from one computer to another. Common for disaster recovery.
Efficiently save infrequently used information:
Large objects take up disk space infrequently used. Site loss. Extremely rare. Flood, fire, riots, etc
5
Copy Vs. Save
Copy command:
Two copies of the file. Accessed at any time. Could be lost if disk problem. Data files cannot be accessed except by restore. Object header updated. Off-site security.
6
Save command:
6 Object Categories
Operating objects:
MULIC/FULIC, Microcode.
7
6 Object Categories
System objects:
OS/400 licensed program, User profiles, Private authorities, Device configuration, System and network values.
8
6 Object Categories
Support objects:
System libraries required normal operation, Compiler, Utilities.
9
6 Object Categories
Production objects:
Data files, Data areas, Job descriptions, Program, Objects running applications.
10
6 Object Categories
Development objects:
Source files.
End-user objects:
Data associated with applications.
11
Backup Media
In general, objects can be saved to:
Magnetic tape. DASD (through a save file). Diskette. Another AS/400. Optical Media. Save file (object type *SAVF).
Save Command Menu
SAVE Select one of the following: Save Data 1. Files 2. Libraries 3. Documents and folders 4. Programs 5. Other objects 6. Changed objects only 7. Licensed programs 8. Security data 9. Storage 10. Configuration 11. Objects in directories Save
System:
BIGBLUE
15
Save Command Menu
Save System and User Data 20. Define save system and user data defaults 21. Entire system 22. System data only 23. All user data
Save Document Library Objects 30. All documents, folders, and mail 31. New and changed documents, new folders, all mail 32. Documents and folders 33. Mail only 34. Calendars
16
Save Command Menu
Save Libraries 40. All libraries other than system library 41. All IBM libraries other than system library 42. All user libraries 43. All changed objects in user libraries
Save for Different Systems 50. Save in System/36 format Related Commands 70. Related commands Bottom Selection or command ===> _________________________________________________________________________
F3=Exit F4=Prompt F16=AS/400 Main menu
F9=Retrieve
F12=Cancel
F13=Information Assistant
17
System Auxiliary Storage BACKUP
Model-Unique Licensed Internal Code Licensed Internal Code SAVSYS Operating System Objects (QSYS) Private Authorities SAVSECDTA User Profiles, Authorization Lists, and Holders (in QSYS) Distribution Objects (in library QUSRSYS) Configuration Objects (in QSYS) Filed Documents and Folders (in QDOC)
Q Libraries Provided by IBM Which Contain User Data (QGPL, QUSRSYS, QS36F) SAVOBJ SAVCHGOBJ Other User Libraries
18
Save Storage
Copies DASD track by track. Can Only restore entire system. Can’t restore single object.
19
Save System
Required – Restricted State. It will save:
OS/400 system objects. Licensed internal code. Optionally, the system configuration. System resource management objects. Security objects. All PTFs.
20
Save System
Not Saved:
IBM licensed programs. Optional parts of OS/400. Folders. Libraries QGPL and QUSRSYS. Any user libraries.
21
SAVSYS Command
Save System (SAVSYS)
Type choices, press Enter.
Tape device . . . . + for Volume identifier . + for File expiration date End of tape option . Use optimum block . Omit . . . . . . . . . . . . . . more values . . . . . . more values . . . . . . . . . . . . . . . . . . . . . . . . TAP01 *MOUNTED *PERM *REWIND *YES *NONE *NONE Name Character value, *MOUNTED Date, *PERM *REWIND, *LEAVE, *UNLOAD *YES, *NO *NONE, *CFG, *SECDTA *NONE, *PRINT, *OUTFILE
What Is Saved?
Library Name SAVLIB LIB(xx) SAVLIB LIB LIB(*NONSYS) LIB(*IBM) Saved Not Saved Not Saved Saved x x x x x x x x x x x x x x x x x x x x x x x x x x x SAVLIB LIB(*ALLUSR) Saved Not Saved x x x x x x x x x x x x
What Is Saved?
Library Name SAVLIB LIB(xx) SAVLIB SAVLIB LIB(*NONSYS) LIB(*IBM) Saved Not Saved Not Saved Saved QTEMP x x QUSR38 x x QUSRSYS x x QUSRTEMP x x QDSNX x x #LIBRARY x x #CGULIB x x #COBLIB x x #DFULIB x x #RPGLIB x x #SDALIB x x #SEULIB x x #DSULIB x x QXXXXXXXXX x x SAVLIB LIB(*ALLUSR) Saved Not Saved x x x x x x x x x x x x x x
36
Save Changed Object Screen
Save Changed Objects (SAVCHGOBJ)
Save-while-active
Object saved while being accessed (even updated) by users. Creates checkpoint image of the file being saved. File image is captured, and save made.
51
Save-while-active
Only available on these save commands:
SAVLIB SAVOBJ SAVCHGOBJ SAV
52
How Save-while-active Works
Relies on Internal set of checkpoints. Internal to applications updating the files. Define the boundaries of a transaction.
53
Things Not Saved
Trouble when saving their contents are:
Contents of queues. Queues saved but not contents. AS/400 queues are:
• • • • • • • Data Job Message Output User Two lists held within journals. Logical files Sometimes save files (*savf)
54
Restore Menu
RESTORE Select one of the following: Restore Data 1. Files 2. Libraries 3. Documents and folders 4. Programs 5. Other objects 6. Licensed programs 7. Configuration 8. User profiles 9. Objects in directories Restore System and User Data 21. System and user data More... Selection or command ===> __________________________________________________________________________ F3=Exit F4=Prompt F9=Retrieve F12=Cancel F16=AS/400 Main menu (C) COPYRIGHT IBM CORP. 1980, 1998. F13=Information Assistant Restore System: BIGBLUE
55
Restore Menu
RESTORE Restore System: BIGBLUE
Select one of the following:
22. System data only 23. All user data Restore Office Data 30. All documents, folders, and mail 31. Documents and folders 32. Mail only 33. Calendars Restore Libraries 40. All libraries other than system library 41. All IBM libraries other than system library 42. All user libraries More... Selection or command ===> __________________________________________________________________________ F3=Exit F4=Prompt F16=AS/400 Main menu F9=Retrieve F12=Cancel F13=Information Assistant
56
Restore Menu
RESTORE Select one of the following: Restore from Different Systems 50. Restore from System/36 format Related Commands 70. Related commands Restore
System:
BIGBLUE
Bottom Selection or command ===> __________________________________________________________________________ F3=Exit F4=Prompt F16=AS/400 Main menu F9=Retrieve F12=Cancel F13=Information Assistant
57
BACKUP/RESTORE COMMAND SUMMARY BACKUP
Model-Unique Licensed Internal Code Control Panel Licensed Internal Code SAVSYS Operating System Objects (QSYS) 23 (restore) 24 (install) IPL or Install the System Menu Option 2 (Install) RSTAUT
RECOVERY
Private Authorities
SAVSECDTA
User Profiles, Authorization Lists, and Holders (in QSYS) Distribution Objects (in QSYS)
RSTUSRPRF
RSTCFG Configuration Objects (in QSYS) SAVSTG SAVDLO Filed Documents and Folders (in QDOC) OS/400 Optional Libraries SAVLIB (QHLPSYS, QUSRTOOL) Licensed Program Libraries (QRPG, QCOBOL, etc.) Q Libraries Provided by IBM Which Contain User Data (QGPL, QUSRSYS, QS36F) SAVOBJ SAVCHGOBJ Other User Libraries RSTOBJ RSTDLO DST Menu
(restore storage)
RSTLIB
58
Restores
RST—Restores objects from the Integrated File System (IFS). RSTLIB—Restores one or more libraries. RSTOBJ—Restores one or more objects from one or more libraries. RSTLICPGM—Restores saved licensed programs.
59
Goals/deliverables:
• How much time will be spent each day/week/month doing backups? • In the event of a disaster requiring recovering some or all of the system, how long can the users wait?
Plans:
• How long will backups be kept? • How many generations of backups will be kept? • Where will the backup media be kept and how accessible is it? • If the computer is destroyed, where and how quickly will another be available?
62
Backup Strategies
Activities:
Save the entire system on a regular basis. Save libraries. Save objects. Save changed objects. Save documents library objects. Save distribution objects associated with mail. Contract for a standby AS/400.
63
Backup Strategies
Verification:
Is everything really available on the backup media? Is the media in good condition or is it getting worn from too much use? If the media is stored off-site (it usually is), is it obtainable during off-hours?
64
Verify Backup Strategy
Four points:
Are the planned saves completing? Surprisingly, too many companies go for months with failed saves. Are the objects that are intended to be saved in fact getting saved? For example, are all user libraries really getting saved? How about all libraries containing source code? All developers’ libraries? Are the save tapes readable? Is the tape drive in good condition?
65