Use the Oracle Solaris Cluster system commands to register resource type, resource group and resource with the Oracle Solaris Cluster system. Refer to the Oracle Solaris Cluster manuals for details on the commands for registering resources.
Note
Before registering resources, check each node (active and standby) to make sure that the resource type registration files, START callback methods, STOP callback methods and fault monitors that have been created all have execution privileges.
Resources to be registered
Register the following resources:
Resource type
Resource group
Shared address resource
Data service resource
The explanation in the following examples assumes that resources are registered with the following names:
Resource type name | FJSV.OMGR |
Resource group name | OMGR_rg |
Shared address resources name | OMGR_host |
Data service resources name | OMGR_rs |
Logical host name | host1 |
Node name for Node 1 | node1 |
Node name for Node 2 | node2 |
Checking the registered contents of resources
The command below can be used to check the registered contents of resource type, resource group and resources. Continue to register resources while checking the registered contents. If there is a mistake with the registered contents, use the Oracle Solaris Cluster scrgadm command to change the registered contents.
# /usr/cluster/bin/scrgadm -p[v[v]] [ -t resource type name ] [ -g resource group name ] [ -j resource name ]
[Example of how to check a resource group]
# /usr/cluster/bin/scrgadm -pv -g OMGR_rg
Registration procedure
This section describes the procedure for registering resource type, resource group and resources. For 1:1 active/standby and N:1 active/standby configurations, enter a series of commands on the active node. For dual node mutual standby configuration, two types of settings must be registered.
1) Registering a resource type
Use the following command to register a resource type. In this example, the resource type registration file has been stored at "/opt/FJSVJMCMN/etc/script/SC3.0/resource".
# /usr/cluster/bin/scrgadm -a -t resource type name -f resource type registration file name
[Example]
# /usr/cluster/bin/scrgadm -a -t FJSV.OMGR -f /opt/FJSVJMCMN/etc/script/SC3.0/resource
2) Registering a resource group
Use the following command to register a resource group.
# /usr/cluster/bin/scrgadm -a -g resource group name -h node 1,node 2
[Example]
# /usr/cluster/bin/scrgadm -a -g OMGR_rg -h node1,node2
3) Adding a shared address resource to a resource group
Use the following command to add a shared address resource to the resource group:
# /usr/cluster/bin/scrgadm -a -S -g resource group name -l host name -j resource name
[Example]
# /usr/cluster/bin/scrgadm -a -S -g OMGR_rg -l host1 -j OMGR_host
For dual node mutual standby configuration, register different host names on the active and standby nodes.
4) Registering a data service resource with the resource group
Use the following command to register the data service resource:
# /usr/cluster/bin/scrgadm -a -j resource name -t resource type name -g resource group name
[Example]
# /usr/cluster/bin/scrgadm -a -j OMGR_rs -t FJSV.OMGR -g OMGR_rg
5) Checking the registered resources
Use the following command to check whether resources have been registered:
# /usr/cluster/bin/scrgadm -p[v[v]] [ -t resource type name ] [ -g resource group name ] [ -j resource name ]
[Example]
# /usr/cluster/bin/scrgadm -pv -g OMGR_rg -t FJSV.OMGR -j OMGR_rs
This completes the resource registration procedure.