Defining coupling facility structures

Before you enable DB2® data sharing, you must define coupling facility structures.

About this task

You must define one lock structure, one list structure, and at least four cache structures:
  • Group buffer pool 0
  • Group buffer pool 8K0
  • Group buffer pool 16K0
  • Group buffer pool 32K
The lock structure and list structures (SCAs) do not need to be in the same coupling facility. Individual structures cannot span coupling facilities.
Recommendation: Use a Sysplex Failure Management (SFM) policy to define the availability characteristics of the coupling facility structures for lost connectivity failures, which includes a total failure of the coupling facility.

Procedure

To define coupling facility structures:

  1. Determine the following characteristics of your DB2 coupling facility structures:
    Initial size and maximum size of the structures
    The structures can be dynamically resized from INITSIZE up to the value in SIZE.
    Structure names
    Determine the names that you will use for the coupling facility structures.
    Availability characteristics
    You must know the preference list (PREFLIST) for rebuilding or reallocating a structure, if the coupling facility fails.
  2. Use the z/OS® coupling facility resource management (CFRM) policies to define these structures to the Parallel Sysplex® and define a SFM policy.

    A CFRM policy determines how and where the structure resources are allocated.

    See Adding MVS systems to a sysplex for information about how to create CFRM and SFM policies.

Example

A sample CFRM policy is shown in the following figure.

Figure 1. Sample CFRM policy
//POLICYX  JOB MSGCLASS=Z,REGION=2000K,CLASS=A,
//             MSGLEVEL=(1,1)
//STEP1  EXEC PGM=IXCMIAPU
//STEPLIB DD DSN=SYS1.MIGLIB,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN  DD *
 DATA TYPE(CFRM) REPORT(YES)
 DEFINE POLICY NAME(POLICYX) REPLACE(YES)
   STRUCTURE NAME(DSNDB0A_LOCK1)
             INITSIZE(32000)
             SIZE(64000)
             REBUILDPERCENT(5)
             PREFLIST(CF01,CF02)
   STRUCTURE NAME(DSNDB0A_GBP0)
             INITSIZE(50000)
             SIZE(100000)
             REBUILDPERCENT(5)
             DUPLEX(ALLOWED)
             PREFLIST(CF02,CF01)
   STRUCTURE NAME(DSNDB0A_GBP1)
             INITSIZE(50000)
             SIZE(100000)
             PREFLIST(CF02,CF01)
             DUPLEX (ENABLED)
   STRUCTURE NAME(DSNDB0A_SCA)
             INITSIZE(10000)
             SIZE(20000)
             REBUILDPERCENT(5)
             PREFLIST(CF01,CF02)
 
   CF NAME(CF01) TYPE(009674)
                 MFG(IBM)
                 PLANT(00)
                 SEQUENCE(000000040016)
                 PARTITION(1)
                 CPCID(00)
                 DUMPSPACE(1200)
 
   CF NAME(CF02) TYPE(009674)
                 MFG(IBM)
                 PLANT(00)
                 SEQUENCE(000000040029)
                 PARTITION(1)
                 CPCID(00)
                 DUMPSPACE(1200)
//