Register the SUNW.sapdb resource type.
# scrgadm -a -t SUNW.sapdb |
Create an SAP DB resource in the SAP DB resource group.
Ensure that the SAP DB resource depends on the HAStoragePlus resource for the global device group on which SAP DB is installed.
When you create this resource, specify the following information about the SAP DB database instance. This information is created when SAP DB is installed and configured as explained in Installing and Configuring SAP DB.
The name of the SAP DB database
The UNIX user identity of the OS user who administers the SAP DB database instance
The user key of the database user who administers the SAP DB database instance
# scrgadm -a -j sapdb-rs -g sapdb-rg -t SUNW.sapdb \ -x DB_Name=db-name -x DB_User=os-sapdb-adm-user \ -x User_Key=sapdb-adm-key -y resource_dependencies=hsp-resource |
Specifies that a new configuration is to be added.
Specifies that the resource that you are creating is named sapdb-rs.
Specifies that the resource is to be added to the SAP DB resource group.
Specifies that the resource is an instance of the SUNW.sapdb resource type.
Specifies the name of the SAP DB database instance in uppercase.
Specifies the UNIX user identity of the OS user who administers the SAP DB database. This user's home directory contains the .XUSER.62 file that was created during the installation and configuration of SAP DB. For more information, see Installing and Configuring SAP DB.
Specifies the user key of the database user who administers the SAP DB database instance. This user key is created during the installation and configuration of SAP DB. For more information, see Installing and Configuring SAP DB.
Specifies that the SAP DB resource depends on the HAStoragePlus resource for the global device group on which SAP DB is installed.
Enable the SAP DB resource group.
# scswitch -Z -g sapdb-rg |
Moves a resource group to the MANAGED state and brings the resource group online
Specifies that the SAP DB resource group is to be moved to the MANAGED state and brought online
(Optional) Consider configuring your cluster to offload noncritical resource groups.
You might plan to run lower-priority services on a node to which the SAP DB resource can fail over. In this situation, consider using an RGOffload resource to shut down those services when the SAP DB resource fails over to the node. For more information, see “Freeing Node Resources by Offloading Non-critical Resource Groups” in Sun Cluster Data Services Planning and Administration Guide for Solaris OS.
# scrgadm -a -j sapdbrs -g sapdbrg -t SUNW.sapdb \ -x DB_Name=TST -x DB_User=dbadmin \ -x User_Key=DEFAULT -y resource_dependencies=hsprs |
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 1–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 SAP DB database instance that is associated with this resource is named TST.
The UNIX user identity of the OS user who administers the SAP DB database is dbadmin.
The user key of the database user who administers the SAP DB database is DEFAULT.
The SAP DB resource depends on an HAStoragePlus resource that is named hsprs. The creation of the hsprs resource is shown in Example 1–6.