Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Background

Geographic Mirroring supports using either synchronous or asynchronous replication.

Before you begin

This scenario assumes that the following tasks have been completed prior to these steps:

  • A cluster between the nodes has been created, and the cluster nodes have a status of Active.

  • The nodes are all in the same device domain. When creating a cluster or adding a node to a cluster with default options, PowerHA automatically adds nodes to a single device domain.

  • An IASP has been created on the production node.

As part of this process, when configuring Geographic Mirroring between the first target system, the production copy of the IASP will need to be varied off.

Procedure

Create the Cluster Resource Group

A cluster resource group (CRG) defines the following:

  • A recovery domain is a list of nodes that are potential hosts for the IASP along with:

    • The current role the node has (primary or backup)

    • The data port IP address(es) to use for replication.

  • A list of configuration objects, such as IASPs or IP addresses, that are switched between the nodes.

A CRG can be created using any of the following methods:

  • Type the CRTCRG command and press F4 to go to the Create Cluster Resource Group (CRTCRG) command screen.

  • Using the Work with Cluster (WRKCLU) command menu. Select option 9, Work with cluster resource groups, and use option 1, Create, and enter a name for the CRG to go to the Create Cluster Resource Group (CRTCRG) command screen.

  • From the command line, enter the CRTCRG command and your parameters.

For this example, a CRG is created using the following command:

CRTCRG CRG(GEOCRG) 
       CRGTYPE(*DEV) 
       RCYDMN((MN01 *PRIMARY *LAST MN ('192.0.2.100' '192.0.2.101'))
              (WI01 *BACKUP  *LAST WI ('192.0.2.200' '192.0.2.201'))) 
       CFGOBJ((MYIASP *DEVD *ONLINE))

This command creates a device CRG called GEOCRG. The CRG defines two nodes: the first in a site named MN and the second in a site named WI. Each node has two data port IP addresses defined for replication. The CRG has a single IASP device specified that is switched with the CRG called MYIASP.

Data Port IP Addresses

It is possible to use anywhere from 1 to 4 dataport IP addresses per node. Dataport IP addresses are used for Geographic Mirroring data replication. While only a single data port IP address is required, it is generally recommended to have more than one per node for improved performance and throughput. The greatest performance benefit is typically noticed in going from one data port IP address to two.

Automatic Failover

By default, a cluster resource group has automatic failover enabled. When a failure is detected, automatic failover will automatically switch the IASP to a backup node.

Disabling Automatic Failover

Automatic failover can be disabled using the QCST_CRG_CANCEL_FAILOVER PowerHA policy. The following example disables all automatic failover for the CRG named GEOCRG:

ADDHAPCY PCY(QCST_CRG_CANCEL_FAILOVER) PCYDMN(GEOCRG) QUAL('SCOPE(*CRG)') VALUE('EVENT(*ALL)')

For additional information on customizing automatic failover, see the QCST_CRG_CANCEL_FAILOVER policy.

Enhanced Automatic Failover with Cluster Monitor

In environments where automatic failover is desired, it is possible to enhance automatic failover to monitor for additional events via a Hardware Management Console (HMC) using cluster monitors. See Advanced Node Failure Detection for additional information.

Optional CRG Exit Program

CRG Exit programs provide a way to define a program to call whenever a cluster event occurs and enable enhanced automation. See the Cluster Resource Group Exit Program topic in the IBM i Documentation for more information

Configure Geographic Mirroring

As part of this process, when configuring Geographic Mirroring between the first target system, the production copy of the IASP will need to be varied off. Configuring and deconfiguring Geographic Mirroring between additional nodes does not require the production IASP to be varied off.

  1. Vary off the IASP on the production system if it currently has a status of Available by using the VRYCFG command. For example: VRYCFG CFGOBJ(MYIASP) CFGTYPE(*DEV) STATUS(*OFF)

  2. Use the Configure Geographic Mirroring (CFGGEOMIR) command to configure Geographic Mirroring replication to the target node. For this example, the following command is used:

    CFGGEOMIR ASPDEV(MYIASP) 
              ACTION(*CREATE)
              DELIVERY(*ASYNC) 
              COMPRESS(*RESYNC)                                                       

    This command configures Geographic Mirroring for the IASP named MYIASP to the node MN02.
    Since MN02 is in a different site in the CRG from the production system, delivery can be either synchronous (*SYNC) or asynchronous (*ASYNC). In this example, *ASYNC is chosen.
    A value of *RESYNC is specified for transmission compression. Transmission compression can reduce the time required for initial synchronization and resynchronization and uses hardware-accelerated compression for Power10 and later systems. On systems prior to Power10, software compression is used. Compression can have higher CPU overhead on the production system.

  3. Since *SELECT was specified for the disk units, a panel showing all non-configured units is displayed on the target node, as shown below. Use option 1 to select the disk units you want from the list.

    PowerHA                Select Non-Configured Disk Units                       
                                                                                  
    ASP device . . . . . . :   MYIASP        Mirror copy node . . . :   WI01
    Prod copy capacity . . :   28634         Mirror copy capacity . :   0         
    Prod disk units  . . . :   3             Mirror disk units  . . :   0         
                                                                                  
    Type options, press Enter.                                                    
      1=Select                                                                    
                                                                                  
         Resource                                                                 
    Opt  Name        Serial Number    Type Model  Capacity  Rank  Eligible               
     1   DMP476      YF5258000079     2145 0050       9544  002      Yes          
     1   DMP481      YF525800007A     2145 0050       9544  002      Yes          
     1   DMP485      YF525800007B     2145 0050       9544  002      Yes          
                                                                           More...
    F1=Help   F9=Calculate Selection   F11=View 2   F12=Cancel                    

    After confirming the selection, PowerHA will initialize and format the disk units on the target system, configure Geographic Mirroring, and create copy descriptions and a session to manage the replication. The default session name if *GEN is used is GEOMIRSSN.
    Since the default value for the start indicator parameter was left as *YES in the command, PowerHA will also start the cluster resource group, vary on the IASP on the production system, and start replication.

Results

Geographic Mirroring is now configured between the nodes in the CRG. To verify and monitor the status of replication, use the Display ASP Session (DSPASPSSN) command. For example, DSPASPSSN SSN(GEOMIRSSN).

  • No labels