scalable_asm_instance_proxy(5)
SUNW.scalable_asm_instance_proxy(5)
- resource type implementation for Sun Java System Application Server EE (HADB) that is mastered on multiple nodes simultaneously
The SUNW.hadb resource type represents the Sun Java System Application Server EE (HADB) component in an Oracle Solaris Cluster configuration.
You must set the following properties on a SUNW.hadb resource by using clresource(1CL).
See r_properties(5) for a complete description of the following resource properties.
180
120
Any time
180
60
Any time
600
Any time
Type string array. This property is a path name set to the Sun Java System Application Server EE (HADB) configuration directory for the HADB database. For example, /etc/opt/SUNWhadb/dbdef/hadb. This property is tunable when the resource is disabled.
Type string. No default. This property contains the name of the HADB database. This property is tunable when the resource is disabled.
Type string. No default. This property is a path name set to the Sun Java System Application Server EE (HADB) application binary location. For example, /opt/SUNWappserver7/SUNWhadb/4. This property is tunable when the resource is disabled.
Type boolean. Default is FALSE. If the Auto_recovery extension property is set to TRUE and the agent is unable to start the database, the HADB data service attempts to recover the database by reinitializing it. The data service reinitializes the database by running the hadbm clear -- fast command, and then running the command specified by the Auto_recovery_command extension property. This property is tunable at any time.
Type string. Default is "". This property specifies the command to be run when the HADB data service recovers the database by reinitializing the database. The HADB data service runs the command after clearing the database. This property is tunable at any time.
Type string. Default is "". This property specifies the file that contains the password to be used for the system user of the database. The hadbm commands that require a password will have the DB_password_file extension property passed as the value of the hadbm --dbpasswordfile command. This argument is needed if the Auto_recovery extension property is set to TRUE because the hadbm –-clear command requires a password. This property is tunable at any time.
The following examples show the creation of a resource group for a Sun Java System Application Server EE (HADB) resource and the creation of a resource in this resource group. The examples that show the creation of a Sun Java System Application Server EE (HADB) resource illustrate alternative configurations of the Sun Java System Application Server EE (HADB) resource.
The examples assume that the SUNWschadb package is already installed.
Example 1 Creating a Resource Group for a Sun Java System Application Server EE (HADB) Resource
This example shows the creation of a resource group for a Sun Java System Application Server EE (HADB) resource on a six-node cluster. Sun Java System Application Server EE (HADB) is mastered on all nodes in the cluster. The resource group is named hadb-rg.
# clresourcegroup create \ -p maximum_primaries=6 -p desired_primaries=6 hadb-rg
Example 2 Creating a Sun Java System Application Server EE (HADB) Resource Without Auto_recovery
This example shows the creation of a Sun Java System Application Server EE (HADB) resource without Auto_recovery that is named hadb-rs. This resource is created in an existing resource group that is named hadb-rg. The creation of the hadb-rg resource group is shown in the example for the creation of a resource group for a Sun Java System Application Server EE (HADB) resource.
# clresource create -g hadb-rg -t SUNW.hadb \ -p confdir_list=/etc/opt/SUNWhadb/dbdef/hadb \ -p hadb_root=/opt/SUNWappserver7/SUNWhadb/4 \-p db_name=hadb hadb-rs
Example 3 Creating a Sun Java System Application Server EE (HADB) Resource With Auto_recovery
This example shows the creation of a Sun Java System Application Server EE (HADB) resource with Auto_recovery that is named hadb-rs. This resource is created in an existing resource group that is named hadb-rg. The creation of the hadb-rg resource group is shown in the example for the creation of a resource group for a Sun Java System Application Server EE (HADB) resource.
# clresource create -g hadb-rg -t SUNW.hadb \ -p confdir_list=/etc/opt/SUNWhadb/dbdef/hadb \ -p hadb_root=/opt/SUNWappserver7/SUNWhadb/4 -p db_name=hadb \ -p auto_recovery=true \ -p auto_recovery_command=/usr/local/etc/create-session-store \ -p db_password_file=/usr/local/etc/hadb-password-file hadb-rs
See attributes(5) for descriptions of the following attributes:
|
clresourcetype(1CL), clresourcegroup(1CL), scha_resource_get(3HA), pmfadm(1M), attributes(5), r_properties(5), scalable_service(5)
Oracle Solaris Cluster Data Service for Sun Java System Application Server EE (HADB), Oracle Solaris Cluster Data Services Planning and Administration Guide