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 Properties

This procedure explains how to change extension properties and standard properties of a resource.


Note -  You can also use the Oracle Solaris Cluster Manager browser interface to edit resource properties. Click Resource Groups, click the resource group to which the resource belongs, click the resource to go to its page, click the Properties tab, then click Edit to access the list of editable properties. For Oracle Solaris Cluster Manager log-in instructions, see How to Access Oracle Solaris Cluster Manager in Administering an Oracle Solaris Cluster 4.4 Configuration.
  • For a description of standard resource properties, see the r_properties(7) man page.

  • For a description of the extension properties of a resource, see the documentation for the resource's resource type.


Note -  Perform this procedure from any cluster node.

Before You Begin

Ensure that you have the following information.

  • The name of the resource with the property to change

  • The name of the property to change

  1. On a cluster member, assume the root role that provides solaris.cluster.modify RBAC authorization.
  2. View the current resource property settings.
    # clresource show -v resource
  3. Change the resource property.
    # clresource set -p standard-property=new-value | -p "extension-property \
    [{node-specifier}]"=new-value resource
    –p standard-property=new-value

    Specifies the name of the standard property to change.

    –p "extension-property[{node-specifier}]"=new-value

    Specifies the name of the extension property to change.

    The node-specifier is an optional qualifier to the –p and –x options. This qualifier indicates that the extension property or properties on only the specified node or nodes are to be set when the resource is created. The specified extension properties on other nodes in the cluster are not set. If you do not include node-specifier, the specified extension properties on all nodes in the cluster are set. You can specify a node name or a node identifier for node-specifier. Examples of the syntax of node-specifier include the following:

    -p "myprop{phys-schost-1}"

    The braces ({ }) indicate that you are setting the specified extension property on only node phys-schost-1. For most shells, the double quotation marks (") are required.


    Note -  The extension property that you specify with node-specifier must be declared in the RTR file as a per-node property.
    resource

    Specifies the name of the resource.

  4. Verify that the resource property has been changed.
    # clresource show -v resource
Example 24  Changing a Standard Resource Property

This example shows how to change the system-defined Start_timeout property for the resource (resource-1).

# clresource set -p start_timeout=30 resource-1
# clresource show -v resource-1
Example 25  Changing an Extension Resource Property

This example shows how to change an extension property (Log_level) for the resource (resource-1).

# clresource set -p Log_level=3 resource-1
# clresource show -v resource-1