Change HA Policy (CHGHAPCY)

The Change High Availability (HA) Policy (CHGHAPCY) command is used to change an existing HA policy in an HA environment. Policies control specific behaviors related to clustering and high availability environments. Policy information is distributed to all nodes in a cluster.

To change the domain or qualifier for a policy, use the Remove HA Policy (RMVHAPCY) command, followed by the Add HA Policy (ADDHAPCY) command specifying the new policy domain and policy qualifier.

Restrictions:

Parameters

Keyword Description Choices Notes
CLUSTER Cluster Name, * Required, Positional 1
PCY Policy name Name Required, Positional 2
PCYDMN Policy domain Name Required, Positional 3
QUAL Policy qualifier Character value, *NONE Required, Positional 4
VALUE Policy value Character value, *SAME, *NONE Optional

Cluster (CLUSTER)

Specifies the name of the cluster.

This is a required parameter.

*
The cluster that has been configured on this system is used.
name
Specify the name of the cluster for the policy.

Policy name (PCY)

Specifies the name of the policy. Additional information on policies may be found in the PowerHA documentation: http://www.ibm.com/developerworks/ibmi/ha/.

This is a required parameter.

name
Specify the name of the policy.

Policy domain (PCYDMN)

Specifies the name of the domain to which the policy applies. For example, if the policy is for an administrative domain, the policy domain would specify an administrative domain name.

name
Specify the name of the domain that the policy pertains to.

Policy qualifier (QUAL)

Specifies additional information about the policy to distinguish the instance of the policy from similar policy. The possible values in this field are different for each policy, but the format of the information in many policies is very similar to the CL command line parameter format. Additional information on policy qualifiers may be found in the PowerHA documentation: http://www.ibm.com/developerworks/ibmi/ha/.

This is a required parameter.

*NONE
No qualifier is associated with this policy. This is only applicable to certain policies.
character value
Specify the policy qualifier in the format required for the policy.

Policy value (VALUE)

Specifies the policy value. The possible values in this field are different for each policy. Additional information on policy values may be found in the PowerHA documentation: http://www.ibm.com/developerworks/ibmi/ha/.

*SAME
The policy value is not changed.
*NONE
No value is associated with this policy. This is only applicable to certain policies.
character value
Specify the value of the policy. The value must be enclosed in apostrophes if it contains any non-alphanumeric character or blanks. If an apostrophe is intended, two apostrophes must be used ('').

Examples for CHGHAPCY

Example 1: Changing an High Availability (HA) policy for automatically adding job descriptions to the admin domain when they are created

CHGHAPCY   CLUSTER PCY(QCST_AD_CREATE) PCYDMN(AD1)
           QUAL('RSCTYPE(*JOBD)') VALUE('LIB(*ALL)')

This command changes an HA policy for the cluster containing the current node. The policy configures the behavior of PowerHA to add monitored resource entries automatically for job descriptions in all libraries to the admin domain AD1 when the resources are created on the system.

Error messages for CHGHAPCY

*ESCAPE Messages

HAE002B
&1 command failed.