For some environments, you need to manually update the configuration information needed for application groups. This includes environments that perform bi-directional replication and environments where data groups broadcast the same replicated data to multiple systems using data groups that do not have the same name. For these environments, the following instructions replace Step 3 and Step 4 of the Checklist: converting to application groups.
Do the following to manually add a data resource group entry and identify it within the data groups, and assign node roles within an application group:
-
Use the ADDDTARGE command to add a data resource group entry of type *DTA to an application group.
-
For each data group to be associated in the same data resource group, use the CHGDGDFN command and specify the name of the data resource group entry added in Step 1 as the value for DTARSCGRP.
-
For each node (system) included in the data groups, use the ADDNODE command to specify the node’s role (ROLE) and add the node to the application group.
Example: simple three-node broadcast environment
This example manually sets up configuration information for a simple three-node broadcast environment controlled by an application group. In this example, all objects and changes on SYSA will be replicated to SYSB and SYSC.
DTA1 SYSA SYSB
DTA2 SYSA SYSC
DTA3 SYSB SYSC
Also, the application group, APPGRP1, has already been created.
For this example, the following steps create a data resource group entry, add the data groups to the resource group entry, and define the node role of each system within the application group.
-
Add a data resource group entry to the application group APPGRP1.
ADDDTARGE AGDFN(APPGRP1) DTARSCGRP(RCSGRP1) TYPE(*DTA)
-
Change the data group definitions, specifying RSCGRP1 as the value for the Data resource group entry.
CHGDGDFN DGDFN(DTA1) DTARSCGRP(RSCGRP1) CHGDGDFN DGDFN(DTA2) DTARSCGRP(RSCGRP1) CHGDGDFN DGDFN(DTA3) DTARSCGRP(RSCGRP1)
-
Define the correct node role for each node as you add the nodes to the application group.
ADDNODE AGDFN(APPGRP1) RSCGRP(*AGDFN) NODE(SYSA) ROLE(*PRIMARY)
ADDNODE AGDFN(APPGRP1) RSCGRP(*AGDFN) NODE(SYSB) ROLE(*BACKUP) POSITION(1)
ADDNODE AGDFN(APPGRP1) RSCGRP(*AGDFN) NODE(SYSC) ROLE(*BACKUP) POSITION(2)