0% found this document useful (0 votes)
44 views39 pages

Session 15901 Handout

The document provides an introduction to z/OS DASD backup and archiving. It discusses storage management objectives of data availability and space availability. It describes the differences between backup and archive/migration. It then covers important SMS constructs used for managing backups, migrations, and archives including management classes, storage groups, and data classes. Finally, it summarizes the backup and recovery processes for DFSMShsm and FDRABR, the major IBM and CA backup software packages.

Uploaded by

Peter Campell
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views39 pages

Session 15901 Handout

The document provides an introduction to z/OS DASD backup and archiving. It discusses storage management objectives of data availability and space availability. It describes the differences between backup and archive/migration. It then covers important SMS constructs used for managing backups, migrations, and archives including management classes, storage groups, and data classes. Finally, it summarizes the backup and recovery processes for DFSMShsm and FDRABR, the major IBM and CA backup software packages.

Uploaded by

Peter Campell
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 39

An Introduction

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)

Low Cost Archived Data


(Migration Level 2) Least frequently
Unlimited Resource
used
Low Data Availability
Dataset Life Cycle
Dataset Creation
Open/Extend/Close
Backup / Restore
Migrate / Recall
Expiration and Deletion
Backup and Restore Management

When do backups run?

Daily? Weekly? >1 per day?

What data is backed up?

Updated data? All data? Selected data?

How long is the backup retained?

How can the backup be found?

How is the backup restored?

Overlay existing dataset? New volume?, Rename?
DFSMS Manages Storage
SMS Constructs Data Manager
Dataset Characteristics

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

What volume should be chosen?


Important SMS Constructs

Management Class ●
Storage Group
– Expiration Attributes – Auto mig/bkup/dump
– Migration Attributes – dump class/system
data
sets
– Partial Release – Alloc/migr threshold
– GDG generations – VOLSERs
– Backup Attributes
– Transition Criteria
– ABARS Attributes
Fields used by DASD Managers
z/OS Catalog
Format-1 DSCB
- DSN
- dataset-changed (DS1IND02)
- last-referened date
VTOC - backup info

SYS1.
VVDS.
volser
VVR or NVR

- DSN / cluster name / components


- Dataclas, Storclas, Mgmtclas name
Major DASD Management Vendors
IBM IDP
Data Manager Data Manager
– DFSMShsm – FDRABR

Data Mover Data Mover


– DFSMSdss – FDR/FDRDSF

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

LIST DSNAME(dsn) MCDS/BCDS/BOTH -


LIST(ODS(dsn)/SYSOUT/TERMINAL)
Recover (Restore) from Backup
RECOVER command

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

Obtain MC info SMS


BCDS Constructs
Is backup expired?

is dataset deleted?

remove BCD record

(H)BDELETE Command

Delete backup version of dataset


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
// 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

Tape Volume Info:


Bkup DSN, fseq, expiration
FDRABR – Locating the Backup

Backup Information stored in:
– Dataset F1DSCB (dataset exists)
– ABR Scratch Catalog (dataset deleted)
– ABR Backup Catalog (tape volume info)


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

new or Mount bkup Obtain tape Obtain bkup info


renamed tape vol info if no F1DSCB
ACS Routines dataset
ABR ABR
Backup Scratch
DTS002 Catalog Catalog

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)

ML1 Automatic Secondary Space Mgmt or


/ Command Migration
SMS SG Attributes SDSP
or
DFSMShsm Non-SMS Attributes
PRIMARY
BACKUP
DUMP
MIGRATION
DFSMShsm Space Management
Space Management Functions

Migrate, extent reduction, release, expire


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)

SETSYS SECONDARYSPACEMANAGEMENTCYCLE (YYYYYYY)


CYCLESTARTDATE(yyyy/mm/dd))
SETSYS SECONDARYSPMGMTSTART(1400)
SETSYS MAXSSMTASKS (CLEANUP(2) TAPEMOVEMENT(1))
SETSYS SMALLDATASETPACKING(KB(110))
Space Management Commands
HMIGRATE dsn ML2
MIGRATE DSN/VOLUME
DELETE dsn
FDRABR Archive Process
// EXEC PGM=FDRABR
DUMP TYPE=ARC, ADAYS=
MIGRAT MOUNT VOLG=, STORGRP=
z/OS Catalog
FDRABR

Select if ABR requires


Dataset tape
info vol info
Delete
dataset Archive
Control
Create migr File
copy(s)

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

Share Technology Exchange


Booth 409

You might also like