Register the SUNW.sapdb resource type.
# clresourcetype register SUNW.sapdb |
Create a MaxDB resource in the MaxDB resource group.
Ensure that the MaxDB resource depends on the following resources:
The HAStoragePlus resource for the global device group on which MaxDB is installed.
The SAP xserver resource.
When you create this resource, specify the following information about the MaxDB database instance. This information is created when MaxDB is installed and configured as explained in Installing and Configuring MaxDB.
The name of the MaxDB database.
The UNIX user identity of the OS user who administers the MaxDB database instance. If you are using MaxDB 7.5 or MaxDB 7.6, the UNIX user identity of the OS user who administers the MaxDB database is sdb.
The user key of the database user who administers the MaxDB database instance.
# clresource create -d -g sapdb-rg \ -t SUNW.sapdb \ -p DB_Name=db-name \ -p DB_User=os-sapdb-adm-user \ -p User_Key=sapdb-adm-key \ -p resource_dependencies=hsp-resource,xserver-resource sapdb-rs |
Specifies that the resource that you are creating is not immediately enabled.
Specifies that the resource is to be added to the MaxDB resource group.
Specifies that the resource is an instance of the SUNW.sapdb resource type.
Specifies the name of the MaxDB database instance in uppercase.
Specifies the UNIX user identity of the OS user who administers the MaxDB database. This user's home directory contains the .XUSER.62 file that was created during the installation and configuration of MaxDB. For more information, see Installing and Configuring MaxDB.
Specifies the user key of the database user who administers the MaxDB database instance. This user key is created during the installation and configuration of MaxDB. For more information, see Installing and Configuring MaxDB.
Specifies that the MaxDB resource depends on the following resources.
The HAStoragePlus resource for the global device group on which MaxDB is installed
The SAP xserver resource
Specifies that the resource that you are creating is named sapdb-rs.
The resource is created in the enabled state.
Ensure that the MaxDB resource group is brought online only on a node or zone where the SAP xserver resource group is online.
To meet this requirement, create on the MaxDB resource group a strong positive affinity for the SAP xserver resource group.
# clresourcegroup set -p rg_affinities=++xserver-rg sapdb-rg |
Specifies that the MaxDB resource group declares a strong positive affinity for the SAP xserver resource group.
Specifies that theMaxDB resource group is to be modified.
Enable the MaxDB resource group.
#clresourcegroup online -emM sapdb-rg |
Enables the MaxDB resource group and moves it to the MANAGED state.
Specifies the name of the MaxDB resource group to be brought online.
(Optional) Consider configuring your cluster to prevent noncritical resource groups from being brought online on the same node or zone as the MaxDB resource group.
You might plan to run lower-priority services on a node to which the MaxDB resource can fail over. In this situation, consider using resource group affinities to shut down the noncritical services when the MaxDB resource fails over to the node.
To specify this behavior, declare on the resource group for each noncritical service a strong negative affinity for the MaxDB resource group.
# clresourcegroup set -p rg_affinities=--sapdb-rg noncritical-rg |
Sets the resource group property to the specified value.
Specifies the name of the noncritical resource group.
# clresource create -d -g sapdbrg -t SUNW.sapdb \ -p DB_Name=TST -p DB_User=dbadmin \ -p User_Key=DEFAULT -p resource_dependencies=hsprs,xsrvrrs sapdbrs |
The resource is created in the enabled state.
This example shows the creation of a SUNW.sapdb resource that has the following characteristics:
The resource is named sapdbrs.
The resource is a member of a resource group that is named sapdbrg. The creation of this resource group is shown in Example 5.
The resource is an instance of the SUNW.sapdb resource type. The registration of this resource type is not shown in this example.
The MaxDB database instance that is associated with this resource is named TST.
The UNIX user identity of the OS user who administers the MaxDB database is dbadmin.
The user key of the database user who administers the MaxDB database is DEFAULT.
The MaxDB resource depends on the following resources: