Skip Navigation Links | |
Exit Print View | |
![]() |
Oracle Solaris Cluster Reference Manual Oracle Solaris Cluster 4.1 |
- resource-type properties
The following information describes the resource-type properties that are defined by Oracle Solaris Cluster software. These descriptions have been developed for data service developers. For information about a particular data service, see the man page for that data service.
The property requires an explicit value in the Resource Type Registration (RTR) file. Otherwise, the object to which the property belongs cannot be created. A blank or the empty string is not allowed as a value.
To exist, the property must be declared in the RTR file. Otherwise, the RGM does not create the property, and the property is not available to administrative utilities. A blank or the empty string is allowed. If the property is declared in the RTR file but no value is specified, the RGM supplies a default value.
To exist, the property must be declared in the RTR file with an explicit value. Otherwise, the RGM does not create the property and the property is not available to administrative utilities. A blank or the empty string is not allowed.
The property can be declared in the RTR file. If the property is not declared in the RTR file, the RGM creates it and supplies a default value. If the property is declared in the RTR file but no value is specified, the RGM supplies the same default value as if the property were not declared in the RTR file.
The property cannot be set directly by an administrative utility. The property is not set in the RTR file. The value of the property is provided for information only.
Note - 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.
A resource type is defined by a resource-type registration file that specifies standard and extension property values for the resource type.
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.
The version of the resource management API that is used by this resource-type implementation.
The following information summarizes the maximum API_version that is supported by each release of Oracle Solaris Cluster software.
2
3
4
5
6
7
8
9
10
11
12
13
20
21
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 Oracle Solaris Cluster software 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 the cluster software that was released before the Sun Cluster 3.2 release.
Optional
2
Never
An optional callback method: the path to the program that the RGM invokes on a node when the following conditions occur:
The node joins or rejoins the cluster.
The resource group that contains the resource of this type is managed.
This method is expected to initialize resources of this type as the Init method does.
Conditional/Explicit
None
Never
If you set this property to TRUE, resources of this type cannot be configured in any group that can be online on multiple nodes at the same time.
You use this resource-type property in combination with the Scalable resource property, as follows:
|
The description for Scalable in r_properties(5) and Chapter 3, Key Concepts for System Administrators and Application Developers, in Oracle Solaris Cluster Concepts Guide contain additional information.
Optional
FALSE
Never
An optional callback method: the path to the program that the RGM invokes when a resource of this type is removed from RGM management.
Conditional/Explicit
No default
Never
If you set this property to TRUE for a resource type, its methods execute in the global zone under all circumstances. If you set this property to TRUE, even if the resource group is configured in a zone cluster, the method executes in the 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 - 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. Do not set the Global_zone property to TRUE in an RTR file that is located in a zone cluster. All resource types for which this property is set to TRUE must be located in the global-cluster global zone. |
The methods of a resource that is configured to start in a non-global zone and whose Global_zone property is set to TRUE are always run in the global zone. Such a resource, when configured in a non-global zone, does not benefit from the CPU shares and dedicated processor set configuration. This resource does not benefit even if you set the RG_slm_type property to AUTOMATED. Oracle Solaris Cluster software treats such a resource as though it is located in a resource group whose RG_slm_type property is set to MANUAL.
Because methods for resource types for which the Global_zone property is set to TRUE run in the global zone, the RGM does not immediately consider these resource types offline when a non-global zone dies. In fact, the RGM runs methods such as Monitor_stop, Stop, and Postnet_stop on these resource types, which include LogicalHostname, SharedAddress, and HAStoragePlus . However, the RGM considers the resources for which the Global_zone property is set to FALSE to be offline when a non-global zone dies. The RGM cannot run stopping methods on such resources because the methods would have to run in the non-global zone.
A resource type that declares Global_zone=TRUE might also declare the Global_zone_override resource property. In that case, the value of the Global_zone_override property supersedes the value of the Global_zone property for that resource. For more information about the Global_zone_override property, see the r_properties(5) man page.
Optional
FALSE
Never
An optional callback method: the path to the program that the RGM invokes when a resource of this type becomes managed by the RGM.
Conditional/Explicit
No default
Never
Indicates the nodes 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 that can master the resource) or RT_installed_nodes (all nodes on which the resource type is installed).
Optional
RG_primaries
Never
A list of the names of nodes on which the resource type is allowed to run. The RGM automatically creates this property. The cluster administrator can set the value. You cannot declare this property in the RTR file.
Can be configured by the cluster administrator
All cluster nodes
Any time
TRUE indicates that this resource type is some version of the LogicalHostname resource type that manages failover IP addresses.
Query-only
No default
Never
TRUE indicates that this resource type is some version of the SharedAddress resource type that manages shared IP (Internet Protocol) addresses.
Query-only
No default
Never
An optional callback method: the path to the program that the RGM invokes before doing a monitor-requested failover of a resource of this type. If the monitor-check program exits with nonzero on a node, any attempt to fail over to that node is prevented.
Conditional/Explicit
No default
Never
An optional callback method: the path to the program that the RGM invokes to start a fault monitor for a resource of this type.
Conditional/Explicit
No default
Never
A callback method that is required if Monitor_start is set: the path to the program that the RGM invokes to stop a fault monitor for a resource of this type.
Conditional/Explicit
No default
Never
An optional list of packages that are included in the resource-type installation.
Conditional/Explicit
No default
Never
An optional callback method: the path to the program that the RGM invokes after calling the Stop method of any network-address resources on which a resource of this type depends. This method is expected to perform Stop actions that must be performed after network interfaces are configured down.
Conditional/Explicit
No default
Never
An optional callback method: the path to the program that the RGM invokes before calling the Start method of any network-address resources on which a resource of this type depends. This method is expected to perform Start actions that must be performed before network interfaces are configured up.
Conditional/Explicit
No default
Never
Indicates whether a resource of this type is a proxy resource.
A proxy resource is an Oracle Solaris Cluster resource that imports the state of a resource from another cluster framework such as Oracle Clusterware. Oracle Clusterware is a platform-independent set of system services for cluster environments.
A proxy resource type uses the Prenet_start method to start a daemon that monitors the state of the external (proxied) resource. The Postnet_stop method stops the monitoring daemon. The monitoring daemon issues the scha_control command with the CHANGE_STATE_ONLINE or the CHANGE_STATE_OFFLINE tag to set the proxy resource's state to Online or to Offline, respectively. The scha_control() function similarly uses the SCHA_CHANGE_STATE_ONLINE and SCHA_CHANGE_STATE_OFFLINE tags.
If you set this property to TRUE, the resource is a proxy resource.
Optional
FALSE
Never
The list of all resources of the resource type. The administrator does not set this property directly. Rather, the RGM updates this property when the administrator adds or removes a resource of this type to or from any resource group.
Query-only
Empty list
Never
The name of the resource type. To view the names of the currently registered resource types, type:
clresourcetype list
A resource-type name includes the version, which is mandatory:
vendor_id.resource_type: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 clresourcetype 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, the recommended approach is to use the stock symbol for the company creating the resource type.
Required
Empty string
Never
The directory path that is used to complete relative paths for callback methods. This path is expected to be set to the installation location for the resource-type packages. The path must be a complete path, that is, the path must start with a forward slash (/). This property is not required if all the method path names are absolute.
Required, unless all method path names are absolute
No default
Never
A brief description of the resource type.
Conditional
Empty string
Never
If you set this property to TRUE for a resource type, you cannot delete the resource type (clresourcetype unregister resource-type-name). This property is intended to help prevent 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.
Optional
FALSE
Any time
A mandatory version string that identifies this resource-type implementation. The RT_version is the suffix component of the full resource-type name.
Conditional/Explicit or Required
No default
Never
If you set this property to TRUE, the RGM allows only one resource of this type to exist in the cluster.
Optional
FALSE
Never
A callback method: the path to the program that the RGM invokes to start a resource of this type.
Required, unless the RTR file declares a Prenet_start method
No default
Never
A callback method: the path to the program that the RGM invokes to stop a resource of this type.
Required, unless the RTR file declares a Postnet_stop method
No default
Never
An optional callback method: the path to the program that the RGM invokes when properties of a running resource of this type are changed.
Conditional/Explicit
No default
Never
An optional callback method: the path to the program that the RGM invokes to check values for properties of resources of this type.
Conditional/Explicit
No default
Never
See the Resource_type property.
Conditional
No default
Never
clresource(1CL), clresourcegroup(1CL), clresourcetype(1CL), rt_reg(4), SUNW.HAStoragePlus(5), property_attributes(5), r_properties(5), rg_properties(5), scha_control(1HA), scha_control(3HA).
Oracle Solaris Cluster Concepts Guide, Oracle Solaris Cluster Data Services Developer’s Guide, Oracle Solaris Cluster Data Services Planning and Administration Guide