Registering a Resource Type

A resource type provides specification of common properties and callback methods that apply
to all of the resources of the given type. You must register a
resource type before you create a resource of that type. For details
about resource types, see Chapter 1, Planning for Oracle Solaris Cluster Data Services.

An administrator can register a resource type for a zone cluster by specifying
a resource type registration (RTR) file that resides inside the zone cluster. In
other words, the file must be under the zone root path. The RTR
file inside the zone cluster cannot have the Global_zone property set to TRUE.
The RTR file inside the zone cluster cannot be of type RTR_LOGICAL_HOSTNAME or
RTR_SHARED_ADDRESS.

Note - If you want to register a resource type in a zone cluster
that uses the Trusted Extensions feature of Oracle Solaris, and you want to
set the Global_zone resource-type property to TRUE, you must place the RTR file in
the /usr/cluster/lib/rgm/rtreg directory of the global cluster.

The administrator can also register a resource type for a zone cluster from
the location /usr/cluster/lib/rgm/rtreg. The administrator in the zone cluster cannot modify any RTR
files in this directory. This enables registering system resource types for a zone
cluster, even when the RTR file has one of the properties that cannot
be set directly from the zone cluster. This process provides a secure way
of delivering system resource types.

How to Register a Resource Type

Note - Perform this procedure from any cluster node.

Before You Begin

Ensure that you have the name for the resource type that you
plan to register. The resource type name is an abbreviation for the data
service name. For information about resource type names of data services that are
supplied with Oracle Solaris Cluster, see the release notes for your release of
Oracle Solaris Cluster.

On a cluster member, become superuser or assume a role that provides solaris.cluster.modify
RBAC authorization.

Register the resource type.

# clresourcetype registerresource-type

resource-type

Specifies name of the resource type to add. See the release notes for your release of Oracle Solaris Cluster to determine the predefined name to supply.

Verify that the resource type has been registered.

# clresourcetype show

Example 2-1 Registering a Resource Type

The following example registers the SUNW.krb5 resource type, which represents the Oracle iPlanet
Web Server application in an Oracle Solaris Cluster configuration.