Once the data service is installed on all nodes in the cluster, the resource must be registered. All administration must be done as a super user, normally the "root" user.
During the installation of the Ingres High Availability Option, the resource type (Ingres.ingres_server) for the data service is automatically registered.
If the resource type is not registered, use the following command to register it:
# scrgadm –a –t Ingres.ingres_server –f /opt/Ingres/IngresSCAgent/etc/Ingres.ingres_server
where:
Specifies the predefined resource type name for the Ingres.ingres_server DBMS High Availability Option
Specifies the pathname of the resource type registration file and is required if the file is not in the well-known directory(usually /usr/cluster/lib/rgm/rtreg).
After the Ingres High Availability Option package has been installed, perform these steps:
% su
# scrgadm –a –g <resource-group> [-h nodelist]
where:
Adds the data service resource type.
Specifies the name of the resource group. This name can be of your choice but must be unique for the resource groups within the cluster.
Specifies an optional comma-separated list of physical node names or IDs that identify potential masters. The order here determines the order in which the nodes are considered as primary during failover
# scrgadm –a –L –g <resource-group> -l <logical-hostname>
where:
Adds the data service resource type.
Adds a logical Hostname resource type.
Specifies the name of the resource group. This name can be your choice but must be unique for the resource groups with the cluster.
Specifies a network resource. The network resource is the logical hostname or shared IP address that clients use to access Ingres for Sun Cluster HA
# scrgadm –a –j <resource-name> -g <resource-group> \
-t Ingres.ingres_server \
-x II_SYSTEM=<$II_SYSTEM> \
–x II_OWNER=<ingres> \
–x II_HOSTNAME=<logical_host> \
[-x User=<user> -x Pword=<password> \
-x Database=<database>] \
[-x EnvFile=<environmentfile>] \
[-x II_SCHA_TRACE=<level> –x II_SCHA_LOG=<filename>]
where:
Adds the data service resource type.
Specifies the name of the resource to be added.
Specifies the name of the resource group. This name can be your choice but must be unique for resource groups with the cluster.
Specifies the predefined resource type name for the Ingres.ingres_server DBMS High Availability Option.
Sets the path for the Ingres system directory.
Sets the Ingres owner.
Sets the logical host name.
Sets the users for secondary monitoring.
Sets the password for secondary monitoring.
Sets the database for secondary monitoring.
Sets the file used to load additional user specified environment variables.
Sets the trace level for debugging. Valid levels are 0 for no tracing and 1-9 for debugging information.
Sets the filename for the trace output.
Notes:
# scrgadm –Z -g <resource-group>
Enables all resources of the specified resource group.
Specifies the name of the resource group. This name can be your choice but must be unique for resource groups within the cluster
# scstat -g