32
L10Ch7ops400.ppt 1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

Embed Size (px)

Citation preview

Page 1: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

L10Ch7ops400.ppt 1

Backing up

Restoring

PTF ‘s Program temporary fixes

LICPGM

IPL initial program load

Chapter 7

Page 2: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

2

Assistance Levels

• Determines how much information is displayed and how it is formatted.

• Basic, Intermediate, Advanced, default on USRPRF

• Page 20, 81-91 in text.

• Try it out for yourself using the WRKSPLF command and function key F21

Page 3: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

3

AS/400 finds Objects

Note: Library Descriptions, Device Descriptions and User Profiles are systems objects and thus stored in QSYS.

All other Object Types can be stored anywhere else

Except for a ?????????.

Page 4: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

4

Security on the AS/400

• EDiT OBJect AUThority command

• See pages 22-25, 31-36 for more Details

• Need authority to the Library and then to the object

Page 5: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

5

For some System specific values use

DSPSYSVALwith QMODELQSRLNBR

ETC.

Page 6: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

6

WHY ?

BACKUP

Page 7: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

7

Backups and Restores

• Data may be lost for a variety of reasons and therefore you should be prepared (if necessary) to:– restore the entire system– restore security data, configuration objects,

licensed programs libraries– restore any library or any object– restore any or all members of a file

Page 8: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

8

Disaster Planning• A disaster plan should be well thought out and

well documented.

• A typical BACKUP plan might be to do full backups once per week and only backup changes on a daily basis.

• A RESTORE plan for this scenario would involve Step 1: restoring from the full backupStep 2: restoring from each of the changes backup to the time period desired.

Page 9: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

9

Disaster Planning cont’d

BACKUP

– Tape or Savefile

– All or Changes Only

– Can be done while people are working

RESTORE

– Restore the most recent ALL backups of all libraries

– Restore all of the CHANGES ONLY backups since the last ALL backup

REBOOT - IPL

Page 10: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

10

When to back up?

Break the procedure up into manageable and practical lots and based on realistic and secure implementation.

System - when it changes new releasePTF’s

Configuration - -when it changesdevices addednetwork changed

Libraries - when updates receivedIBM licensed products

Security data - new users / reassignmentsuser profilesauthorizations

OBJECTS - SAVCHGOBJ DAILY when changed

Page 11: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

11

Create A

BACKUP plan

For Daily

WeeklyMonthlyQuarterly

requirements

A dependable backup plan MUST ensure that EVERY object and category of object has been and is saved on a regular basis.

Page 12: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

12

BACKUP MEDIA

TAPE - DISKETTE - SAVF

Before use initializeINZTAP - INZDKT

To see the contentsDSPTAP - DSPDKT - DSPSAVF

or use the menu’sGO TAPE - GO DISKETTE - GO SAVE

Page 13: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

13

Saving Data (backups)• Go Save (menu)

• Data can be saved to tape, diskette or a savefile.

• Commands: savsys, savlib, savsecdta, savobj, savchgobj, inztap, inzdkt– SAVSYS saves QSYS, licensed programs,

security data, configuration objects – inztap and inzdkt are like the DOS “format”

command

Page 14: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

14

Some Save Commands

