Where allowed to run: All environments (*ALL) Threadsafe: Yes |
Parameters Examples Error messages |
The Change Cluster Resource Group (CHGCRG) command changes some of the attributes of a cluster resource group. The cluster resource group object is changed on all active nodes in the recovery domain. Recovery domain nodes that are not active at the time of the change will have the change made when they become active again.
For primary-backup model cluster resource groups, changing the node role to primary or changing the takeover IP address can only be done when the cluster resource group status is Inactive or Indoubt. If the cluster resource group is active, the Change Cluster Resource Group Primary (CHGCRGPRI) command can be used to assign the primary role to the first backup node.
For peer model cluster resource groups:
The following fields may be changed without causing the cluster resource group exit program to be called:
This command will do the following for all cluster resource group types:
This command will do the following for application cluster resource groups:
This command will do the following for device cluster resource groups:
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
CLUSTER | Cluster | Name | Required, Positional 1 |
CRG | Cluster resource group | Name | Required, Positional 2 |
CRGTYPE | Cluster resource group type | *DATA, *APP, *DEV, *PEER | Required, Positional 3 |
EXITPGM | CRG exit program | Single values: *SAME, *NONE Other values: Qualified object name |
Optional |
Qualifier 1: CRG exit program | Name | ||
Qualifier 2: Library | Name, *CURLIB | ||
EXITPGMFMT | Exit program format name | *SAME, EXTP0100, EXTP0101, EXTP0200, EXTP0201 | Optional |
EXITPGMDTA | Exit program data | Character value, *SAME, *NONE | Optional |
USRPRF | User profile | Simple name, *SAME, *NONE | Optional |
TEXT | Text description | Character value, *SAME | Optional |
RCYDMNACN | Recovery domain action | *SAME, *CHGPREFER, *CHGCUR | Optional |
RCYDMN | Recovery domain node list | Values (up to 128 repetitions): Element list | Optional |
Element 1: Node identifier | Name, *SAME | ||
Element 2: Node role | *SAME, *BACKUP, *PRIMARY, *REPLICATE, *PEER | ||
Element 3: Backup sequence number | 1-127, *SAME, *LAST | ||
Element 4: Site name | Name, *SAME, *NONE | ||
Element 5: Data port IP address action | *SAME, *ADD, *REMOVE | ||
Element 6: Data port IP address |
Single values: *SAME, *NONE Other values (up to 4 repetitions): Character value |
||
TKVINTNETA | Takeover IP address | Character value, *SAME | Optional |
JOB | Job | Name, *SAME, *CRG, *JOBD | Optional |
ALWRESTART | Allow application restarts | *SAME, *NO, *YES | Optional |
NBRRESTART | Number of application restarts | 0-3, *SAME | Optional |
FLVMSGQ | Failover message queue | Single values: *SAME, *NONE Other values: Qualified object name |
Optional |
Qualifier 1: Failover message queue | Name | ||
Qualifier 2: Library | Name | ||
FLVWAITTIM | Failover wait time | Integer, *SAME, *NOWAIT, *NOMAX | Optional |
FLVDFTACN | Failover default action | *SAME, *PROCEED, *CANCEL | Optional |
APPID | Application identifier | Character value, *SAME, *NONE | Optional |
Top |
Specifies the cluster containing the cluster resource group which will be changed.
This is a required parameter.
Top |
Specifies the cluster resource group to be changed.
This is a required parameter.
Top |
Specifies the type of the cluster resource group that is to be changed.
This is a required parameter.
Top |
Specifies the exit program that is used to handle action codes that are passed to it due to operations on the cluster resource group. The exit program cannot be in an independent auxiliary storage pool. The action codes are described in the Cluster Resource Group Exit Program section of the API reference manual. If the exit program is changed for an active application cluster resource group, the job currently running which was submitted to handle the Start action code continues running the prior exit program.
Single values
Qualifier 1: CRG exit program
Qualifier 2: Library
Top |
Specifies the format which should be used for the information passed to the user when a cluster resource group exit program is called.
Top |
Specifies up to 256 bytes of data that is passed to the cluster resource group exit program when it is called. This parameter may contain any scalar data except pointers. For example, it can be used to provide state information. This data will be stored with the specified cluster resource group and copied to all nodes in the recovery domain. Pointers in this area will not resolve correctly on all nodes and should not be placed in the data. The data specified will replace the existing exit program data stored with the cluster resource group, if the command completes successfully.
Top |
Specifies the user profile under which the exit program should be run. The user profile must exist on all nodes in the recovery domain.
The following user profiles are not valid:
Top |
Specifies the text used to briefly describe the cluster resource group object.
Top |
Specifies the type of action to take for the recovery domain.
Top |
Specifies the changes for the recovery domain. For primary-backup model cluster resource groups, this specifies the roles for nodes that compose the recovery domain. The full recovery domain must be specified. For peer model cluster resource groups, this specifies the roles for the nodes being changed. Only those nodes being changed must be specified.
Element 1: Node identifier
Specifies the node whose role is being changed in the recovery domain of the cluster resource group specified. The node specified must currently be defined in the recovery domain of the cluster resource group specified.
Element 2: Node role
Specifies the role of the node in the recovery domain of the cluster resource group. A role must be defined for each node in the recovery domain. For primary-backup model cluster resource groups a node can have one of three roles: primary, backup, or replicate. Only one node can be designated as the primary. For peer model cluster resource groups a node can have one of two roles: peer or replicate. Any number of nodes can be designated as a peer or replicate.
Element 3: Backup sequence number
Specifies the backup order for a node with role of *BACKUP. If there is already a node with the same backup order and it is also not changed at the same time, the command will fail. At the completion of the request the nodes with backup roles will be sequentially renumbered from the first backup to the last. The first backup will always be 1.
Element 4: Site name
Specify the site name of the recovery domain node. This is valid only for a device cluster resource group. Can only change from a site name to *NONE or from *NONE to a site name. Cannot change from one site name to another site name. A site name can be changed only if all configuration objects in the cluster resource group are for auxiliary storage pool devices.
Element 5: Data port IP address action
Specifies the type of action to take for the data port IP address.
Element 6: Data port IP address
Specify the data port IP address for the recovery domain node. This is valid only for a device cluster resource group, specifically for geographic mirroring. The data port IP address is used to send updates from a source node that owns the production copy of auxiliary storage pool to a target node that owns the mirror copy of auxiliary storage pool.
Single values
Other values (up to 4 repetitions)
An IPv4 internet address is specified in the form nnn.nnn.nnn.nnn, where nnn is a decimal number ranging from 0 through 255. An IPv4 internet address is not valid if it has a value of all binary ones or all binary zeros for the network identifier (ID) portion or the host portion of the address.
An IPv6 internet address must be a unicast address and must not contain an imbedded IPv4 address (compatibility or mapped). An IPv6 internet address is specified in the form x:x:x:x:x:x:x:x, where x is a hexadecimal number ranging from 0 through X'FFFF'. The "::" may be used once in the IPv6 address to indicate one or more groups of 16 bits of zeros. The "::" may be used to compress leading, imbedded, or trailing zeros in the address.
If the IP address is entered from the command line, the address must be enclosed in apostrophes.
Top |
Specifies the internet interface address that is to be associated with an application. This is the takeover IP address that will be switched between systems. The IP addresses may be an IPv4 address (for any cluster version) or IPv6 address (if current cluster version is 7 or greater).
An IPv4 internet address is specified in the form nnn.nnn.nnn.nnn, where nnn is a decimal number ranging from 0 through 255. An IPv4 internet address is not valid if it has a value of all binary ones or all binary zeros for the network identifier (ID) portion or the host portion of the address.
An IPv6 internet address must be a unicast address and must not contain an imbedded IPv4 address (compatibility or mapped). An IPv6 internet address is specified in the form x:x:x:x:x:x:x:x, where x is a hexadecimal number ranging from 0 through X'FFFF'. The "::" may be used once in the IPv6 address to indicate one or more groups of 16 bits of zeros. The "::" may be used to compress leading, imbedded, or trailing zeros in the address. IP addresses created by IPv6 stateless address auto-configuration are not valid to be used as takeover IP addresses.
If the IP address is entered from the command line, the address must be enclosed in apostrophes.
If the value is not *SAME and the Cluster Resource Services configured the takeover IP address, this command will remove the current IP address and add this IP address to the node. If either the add or remove address function fails, the command will fail. The cluster resource group must be Inactive to change this field. This field is only valid for an application cluster resource resource group.
Top |
Specifies the name given the batch job that is submitted by the cluster resource group. This job will call the cluster resource group exit program with the action code generated by the command being used.
Top |
Specifies whether or not to restart an application if the cluster resource group exit program fails.
Top |
Specifies the number of times a cluster resource group exit program can be called on a same node before failure occurs. Maximum number of restarts is 3. If the cluster resource group is currently active, any change does not take affect until failover occurs or the cluster resource group exit program job ends.
Top |
Specifies the message queue to receive messages (CPABB01) dealing with failover. If this field is set, the specified message queue must exist on all nodes in the recovery domain after the exit program completes. The message queue cannot be in an independent auxiliary storage pool.
Single values
Qualifier 1: Failover message queue
Qualifier 2: Library
Top |
Specifies the number of minutes to wait for a reply to the failover message that was enqueued on the failover message queue. This parameter is ignored when the FLVMSGQ parameter is *NONE.
Top |
Specifies the default action to be taken if a response to the failover message is not received in the failover wait time limit. This parameter is ignored when the FLVMSGQ parameter is *NONE.
Top |
Specifies the application identifier. This defines the purpose of the cluster resource group.
Top |
Example 1: Changing the Exit Program Data
CHGCRG CLUSTER(MYCLUSTER) CRG(MYCRG) CRGTYPE(*DATA) EXITPGMDTA('replace this data') TEXT('CRG FOR PAYROLL APPLICATION DATA')
This command changes a data cluster resource group called MYCRG in the cluster called MYCLUSTER. The exit program data is replaced with the character string specified. The text description for the cluster resource group object is also changed to the value specified. All other fields are unchanged.
Example 2: Changing the Recovery Domain
CHGCRG CLUSTER(MYCLUSTER) CRG(MYCRG) CRGTYPE(*DEV) EXITPGMFMT(*SAME) TEXT('CRG FOR CROSS SITE MIRRORING') RCYDMNACN(*CHGCUR) RCYDMN((NODE1 *SAME *SAME *SAME *ADD ('1.1.1.1')))
This command changes a device cluster resource group called MYCRG in the cluster called MYCLUSTER. The text description for the cluster resource group object is changed to the value specified. A data port IP address is added for node NODE1.
CHGCRG CLUSTER(MYCLUSTER) CRG(MYCRG) CRGTYPE(*DEV) EXITPGMFMT(*SAME) TEXT('CRG FOR CROSS SITE MIRRORING') RCYDMNACN(*CHGCUR) RCYDMN((NODE1 *SAME *SAME *SAME *REMOVE ('2001:0DB8:101::0230:D9FF')))
This command changes a device cluster resource group called MYCRG in the cluster called MYCLUSTER. The text description for the cluster resource group object is changed to the value specified. A data port IP address is removed for node NODE1.
Top |
Top |