Configure a device cluster resource group
An example program to set up a device Cluster resource group (CRG).
About this task
In the following example, note that:
- [PRIMARY SITE NAME] and [BACKUP SITE NAME] could be any two distinct strings of eight characters or fewer.
- [PRIMARY IP] and [BACKUP IP] are the IPs to be used for mirroring.
Procedure
- Identify the name of the cluster.
- Identify the CRG exit program name and library.
- Determine the name of the primary node and backup nodes to be defined by this CRG.
- Identify the IASP to be managed by this CRG, and make sure it has been created under the primary node.
- Create a device description in the backup nodes by using the command:
CRTDEVASP DEVD([IASP NAME]) RSRCNAME([IASP NAME])- Add the takeover IP address to all the nodes by using the command:
ADDTCPIFC INTNETADR(' [TAKEOVER IP]') LIND([LINE DESC]) SUBNETMASK('[SUBNET MASK]') AUTOSTART(*NO)- Start the takeover IP address only in the primary node by using the command:
STRTCPIFC INTNETADR('[TAKEOVER IP')- Optional: If your IASP is switchable, call this command:
CRTCRG CLUSTER([CLUSTER NAME]) CRG( [CRG NAME]) CRGTYPE(*DEV) EXITPGM([EXIT LIB]/[EXIT NAME]) USRPRF([EXIT PROFILE]) RCYDMN(( [PRIMARY NODE] *PRIMARY) ([BACKUP NAME] *BACKUP)) EXITPGMFMT(EXTP0200) CFGOBJ(([IAPS NAME] *DEVD *ONLINE '[TAKEOVER IP]')- Optional: If your IASP is to be mirrored, call this command:
CRTCRG CLUSTER([CLUSTER NAME]) CRG([CRG NAME]) CRGTYPE(*DEV) EXITPGM([EXIT LIB]/[EXIT NAME]) USRPRF([EXIT PROFILE]) RCYDMN(([PRIMARY NODE] *PRIMARY *LAST [PRIMARY SITE NAME] ('[PRIMARY IP]')) [BACKUP NAME] *BACKUP *LAST [BACKUP SITE NAME] ('[BACKUP IP]'))) EXITPGMFMT(EXTP0200) CFGOBJ(([IAPS NAME] *DEVD *ONLINE '[TAKEOVER IP]'))Parent topic: Overview of combining IBM i clustering capabilities with IBM MQ clustering