Sun Cluster Data Services Planning and Administration Guide for Solaris OS

Resource Type Properties

The following information describes the resource type properties that are defined by the Sun Cluster software.

The property values are categorized as follows:

Resource type properties cannot be updated by administrative utilities with the exception of Installed_nodes and RT_system. Installed_nodes cannot be declared in the RTR file and can only be set by the cluster administrator. RT_system can be assigned an initial value in the RTR file, and can also be set by the cluster administrator.

Property names are shown first, followed by a description.


Note –

Resource type property names, such as API_version and Boot, are not case sensitive. You can use any combination of uppercase and lowercase letters when you specify property names.


API_version (integer)

The minimum version of the resource management API that is required to support this resource type implementation.

The following information summarizes the maximum API_version that is supported by each release of Sun Cluster.

Before and up to 3.1

2

3.1 10/03

3

3.1 4/04

4

3.1 9/04

5

3.1 8/05

6

3.2

7

Declaring a value for API_version that is greater than 2 in the RTR file prevents that resource type from being installed on a version of Sun Cluster that supports a lower maximum version. For example, if you declare API_version=7 for a resource type, that resource type cannot be installed on any version of Sun Cluster that was released before 3.2.


Note –

If you do not declare this property or set this property to the default value (2), the data service can be installed on any version of Sun Cluster starting with Sun Cluster 3.0.


Category:

Optional

Default:

2

Tunable:

NONE

Boot (string)

An optional callback method: the path to the program that the RGM runs on a node or zone, which joins or rejoins the cluster when a resource of this type is already managed. This method initializes resources of this type as the Init method does.

Category:

Conditional or Explicit

Default:

No default

Tunable:

NONE

Failover (boolean)

TRUE indicates that resources of this type cannot be configured in any group that can be online on multiple nodes or zones at the same time.

The following table shows how to use this resource type property in combination with the Scalable resource property.

Value of the Failover Resource Type

Value of the Scalable Resource

Description 

TRUE

TRUE

Do not specify this illogical combination. 

TRUE

FALSE

Specify this combination for a failover service. 

FALSE

TRUE

Specify this combination for a scalable service that uses a SharedAddress resource for network load balancing.

The Sun Cluster Concepts Guide for Solaris OS describes SharedAddress in more detail.

FALSE

FALSE

Although it is an unusual combination, you can use this combination to select a multi-master service that does not use network load balancing. 

The description of Scalable in the r_properties(5) man page and Chapter 3, Key Concepts for System Administrators and Application Developers, in Sun Cluster Concepts Guide for Solaris OS contain additional information.

Category:

Optional

Default:

FALSE

Tunable:

NONE

Fini (string)

An optional callback method: the path to the program that the RGM runs when a resource of this type is no longer managed by the RGM.

The Fini method usually undoes any initializations that were performed by the Init method.

The RGM executes Fini on each node or zone on which the resource becomes unmanaged when the following situations arise:

  • The resource group that contains the resource is switched to an unmanaged state. In this case, the RGM executes the Fini method on all nodes and zones in the node list.

  • The resource is deleted from a managed resource group. In this case, the RGM executes the Fini method on all nodes and zones in the node list.

  • A node or zone is deleted from the node list of the resource group that contains the resource. In this case, the RGM executes the Fini method on only the deleted node or zone.

A “node list” is either the resource group's Nodelist or the resource type's Installed_nodes list. Whether “node list” refers to the resource group's Nodelist or the resource type's Installed_nodes list depends on the setting of the resource type's Init_nodes property. The Init_nodes property can be set to RG_nodelist or RT_installed_nodes. For most resource types, Init_nodes is set to RG_nodelist, the default. In this case, both the Init and Fini methods are executed on the nodes and zones that are specified in the resource group's Nodelist.

The type of initialization that the Init method performs defines the type of cleanup that the Fini method that you implement needs to perform, as follows:

  • Cleanup of node-specific configuration.

  • Cleanup of cluster-wide configuration.

Category:

Conditional or Explicit

Default:

No default

Tunable:

NONE

Global_zone (boolean)

A Boolean value that, if declared in the RTR file, indicates whether the methods of this resource type execute in the global zone. If this property is set to TRUE, methods execute in the global zone even if the resource group that contains the resource runs in a non-global zone. Set this property to TRUE only for services that can be managed only from the global zone, such as network addresses and file systems.


Caution – Caution –

Do not register a resource type for which the Global_zone property is set to TRUE unless the resource type comes from a known and trusted source. Resource types for which this property is set to TRUE circumvent zone isolation and present a risk.


Category:

Optional

Default:

FALSE

Tunable:

ANYTIME

Init (string)

An optional callback method: the path to the program that the RGM runs when a resource of this type becomes managed by the RGM.

Category:

Conditional or Explicit

Default:

No default

Tunable:

NONE

Init_nodes (enum)

Indicates the nodes or zones on which the RGM is to call the Init, Fini, Boot, and Validate methods. You can set this property to RG_PRIMARIES (just the nodes or zones that can master the resource) or RT_INSTALLED_NODES (all nodes or zones on which the resource type is installed).

Category:

Optional

Default:

RG_PRIMARIES

Tunable:

NONE

Installed_nodes (string_array)

A list of the cluster node or zone names on which the resource type can be run. The RGM automatically creates this property. The cluster administrator can set the value. You cannot declare this property in the RTR file.

Category:

The cluster administrator can configure this property

Default:

All cluster nodes and zones

Tunable:

ANYTIME

