Session 15901 Handout
Session 15901 Handout
to
z/OS DASD Backup and Archiving
Session 15901
Steve Pryor
DTS Software, Inc.
steve@dtssoftware.com
Storage Management
Objectives
●
Data Availability
●
Data available even if logically/physically damaged
●
Dataset Backup and Recover/Restore
●
Space Availability
●
Sufficient free space for new/extended datasets
●
Dataset Migrate/Archive and Recall
Backup vs. Archive/Migration
●
Backup ●
Archive
– Short term (usually) – Long term (years)
– Multiple copies – 1 or 2 copies
– Vault offsite – Recycle needed
Storage Hierarchy
High Cost Auto
Primary DASD storage Most frequently
Limited Resource
(Migration Level 0) tiering used
High Data Availability
Compressed Data
(Migration Level 1)
Data Class
What
services? What backups
PAV?, Storage Mgmt are needed? application
Dataset When should it data
striped? Class Class
migrate? sets
Storage
Group Data Mover
SYS1.
VVDS.
volser
VVR or NVR
CA – CA-DISK
DFSMShsm Backup Process
Automatic Backup or
BACKVOL or BACKDS
DFSMShsm
Select if updated
Select if MC requires Bkup
vol info
Dataset
info
Turn off
Change bit
BCDS OCDS Journal
Create bkup
copy(s)
SMS SG Attributes
or
DFSMShsm Non-SMS Attributes
PRIMARY
BACKUP
DUMP
MIGRATION
DFSMShsm Backup Process
●
Types of Backup
●
Automatic Incremental Backup
●
Automatic Dump
●
Command Backup / Command Dump
●
Other
●
Inline Backup
●
ABARS Backup
●
Fast Replication Backup
DFSMShsm Backup
●
Automatic Incremental Backup
DEFINE BACKUP(YYYYYYN CYCLESTARTDATE(yyyy/mm/dd))
SETSYS AUTOBACKUPSTART(starttime latest quiesce)
SETSYS BACKUP(DASD | TAPE)
SETSYS DUPLEX(BACKUP(Y | N))
SETSYS MAXBACKUPTASKS(n)
●
Automatic Dump
DEFINE DUMPCYCLE(NNNNNNY CYCLESTARTDATE(yyyy/mm/dd))
SETSYS AUTODUMPSTART(starttime latest quiesce)
SETSYS MAXDUMPTASKS(n)
DEFINE DUMPCLASS(name ...RETPD UNIT FREQ et al)
DFSMShsm Backup
●
Command Backup
(H)BACKDS dsn TARGET NEWNAME RETAINDAYS et al
●
Command Dump
BACKVOL VOLUMES(volser) DUMP(DUMPCLASS(class)) RETPD(days)
BACKVOL STORAGEGROUP(sgname) DUMP(DUMPCLASS(class) STACK(nn))
DFSMShsm - Locating the Backup
●
Obtain Info from BCDS, MCDS, OCDS
– TSO HLIST command
– DFSMShsm LIST command
– ISMF HLIST
replace DFSMShsm
existing
dataset obtain
vol info
obtain
dataset
new or info
renamed OCDS Journal
BCDS
dataset Mount bkup
copy
ACS routines
Turn ON
change bit
Set LRdate
z/OS Catalog
DFSMShsm Recovery Process
Types of Recovery
●
Dataset recovery from incremental
(H)RECOVER dsn TOVOLUME(volser) UNIT(unit) REPLACE ...
●
Full volume restore from incremental
RECOVER * TOVOLUME(original_volser) UNIT(unittype) -
FROMDUMP(DUMPVOLUME(tape_volser) APPLYINCREMENTAL)
●
Full volume restore from dump copy
RECOVER * TOVOLUME(volser) UNIT(unittype)
●
Other
●
ABARS, Fast Replication Recovery
DFSMShsm Backup Expiration
EXPIREBV Command
Scan BCDS
is dataset deleted?
(H)BDELETE Command
Turn off
Change bit ABR
Backup
Update DSCB Create bkup Catalog
bkup info copy(s)
SMS SG Attributes
and/or ABR Model DSCB
FDRABR Backup Process
// EXEC PGM=FDRABR
DUMP TYPE=FDR / ABR
FDRABR
(FDRDSF)
Select if updated
Select unless MC forbids Bkup
vol info
Turn off
Change bit ABR
Backup
Update DSCB Create bkup Catalog
bkup info copy(s)
SMS SG Attributes
and/or ABR Model DSCB
FDRABR Backup Process
Types of Backup
●
Incremental
DUMP TYPE=ABR
MOUNT VOL=, STORGRP=
●
Full-Volume
DUMP TYPE=FDR
MOUNT VOL=, STORGRP=
●
Other
– Dataset (TYPE=DSF, TYPE=AUTO)
– Application (TYPE=APPL)
FDRABR Backup Architecture
Backup DSN=FDRABR.VDTS001.C1003404
DTS001 DSN=MY.DATA.SET
Dataset Backup Info:
VTOC -cycle table, flags, et al
FDRABR
DSN=FDRABR.VTSO001
Backup
Volume Backup Info: Catalog
-GEN, CYCLE, et al
●
PGM=FDRABRP, PRINT BACKUP function
●
PGM=FDREPORT
●
ISPF panels
FDRABR Recovery Process
Obtain bkup info // EXEC PGM=FDRABR
from F1DSCB RESTORE TYPE=ABR
FDRABR
SELECT DSN=, NEWN=...
(FDRDSF)
DTS001
replace
existing
dataset
z/OS Catalog
FDRABR Backup Expiration
●
All datasets on backup file expire together
●
Tape expiration via:
– EXPDT/RETPD in JCL (date or catalog control)
– ABR model if no JCL value
• Same day as full vol for incremental
– Explicit expiration processing not required
Dataset Life Cycle
Dataset Creation
Open/Extend/Close
Backup / Restore
Migrate / Recall
Expiration and Deletion
Migration and Recall Management
●
How often to migrate?
●
What data should be migrated?
●
Which volumes? How old? What criteria?
●
How long is the migrated copy retained?
●
How is the data recalled?
●
Explicit recall? Recall by reference?
DFSMShsm Migration Process
Automatic Primary Space Mgmt or
MIGRAT Command Migration
z/OS Catalog
DFSMShsm
tape
Select if MC requires vol info
Dataset
info
Delete
dataset
MCDS OCDS Journal
Create migr
copy(s)
●
Automatic Primary Space Management
●
Automatic Secondary Space Management
●
Command Space Management
●
Other
●
Interval migration
●
On-demand migration
●
Fast Subsequent Migration
DFSMShsm Space Management
Space Management Windows and Settings
DEFINE PRIMARYSPMGMTCYCLE (YYYYYYY CYCLESTARTDATE(YYYY/MM/DD))
SETSYS PRIMARYSPACEMANAGEMENTSTART(hhmm hhmm)
SETSYS MAXMIGRATIONTASKS(nn)
SETSYS MAXEXTENTS(nn)
SMS SG Attributes
or
ABR Model DSCB
Locating the Migration Copy
●
DFSMShsm
– H(LIST) dsn MCDS
●
FDRABR
– PGM=FDRABRP, PRINT ARCHIVE
– ISPF panels
– FDREPORT
Automatic Recall
DFSMShsm and FDRABR
z/OS
Catalog
//DD1 DD DSN=MY.DATA.SET...
MY.DATA.SET MIGRAT Determine
Dataset is referred to.
if migrated
IGG026DU Catalog LOCATE requests volser
DTS001
DFSMShsm
FDRABR
front-end Correct volume returned
Obtain
migr info
SVC 26
MCDS/ACF
DFSMShsm /
FDRABR attached DTS001
MY.DATA.SET TAP001
Dataset restored
And recatalogued TAP001 MY.DATA.SET
FDRABR Selection Criteria
●
SMS Selection Criteria
– Management Class Migration Attributes
– Management Class Expiration Attributes optional
●
FDRABR Selection Criteria
– ADAYS, IFNOTCAT, EXPIRED, MAXGDG, DSN
FDRABR Archive Expiration
●
All datasets on archive file expire together
(usually)
●
Tape expiration via:
– EXPDT/RETPD in JCL (date or catalog control)
– RETPD in SYSIN
– FDROPT default
●
Archive Control File expiration
– Usually = tape expiration
– Unless SMSEXPIRE=YES
DFSMShsm vs. FDRABR
DEFINE / SETSYS FDROPT / SYSIN
BCDS ABR Catlg/DSCB/Model
MCDS Archive Control File
OCDS ABR Catalog
Functions, Commands PGM=, SYSIN
(H)LIST FDREPORT
More Topics...
●
Management of non-SMS data
●
Disk-to-Disk Data Movement
●
Volume Defragmentation
●
Flashcopy and FDRINSTANT
●
CDS Backup, ACF Maintenance, Recycle
●
Application Backup and ABARS
●
Report Writing
●
Serialization, Security, Standalone restore
and much more...
Further Reading and Documentation
●
IBM z/OS DFSMShsm Primer
●
http://www.redbooks.ibm.com/redbooks/SG245272
●
DFSMShsm Storage Administration Reference
– http://publibz.boulder.ibm.com/cgi-
bin/bookmgr_OS390/BOOKS/DGT2S6A0/CCONT
ENTS?SHELF=DGT2BKB0&DN=SC35-0421-
12&DT=20110618155526
●
FDR System User's Guide
●
ftp://ftp.fdrinnovation.com/Public/MANUALS/
–
Questions?
Steve@dtssoftware.com
770.922.2444 x162