Restart recovery brings one DB2 member back on the same sysplex. Disaster recovery assumes the building — or the city — is gone. Continuous availability tries to hide even that from users. This page connects CF failure, failover, remote site recovery, system-level backup, FlashCopy, GDPS, group buffer pools, and CF connectivity so you can tell those stories apart.
| Layer | Typical design |
|---|---|
| Member HA | Second member, group attach, ARM restart |
| CF HA | Two+ CFs, GBP duplexing, SCA/LOCK1 isolation or duplex |
| Storage HA | RAID, HyperSwap, Metro Mirror |
| Site DR | Remote copies, GDPS, RESTORE SYSTEM, log apply |
IBM’s backup/recovery/restart chapter says unplanned outages are hard to avoid entirely; a good strategy reduces elapsed time. You can recover data to current or to an earlier point (table spaces, indexes, partitions, data sets) and you can back up an entire subsystem or data sharing group. Disaster recovery is that last sentence plus geography.
A Coupling Facility can fail, or a member can lose connectivity (links, CFLEVEL mismatch, CFRM policy) while the CF hardware is fine. Effects depend on which structure was hit:
Connectivity planning includes enough CF links, a preference list with a second CF, and enough SIZE on the backup CF. D XCF,STR shows policy and allocated CF names. If you stretch data sharing across sites, CF access time becomes a performance and timeout problem as well as an HA problem — that is why many multi-site designs use GDPS with a primary CF locality rather than chatty GBPs across a long distance.
Failover means another resource takes over:
Failover that is not rehearsed is a hope, not a plan. Track RTO (how long until service returns) and RPO (how much committed work you can lose). Synchronous mirroring aims at near-zero RPO; asynchronous mirroring trades RPO for distance.
Remote site recovery is restoring Db2 after the local site is lost. You must bring up a consistent set of:
Classic tape/vault DR: ship image copies and archive logs, recover objects or the system at the remote site, accept hours of RTO. System-level backups speed the restore. Disk mirroring plus GDPS can make the remote volumes already current. Conditional restart and log truncation appear when the remote log is not a perfect dual of the primary.
For utilities that were running, IBM documents restarting them on another z/OS system and using remote-site procedures so a local disaster does not leave half-applied REORG work as the only copy.
The BACKUP SYSTEM utility invokes z/OS DFSMShsm to copy the volumes on which Db2 data and log information reside. You can back up a subsystem or a data sharing group. Later, RESTORE SYSTEM recovers that subsystem or group.
Phases are UTILINIT, COPY, UTILTERM. FULL copies data and log copy pools; DATA ONLY copies data. RESTORE SYSTEM can restore the data copy pool and apply log, or LOG ONLY. BACKUP SYSTEM is less disruptive than SET LOG SUSPEND and has group scope; SET LOG SUSPEND is member scope.
FlashCopy is the storage instantaneous-copy service HSM/DSS calls. That is why a system-level backup can complete without a long Db2 outage: the split is a few seconds of establish, then background copy. Protect against media failure by putting copy pool and backup on separate extent pools / media within the rules of your DS8000 (FlashCopy typically cannot cross certain storage-facility boundaries).
From Db2 9 onward, system-level backups can also feed object-level RECOVER if SYSTEM_LEVEL_BACKUPS is YES — useful when you do not want to restore the whole system for one table space.
123456//SYSIN DD * BACKUP SYSTEM FULL /* //SYSIN DD * RESTORE SYSTEM /*
GDPS (Geographically Dispersed Parallel Sysplex) is IBM’s product family for multi-site z/OS availability. In a Db2 conversation it means: disk replication (Metro Mirror, Global Mirror, and related), planned and unplanned site switches, and automation so operators are not inventing START DB2 order at 3 a.m. Continuous availability designs often combine:
GDPS does not replace image copies or BACKUP SYSTEM for logical damage (dropped table, bad application). Mirroring happily mirrors a DROP. You still need point-in-time recovery skills.
Continuous availability is the goal that users never notice member restart, CF takeover, or even a site switch. It costs extra CFs, extra CECs, extra links, and operational discipline (no single-CF production, no “we will duplex later”).
Disaster recovery accepts an outage window. You still need current copies, tested RESTORE SYSTEM / RECOVER jobs, documented conditional restart, and a remote CFRM policy if the remote sysplex is not a mirror of the primary. Practice the drill: a backup you have never restored is not a backup.
Group buffer pools sit in both stories. Locally they are the cache that must survive CF failure (duplex them). At a remote site they are empty structures you allocate after the disks are there — you do not “restore a GBP”; you restart members and let them rebuild interest and cache.
High availability is having two ovens in the same kitchen so dinner continues if one oven breaks. Disaster recovery is having a second house across town with a copy of the cookbook and the freezer. FlashCopy is a magic photocopier that copies the whole freezer in a blink. GDPS is the moving company that already parked a second freezer at the other house and knows the driving directions when the first house floods. Continuous availability is cooking in both houses so guests never wait. Restart recovery is just turning the same oven back on after a fuse blew.
1. What is the difference between high availability and disaster recovery for Db2?
2. What does BACKUP SYSTEM use?
3. Why duplex group buffer pools for disaster-class CF failure?
4. What is GDPS in a Db2 conversation?
5. Does BACKUP SYSTEM reset COPY-pending?