Is_logical_hostname (boolean

TRUE indicates that this resource type is some version of the LogicalHostname resource type that manages failover Internet Protocol (IP) addresses.

Category:

Query-only

Default:

No default

Tunable:

NONE

Is_shared_address (boolean)

TRUE indicates that this resource type is some version of the SharedAddress resource type that manages shared Internet Protocol (IP) addresses.

Category:

Query-only

Default:

No default

Tunable:

NONE

Monitor_check (string)

An optional callback method: the path to the program that the RGM runs before performing a monitor-requested failover of a resource of this type. If the monitor-check program exits with nonzero on a node or zone, any attempt to fail over to that node or zone as a result of calling scha_control with the GIVEOVER tag is prevented.

Category:

Conditional or Explicit

Default:

No default

Tunable:

NONE

Monitor_start (string)

An optional callback method: the path to the program that the RGM runs to start a fault monitor for a resource of this type.

Category:

Conditional or Explicit

Default:

No default

Tunable:

NONE

Monitor_stop (string)

A callback method that is required if Monitor_start is set: the path to the program that the RGM runs to stop a fault monitor for a resource of this type.

Category:

Conditional or Explicit

Default:

No default

Tunable:

NONE

Pkglist (string_array)

An optional list of packages that are included in the resource type installation.

Category:

Conditional or Explicit

Default:

No default

Tunable:

NONE

Postnet_stop (string)

An optional callback method: the path to the program that the RGM runs after calling the Stop method of any network-address resources on which a resource of this type depends. After the network interfaces are configured down, this method must perform Stop actions.

Category:

Conditional or Explicit

Default:

No default

Tunable:

NONE

Prenet_start (string)

An optional callback method: the path to the program that the RGM runs before the RGM calls the Start method of any network-address resources on which a resource of this type depends. This method performs Start actions that must be performed before network interfaces are configured.

Category:

Conditional or Explicit

Default:

No default

Tunable:

NONE

Proxy (boolean)

A Boolean value that indicates whether a resource of this type is a proxy resource.

A proxy resource is a Sun Cluster resource that imports the state of a resource from another cluster framework such as Oracle Cluster Ready Services (CRS). Oracle CRS, which is now known as Oracle clusterware CRS, is a platform-independent set of system services for cluster environments.

If set to TRUE, the resource is a proxy resource.

Category:

Optional

Default:

FALSE

Tunable:

ANYTIME

Resource_list (string_array)

The list of all resources of the resource type. The cluster administrator does not set this property directly. Rather, the RGM updates this property when the cluster administrator adds or removes a resource of this type to or from any resource group.

Category:

Query-only

Default:

Empty list

Tunable:

NONE

Resource_type (string)

The name of the resource type. To view the names of the currently registered resource types, use:

resourcetype show +

In Sun Cluster 3.1 and Sun Cluster 3.2, a resource type name includes the version, which is mandatory:

vendor-id.resource-type:rt-version

The three components of the resource type name are properties that are specified in the RTR file as vendor-id, resource-type, and rt-version. The resourcetype command inserts the period (.) and colon (:) delimiters. The rt-version suffix of the resource type name is the same value as the RT_version property. To ensure that the vendor-id is unique, use the stock symbol of the company that is creating the resource type. Resource type names that were created before Sun Cluster 3.1 continue to use the syntax:

vendor-id.resource-type

Category:

Required

Default:

Empty string

Tunable:

NONE

RT_basedir (string)

The directory path that is used to complete relative paths for callback methods. This path must be set to the directory in which the resource type packages are installed. The path must be a complete path, that is, it must start with a forward slash (/).

Category:

Required unless all method path names are absolute

Default:

No default

Tunable:

NONE

RT_description (string)

A brief description of the resource type.

Category:

Conditional

Default:

Empty string

Tunable:

NONE

RT_system (boolean)

If the RT_system property is TRUE for a resource type, you cannot delete the resource type (resourcetype unregister resource-type-name). This property prevents the accidental deletion of resource types, such as LogicalHostname, that are used to support the cluster infrastructure. However, you can apply the RT_system property to any resource type.

To delete a resource type whose RT_system property is set to TRUE, you must first set the property to FALSE. Use care when you delete a resource type whose resources support cluster services.

Category:

Optional

Default:

FALSE

Tunable:

ANYTIME

RT_version (string)

Starting with the Sun Cluster 3.1 release, a mandatory version string of this resource type implementation. This property was optional in Sun Cluster 3.0. The RT_version is the suffix component of the full resource type name.

Category:

Conditional/Explicit or Required

Default:

No default

Tunable:

NONE

Single_instance (boolean)

If TRUE, indicates that only one resource of this type can exist in the cluster.

Category:

Optional

Default:

FALSE

Tunable:

NONE

Start (string)

A callback method: the path to the program that the RGM runs to start a resource of this type.

Category:

Required unless the RTR file declares a Prenet_start method

Default:

No default

Tunable:

NONE

Stop (string)

A callback method: the path to the program that the RGM runs to stop a resource of this type.

Category:

Required unless the RTR file declares a Postnet_stop method

Default:

No default

Tunable:

NONE

Update (string)

An optional callback method: the path to the program that the RGM runs when properties of a running resource of this type are changed.

Category:

Conditional or Explicit

Default:

No default

Tunable:

NONE

Validate (string)

An optional callback method: the path to the program that the RGM runs to check values for properties of resources of this type.

Category:

Conditional or Explicit

Default:

No default

Tunable:

NONE

Vendor_ID (string)

See the Resource_type property.

Category:

Conditional

Default:

No default

Tunable:

NONE