ibm-information-center/dist/eclipse/plugins/i5OS.ic.cl_5.4.0.1/chgcrgpri.htm

218 lines
11 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Change CRG Primary (CHGCRGPRI)</title>
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body bgcolor="white">
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<a name="CHGCRGPRI.Top_Of_Page"></a>
<h2>Change CRG Primary (CHGCRGPRI)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
<b>Threadsafe: </b>No
</td>
<td valign="top" align="right">
<a href="#CHGCRGPRI.PARAMETERS.TABLE">Parameters</a><br>
<a href="#CHGCRGPRI.COMMAND.EXAMPLES">Examples</a><br>
<a href="#CHGCRGPRI.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="CHGCRGPRI"></a>
<p>The Change Cluster Resource Group Primary (CHGCRGPRI) command performs an administrative switchover of the cluster resource group by changing the current roles of nodes in the recovery domain. The primary point of access for the cluster resource group is changed as follows:
</p>
<ol>
<li>The current primary node is assigned the role of last active backup.
</li>
<li>The current first backup is assigned the role of primary.
</li>
</ol>
<p>This command is not valid for peer model cluster resource groups.
</p>
<p>If a backup node does not exist in the recovery domain, the switchover will fail. If the first backup is not the desired primary, first use the Change Cluster Resource Group (CHGCRG) command to arrange the backup nodes in recovery domain to the desired order.
</p>
<p>This command will cause the cluster resource group exit program to be called with an action code of Switchover on all active nodes in the recovery domain.
</p>
<p>When switching over cluster resource groups of different types, the order of switchover is important. Device cluster resource group objects should be done first followed by data cluster resource group objects and finally application cluster resource group objects. If you are changing the primary point of access for a data or a device cluster resource group, you should also ensure that the applications using this data are quiesced.
</p>
<p>This command will do the following for all cluster resource group types:
</p>
<ol>
<li>Set the cluster resource group status Switchover Pending.
</li>
<li>Call the cluster resource group exit program on all active nodes in the recovery domain with an action code of Switchover, if an exit program is specified for the cluster resource group.
</li>
<li>Set the cluster resource group status to Active if the exit program completes successfully.
</li>
<li>Set the cluster resource group status to Indoubt if the exit program is unsuccessful and the original state of the cluster resource group cannot be recovered.
</li>
</ol>
<p>This command will do the following for resilient application cluster resource groups:
</p>
<ol>
<li>Cancel the cluster resource group exit program job with a Cancel Job Immediate on the current primary. (<b>Note:</b> The application and exit program code should provide cancel handlers to clean up resources the job uses if it is cancelled).
</li>
<li>End the takeover IP interface on the current primary.
</li>
<li>Start the takeover IP interface on the new primary.
</li>
<li>Start the cluster resource group exit program on the new primary.
</li>
<li>Set the cluster resource group status to Active if the TCP/IP address and the cluster resource group exit program job are started.
</li>
<li>Set the cluster resource group status to indoubt (30) if either the TCP/IP address or the cluster resource group exit program job are not started.
</li>
</ol>
<p>This command will do the following for resilient device cluster resource groups:
</p>
<ol>
<li>The configuration objects must exist on all active nodes in the recovery domain and the resource names in the configuration objects must be the same on all active nodes.
</li>
<li>The current primary node must own the IOPs or high-speed link I/O bridges for the devices configured in the cluster resource group.
</li>
<li>The new primary node must be able to access the IOPs or high-speed link I/O bridges for the devices configured in the cluster resource group.
</li>
<li>For the configuration objects specified in the cluster resource group, vary the configuration objects off if they are varied on and end the server takeover IP addresses if they are active on the current primary node. The devices are varied off and moved to the new primary before the exit program is called on the current primary. If any of the devices in the cluster resource group are a primary auxiliary storage pool, all members of the auxiliary storage pool group will be varied off. Before varying the devices off, cluster resource services will attempt to end all jobs which are using auxiliary storage pools configured in the cluster resource group. There are some system server jobs which will not be cancelled. If those server jobs are performing long running operations against data on an auxiliary storage pool, the devices may not vary off and the switchover will fail.
</li>
<li>For the configuration objects specified in the cluster resource group, vary the configuration objects on and start the server takeover IP address on the new primary node if the entry in the cluster resource group indicates the configuration objects is to be varied on. If any of the devices in the cluster resource group are a primary auxiliary storage pool, all members of the auxiliary storage pool group will be varied on if the primary specifies the vary on value. The exit program is called on the new primary after the devices are moved to the new primary and varied on.
</li>
<li>A separate batch job is submitted to vary each configuration object on or off. The job is submitted to the job queue defined in the job description associated with the command's requesting user profile. The batch subsystem should be defined to allow these batch jobs to run concurrently in order to make switchover as fast as possible.
</li>
<li>Set the cluster resource group status to Active if the devices can be successfully switched to the new primary.
</li>
<li>If the device entry in the cluster resource group indicates the device should be varied on and the vary on or the start of the server takeover IP address fails for some reason, the switchover will not complete successfully. The exit program will be called with an action code of Undo and the devices will be moved back to the original primary node.
</li>
<li>Set the cluster resource group status to Indoubt if the devices cannot be successfully switched to the new primary node and cannot be returned to the same state on the old primary node.
</li>
</ol>
<p><b>Restrictions:</b>
</p>
<ol>
<li>You must have input/output system configuration (*IOSYSCFG) special authority to run this command.
</li>
<li>This command cannot be called from a cluster resource group exit program.
</li>
<li>Cluster Resource Services must be started on the node processing the request.
</li>
<li>The status of the cluster resource group being switched must be Active.
</li>
</ol>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGCRGPRI.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="CHGCRGPRI.PARAMETERS.TABLE">Parameters</a></h3>
<table border="1" cellpadding="4" cellspacing="0">
<!-- col1="10" col2="15" col3="30" col4="10" -->
<tr>
<th bgcolor="aqua" valign="bottom" align="left">Keyword</th>
<th bgcolor="aqua" valign="bottom" align="left">Description</th>
<th bgcolor="aqua" valign="bottom" align="left">Choices</th>
<th bgcolor="aqua" valign="bottom" align="left">Notes</th>
</tr>
<tr>
<td valign="top"><a href="#CHGCRGPRI.CLUSTER"><b>CLUSTER</b></a></td>
<td valign="top">Cluster</td>
<td valign="top"><i>Name</i></td>
<td valign="top">Required, Positional 1</td>
</tr>
<tr>
<td valign="top"><a href="#CHGCRGPRI.CRG"><b>CRG</b></a></td>
<td valign="top">Cluster resource group</td>
<td valign="top"><i>Name</i></td>
<td valign="top">Required, Positional 2</td>
</tr>
<tr>
<td valign="top"><a href="#CHGCRGPRI.EXITPGMDTA"><b>EXITPGMDTA</b></a></td>
<td valign="top">Exit program data</td>
<td valign="top"><i>Character value</i>, <b><u>*SAME</u></b></td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#CHGCRGPRI.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="CHGCRGPRI.CLUSTER"></a>
<h3>Cluster (CLUSTER)</h3>
<p>Specifies the cluster containing the cluster resource group.
</p>
<p>This is a required parameter.
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the cluster.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGCRGPRI.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGCRGPRI.CRG"></a>
<h3>Cluster resource group (CRG)</h3>
<p>Specifies the cluster resource group.
</p>
<p>This is a required parameter.
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the cluster resource group that is to be switched over.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGCRGPRI.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGCRGPRI.EXITPGMDTA"></a>
<h3>Exit program data (EXITPGMDTA)</h3>
<p>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 blanks are specified, then the exit program data stored with the cluster resource group will be cleared. This parameter must be set to *SAME if no exit program is specified for the cluster resource group.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The exit program data stored with the cluster resource group specified will be passed to the exit program.
</dd>
<dt><b><i>character-value</i></b></dt>
<dd>Specify the exit program data that will be passed to the cluster resource group exit program.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGCRGPRI.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CHGCRGPRI.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
CHGCRGPRI CLUSTER(MYCLUSTER) CRG(MYCRG)
EXITPGMDTA('important information')
</pre>
</p>
<p>This command changes the primary point of access for the cluster resource group MYCRG in cluster MYCLUSTER. The role of the current primary node is changed to become the last backup and the role of the current first backup node is changed to become the primary. The resilient resources associated with the cluster resource group are now accessed through the new primary node.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGCRGPRI.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CHGCRGPRI.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF1999</b></dt>
<dd>Errors occurred on command.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGCRGPRI.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>