Sun Cluster Data Services Planning and Administration Guide for Solaris OS

ProcedureHow to Change Resource Type Properties

Note –

Perform this procedure from any cluster node.

Before You Begin

Ensure that you have the following information.

  1. On a cluster member, become superuser or assume a 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 Resource Type Properties.

    # 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 2–19 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 global-cluster voting nodes of (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
  RT_description:                                  Apache Web Server on Sun Cluster
  RT_version:                                      4
  API_version:                                     2
  RT_basedir:                                      /opt/SUNWscapc/bin
  Single_instance:                                 False
  Proxy:                                           False
  Init_nodes:                                      All potential masters
  Installed_nodes:                                 All
  Failover:                                        False
  Pkglist:                                         SUNWscapc
  RT_system:                                       False