Home | History | Annotate | Download | only in man5
 te
CDDL HEADER START

The contents of this file are subject to the terms of the
Common Development and Distribution License (the "License").
You may not use this file except in compliance with the License.

You can obtain a copy of the license at CDDL.txt
or http://www.opensolaris.org/os/licensing.
See the License for the specific language governing permissions
and limitations under the License.

When distributing Covered Code, include this CDDL HEADER in each
file and include the License file at CDDL.txt.
If applicable, add the following below this CDDL HEADER, with the
fields enclosed by brackets "[]" replaced with your own identifying
information: Portions Copyright [yyyy] [name of copyright owner]

CDDL HEADER END
Copyright 2005 Sun Microsystems, Inc. All
rights reserved. Use is subject to license terms.
SUNW.Proxy_SMF_failover 5 "15 March 2006" "Sun Cluster 3.2" "Sun Cluster Miscellaneous"
NAME
SUNW.Proxy_SMF_failover, Proxy_SMF_failover - resource type for proxying failover SMF services.
DESCRIPTION

The SUNW.Proxy_SMF_failover resource type represents the proxy for failover of Service Management Facility (SMF) services.

Standard properties and extension properties that are defined for the SUNW.proxysmffailover resource type are described in the following subsections. To set these properties for an instance of the SUNW.Proxy_SMF_failover resource type, use the clresource command (clresource(1CL)).

"Standard Properties"

See r_properties(5) for a description of the following resource properties.

.na Start_timeout .ad Default: 3600 Minimum: 60

.na Stop_timeout .ad Default: 3600 Minimum: 60

.na Init_timeout .ad Default: 3600 Minimum: 60

.na Boot_timeout .ad Default: 3600 Minimum: 60

.na Fini_timeout .ad Default: 3600 Minimum: 60

.na Validate_timeout .ad Default: 3600 Minimum: 60

.na Failover_mode .ad Default: SOFT Tunable: Anytime

.na R_description .ad Default: "" Tunable: Anytime

.na Retry_count .ad Default: 2 Minimum: 0 Maximum: 2 Tunable: Anytime

.na Retry_interval .ad Default: 300 Tunable: Anytime

.na Through_probe_interval .ad Default: 60 Tunable: Anytime

"Extension Properties"

.na Proxied_service_instances .ad Includes information about the SMF services to be proxied by the resource. Its value is the path to a file that contains all the proxied SMF services. Each line in the file is dedicated to one SMF service and specifies svc fmri and the path to the corresponding service manifest file. For example,if the resource has to manage two services, restarter_svc_test_1:default and restarter_svc_test_2:default, the file should include the following two lines:

<svc:/system/cluster/restarter_svc_test_1:default>,
 svc:/system/cluster/restarter_svc_test_1:default>,
 </var/svc/manifest/system/cluster/restarter_svc_test_1.xml>

<svc:/system/cluster/restarter_svc_test_2:default>,
 </var/svc/manifest/system/cluster/restarter_svc_test_2.xml>

Note - The entries above should each appear on a single line. They are broken into multiple lines here for legibility. Default: "" Tunable: When disabled

"Example"

This example shows how to register the SUNW.Proxy_SMF_failover resource type, create a resource group for the application, create the failover application resource, manage the resource group, and enable a resource.

Register the resource type:

# clresourcetype -f <path-to-rtrfile> SUNW.Proxy_SMF_failover

Create a resource group called rg1 for the application :

# clresourcegroup create rg1

Create the failover application resource called myfailoverres:

# clresource create -t SUNW.Proxy_SMF_failover -g rg1 \
-x proxied_service_instances="/usr/local/app/svc myfailoverres"

where /usr/local/app/svc is a text file.

Manage the resource group rg1:

# clresourcegroup manage rg1

Enable the myfailoverres resource:

# clresource enable myfailoverres

Use the following command to check the status of the application:

# clresource status
SEE ALSO

pmfadm(1M), scha_resource_get(1HA), clresourcetype(1CL), clresource(1CL), clresourcegroup(1CL), attributes(5), r_properties(5)

Sun Cluster Data Services Planning and Administration Guide for Solaris OS