•SAVSTG - saves every object on the system•SAVSYS - saves LIC, OS, and all security data•SAVSECDAT - saves all security data e.g USRPRF AUTL•SAVDLO - saves Document Library Objects•SAVLIB - saves “named” libraries•SAVCFG - save configuration (devices / lines / controllers +•SAVCHGOBJ - saves objects changed since last save function•SAV - can save the entire system - recommended for IFS only

•Integrated File System

Page 15: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

15

GRAND FATHER - FATHER - SON

3, 1, 2, 3

m sath

2 1

tu w fr su

Or one for every day of the week

Page 16: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

16

It is best to run backup with *SAVSYS authority

For saving *SAVF files to tape you use the SAVSAVFDTA command

A *SAVF must first be created using theCRTSAVF command before it can be used You can think of this as setting a part of the DASD (direct access storage device) aside and “initializing it”You can save any object to a save file. E.g. libraries, data files (generic grouping etc

Page 17: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

17

Reclaim storageRCLSTG recovers all space in use by “FREE” objects

objects with no library reference or not owned by ANY user! TIME !

Clean upRemove objects that are no longer required

Clear libraries - CLRLIB

large dormant files - CLRPF

leaves structures untouched

Page 18: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

18

Preparatory Steps for a backup

Initialize the mediado cleanup tasks reclaim storage

GO ASSIST or GO SETUPBACKUP tasks

set up automatic scheduling ! *SAVSYS, Restrict access, notify everybody ‘SNDBRKMSG’

ENDSBS except QCTL

run the backup

Page 19: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

19

Restoring Data

• Restore commands use saved data from backups to replace damaged or deleted objects.

• GO RESTORE - GO CMDSAV

• Commands: RSTLIB, RSTOBJ, RSTCFG, RSTUSRPRF, RSTAUT

Page 20: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

20

Corresponding Save/Restore Commands

Save Command Used Restore command to Use

SAVSYS RSTOBJRSTUSRPRF, RSTAUTRSTCFG

SAVSECDTA RSTUSRPRF, RSTAUT

SAVLIB RSTLIB

SAVOBJ RSTOBJ

SAVCHGOBJ RSTOBJ

Page 21: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

21

Menu functions

GO

CLEANUP - SCHEDULE, CHANGE , START CLEAN UP TASKS BACKUP - RUN, DISPLAY STATUS, SET UP, INZ???SETUP - CHANGE REQUIREMENTS, daily, weekly, monthly

schedule changesASSIST - option 11 , 5

Page 22: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

22

Security on the AS/400

• EDiT OBJect AUThority command

• WRKOBJ option 2 edit authority

• See Chapter 9 for more Details

• Need authority to the Library and to the object

Page 23: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

23

Care & Maintenance of your AS/400

• Reboot! - IPL

Page 24: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

24

Care & Maintenance of Your AS/400

• BACKUP– Tape or Savefile– All or Changes Only– Can be done while people are working

Page 25: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

25

Care & Maintenance of your AS/400

• RECOVERY– Restore the most recent ALL backups of all

libraries– Restore all of the CHANGES ONLY backups

since the last ALL backup

Page 26: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

26

Why do we IPL on the AS/400?

• Reclaim Space

• Reorganize object pointers

• Restore lost or damaged data

• activate device configurations

• implement PTF’s

System values that influence the type/mode of IPL’s being done

QIPLSTS , QIPLTYPE

Page 27: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

27

PTF ‘sProgram temporary fixes

in between major operating system upgrades several temporary fixes or small upgrades can be released and accommodated this way.

CUM ‘s PTF ‘scumulative

HIPER PTF ‘sHi-Impact and pervasive

Follow the accompanying documentation to install any PTFCan be made permanent, some must be, but in general not recommended because

they can not be reversed when applied permanently

VERY HARDWARE MODEL DEPENDEND

Page 28: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

28

Operating System Upgrades & PTFs

• Operating System Upgrade Every Year– Currently at Version 5 Release 2

• PTFs applied every month– Program Temporary Fixes: patches that are

temporary until the next release of the operating system

Page 29: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

29

GO PTF

PTF Program Temporary Fix System: ODIN

Select one of the following: 1. Load a program temporary fix 2. Apply a program temporary fix 3. Copy a program temporary fix 4. Remove a program temporary fix 5. Display a program temporary fix 6. Order a program temporary fix 7. Install a program temporary fix from a list 8. Install program temporary fix package

Page 30: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

30

GO LICPGM to verify the status and level of PTF ‘s installed

LICPGM Work with Licensed Programs Select one of the following: Manual Install 1. Install all Preparation 5. Prepare for install Licensed Programs 10. Display installed licensed programs 11. Install licensed programs 12. Delete licensed programs 13. Save licensed programs

Secondary Languages 20. Display installed secondary languages 21. Install secondary languages 22. Delete secondary languages Redistribution 40. Create a distribution tape Completion Status 50. Display log for messages Related Commands

70. Save and restore commands 71. Program temporary fix commands 72. Licensed commands

Page 31: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

31

Please read additional Save/Restore notes from

“Handouts and Discussion papers” on my web site OPS400

Page 32: L10Ch7ops400.ppt1 Backing up Restoring PTF ‘s Program temporary fixes LICPGM IPL initial program load Chapter 7

32

The END