Register resource groups by using the SMIT utility.
Refer to the HACMP manual for details on SMIT.
Register a resource group by using the following procedure:
Adding an application server
Setting up an application monitor
Registering a resource group
Setting details on the resource group registered
Synchronizing cluster definitions
The following shows registration flows for each cluster configuration.
Register a resource group with the active node. Synchronize it with the standby node.
Register two types of resource groups. Synchronize them on both nodes.
The following shows how to register a resource group with a cluster system.
Registration procedure
Adding an application server
Add an application server by performing the following steps:
On the active node, enter "smitty hacmp" to open a SMIT session.
#smitty hacmp
In SMIT, select Extended Configuration >> Extended Resource Configuration >> HACMP Extended Resources Configuration >> Configure HACMP Applications >> Configure HACMP Application Servers >> Add an Application Server.
In the fields displayed, enter the server name, start script and stop script.
[Example]
Server Name: omgr_ap Start Script: /opt/FAIXJMCMN/etc/script/hacmp/omgr_start.sh Stop Script: /opt/FAIXJMCMN/etc/script/hacmp/omgr_stop.sh
Note
Before registering an application, check that execution rights have been granted to all the start script, stop script and monitor method created on the active and standby nodes.
Register the start script and stop script with their absolute path.
Setting up an application monitor
Set up an application monitor by using the following steps:
On the active node, enter "smitty hacmp" to open a SMIT session.
#smitty hacmp
In SMIT, select Extended Configuration >> Extended Resource Configuration >> HACMP Extended Resources Configuration >> Configure HACMP Applications >> Configure HACMP Application Monitoring >> Configure Custom Application Monitors >> Add a Custom Application Monitor.
In the Monitor Name field, enter the application monitor name.
In the Application Server Name field, enter the name of the Systemwalker Operation Manager's application server ("omgr_ap" in step 1 above).
In the Monitor Method field, enter the monitor method. Enter other values according to the system operation.
[Example]
Monitor Name: omgr_mon Application Server Name: omgr_ap Monitor Mode: long-running monitoring Monitor Method: /opt/FAIXJMCMN/etc/script/hacmp/omgr_monitor.sh Stabilization Interval: 60 Restart Count: 0 Action on Application Failure: fallover
Note
Register the monitor method with its absolute path.
Registering a resource group
Register a resource group by performing the following steps:
On the active node, enter "smitty hacmp" to open a SMIT session.
#smitty hacmp
In SMIT, select Extended Configuration >> Extended Resource Configuration >> HACMP Extended Resource Group Configuration >> Add a Resource Group.
In the fields displayed, enter the resource group name and participating node name. Enter other values according to the system operation.
[Example]
Participating node names are "node1" and "node2", and the resource group name to which the Systemwalker Operation Manager's application server is registered is "omgr_rg."
Resource Group Name: omgr_rg Participating Node Names: node1 node2 (*1)
*1:
In the [Participating Node Names] field, enter the node with the highest priority first.
In this example, node1 is the home node of omgr_rg. Delimit node names with a space.
Setting details on the resource group registered
Set details on the resource group you registered by performing the following steps:
On the active node, enter "smitty hacmp" to open a SMIT session.
#smitty hacmp
In SMIT, select Extended Configuration >> Extended Resource Configuration >> HACMP Extended Resource Group Configuration >> Change/Show Resources and Attributes for a Resource Group.
In the window that displays the list of resource groups, select the resource group added ("omgr_rg" is added in step 3 above).
In the fields displayed, enter the service IP label/address, application server, volume group and file system.
For dual node mutual standby configuration, register the other resource group by repeating steps 1 through 4.
[Example]
Service IP label is "srvip," application server name is "omgr_ap," the volume name of the shared disk is "datavg1," and the mount point to the shared disk is "/disk1"
Service IP Labels/Addresses: srvip Application Servers: omgr_ap Volume Groups: datavg1 Filesystems: /disk1
Synchronizing cluster definitions
Synchronize the contents of the resource group registered with the active node with the standby node by performing the following steps:
On the active node, enter "smitty hacmp" to open a SMIT session.
#smitty hacmp
In SMIT, select Extended Configuration >> Extended Verification and Synchronization.
Synchronize the resource group.
Refer to the HACMP manual for details on synchronization.