+

Search Tips | Advanced Search

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

  1. Identify the name of the cluster.
  2. Identify the CRG exit program name and library.
  3. Determine the name of the primary node and backup nodes to be defined by this CRG.
  4. Identify the IASP to be managed by this CRG, and make sure it has been created under the primary node.
  5. Create a device description in the backup nodes by using the command:
     CRTDEVASP DEVD([IASP NAME]) RSRCNAME([IASP NAME])
  6. 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)
  7. Start the takeover IP address only in the primary node by using the command:
    STRTCPIFC INTNETADR('[TAKEOVER IP')
  8. 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]')
  9. 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

Last updated: 2020-10-04