Go to main content

Planning and Administering Data Services for Oracle® Solaris Cluster 4.4

Exit Print View

Updated: November 2019
 
 

How to Change Resource Type Properties


Note -  Perform this procedure from any cluster node.

Before You Begin

Ensure that you have the following information.

  • The name of the resource type to change.

  • The name of the resource type property to change. For resource types, you can change only certain properties. To determine whether you can change a property, see the Tunable entry for the property in the rt_properties(7) man page.


    Note -  You cannot change the Installed_nodes property explicitly. To change this property, specify the –n installed-node-list option of the clresourcetype command.
  1. On a cluster member, assume the root role that provides solaris.cluster.modify RBAC authorization.
  2. Run the clresourcetype command to determine the name of the resource type that you need for this procedure.
    # clresourcetype show -v
  3. Change the resource type property.

    For resource types, you can change only certain properties. To determine whether you can change a property, see the Tunable entry for the property in the rt_properties(7) man page.

    # clresourcetype set -n installed-node-list \
    [-p property=new-value]resource-type
    –n installed-node-list

    Specifies the names of nodes on which this resource type is installed.

    –p property=new-value

    Specifies the name of the standard property to change and the new value of the property.

    You cannot change the Installed_nodes property explicitly. To change this property, specify the –n installed-node-list option of the clresourcetype command.

  4. Verify that the resource type property has been changed.
    # clresourcetype show resource-type
Example 22  Changing a Resource Type Property

This example shows how to change the SUNW.apache property to define that this resource type is installed on the cluster nodes phys-schost-1 and phys-schost-2.

# clresourcetype set -n phys-schost-1,phys-schost-2 SUNW.apache
# clresourcetype show SUNW.apache

Resource Type:                                   SUNW.apache:4.2
RT_description:                                  Apache Web Server on Oracle Solaris Cluster
RT_version:                                      4.2
API_version:                                     2
RT_basedir:                                      /opt/SUNWscapc/bin
Single_instance:                                 False
Proxy:                                           False
Init_nodes:                                      All potential masters
Installed_nodes:                                 All
Failover:                                        False
Pkglist:                                         <NULL>
RT_system:                                       False
Global_zone:                                     False