If you are using the GDPS Continuous Availability with zero data loss solution with Db2 for the first time,
you need to modify your Db2 data sharing
groups.
About this task
You need to make a number of changes to your Db2
environment if one of the following situations is true:
- You are using the original release of the GDPS Continuous Availability with zero data loss solution, and you are ready to upgrade to
the GDPS Continuous Availability with zero data loss (GDPS Continuous Availability with zero data loss) solution.
- You have not used the GDPS Continuous Availability with zero data loss solution
before, and you are installing the GDPS Continuous Availability with zero data loss (GDPS Continuous Availability with zero data loss) solution.
GDPS Continuous Availability with zero data loss solution
terminology: A
GDPS Continuous Availability with zero data loss solution that
includes
Db2 requires three data sharing environments. The
solution includes a
source
Db2 data sharing group, a
proxy
Db2 data sharing group, and a
target
Db2 data sharing group. The proxy group uses a
capture program to capture changes to tables on the source group. The proxy group then
uses a
replication program to replicate the changes to the target group. A VSAM
key-sequenced data set, called the
compression dictionary data set (CDDS), must be
defined in the source group. It holds the following items for use in capture and replication:
Procedure
To prepare Db2 data sharing groups to use the
GDPS Continuous Availability with zero data loss solution, follow these
steps:
-
Convert all members of your source and proxy data sharing groups to Db2 11 new-function mode.
-
Convert the BSDS data sets to extended 10-byte format by running the DSNTIJCB job on all
members of your source and proxy data sharing groups.
-
Choose a member of the source data sharing group that is not running a capture program to be
the first member to be upgraded. Create the CDDS on that member.
To minimize the possibility of an out-of-space condition, you should define an SMS data class for
the CDDS with the following attributes enabled:
- Extended addressability
- Extended format
- Extent constraint relief
- CA reclaim
Define the CDDS with a DEFINE CLUSTER command like the one below. In your DEFINE CLUSTER command,
you need to specify the same values that are shown in the example for these parameters:
- KEYS
- RECORDSIZE
- SPANNED
- SHAREOPTIONS
- CONTROLINTERVALSIZE

DEFINE CLUSTER -
( NAME(prefix.CDDS) -
KEYS(8 0) -
RECORDSIZE(66560 66560) -
SPANNED -
SHAREOPTIONS(3 3)) -
DATA -
( CYLINDERS(1000 1000) -
CONTROLINTERVALSIZE(16384)) -
INDEX -
( CYLINDERS(20 20) -
CONTROLINTERVALSIZE(2048))
The CDDS name must be of the form prefix.CDDS.
-
Stop Db2 on the first source member that is being upgraded.
-
On the first source member that is being upgraded, apply all Db2 PTFs that provide GDPS Continuous Availability with zero data loss support.
-
On the first source member that is being upgraded, set the following subsystem
parameters:
- Set subsystem parameter CDDS_MODE to SOURCE.
- Set subsystem parameter CDDS_PREFIX to the
prefix value that you specified when you created the CDDS.
-
Start Db2 on the first source member that is being upgraded.
-
Upgrade each of the remaining members of the source group, one at a time. To do that, follow
these steps.
Important: If a member of the data sharing group is running a capture program, upgrade
that member last. If no capture programs are running, you can upgrade the members in any
order.
-
Stop Db2 on the source member that is being upgraded.
-
On the source member that is being upgraded, apply all Db2 PTFs that provide GDPS Continuous Availability with zero data loss support.
-
On the source member that is being upgraded, set the following subsystem parameters:
- Set subsystem parameter CDDS_MODE to SOURCE.
- Set subsystem parameter CDDS_PREFIX to the
prefix value that you specified when you created the CDDS.
-
Start Db2 on the source member that is being upgraded.
-
After Db2 is started on the last member of the source group, run REORG TABLESPACE with the INITCDDS option to populate the CDDS.
-
Enable peer-to-peer remote recovery (PPRC) to mirror the BSDS data sets, active logs, archive
logs, and the CDDS from the source group to the read-only volumes in the proxy group.
-
Upgrade the members of the proxy data sharing group, one at a time. To do that, follow these
steps.
-
Stop Db2 on the proxy member that is being upgraded.
-
On the proxy member that is being upgraded, apply all Db2 PTFs that provide GDPS Continuous Availability with zero data loss support.
-
On the proxy member that is being upgraded, set the following subsystem parameters:
- Set subsystem parameter CDDS_MODE to PROXY.
- Set subsystem parameter CDDS_PREFIX to the
prefix value that you specified when you created the CDDS on the first source
member.
-
Start Db2 on the proxy member that is being upgraded.
-
Set the Sysplex Timer on the Sysplex for the source data sharing group and the Sysplex for the
proxy data sharing group to the same value.
Important: This step is essential to ensure zero data loss, and to avoid extended data
replication latency.