Sun Cluster 3.0 Data Services Installation and Configuration Guide

Changing Resource Type, Resource Group, and Resource Properties

Resource groups and resources have standard configuration properties you can change. Resources also have extension properties, some of which are predefined by the data service developer, which you cannot change. See the individual data service chapters in this document for a list of the extension properties for each data service.

For information on the standard configuration properties for resource groups and resources, see scrgadm(1M).

You can change resource group and resource properties through the Sun Management Center GUI or by using the command line, as shown in this section. For the set of properties you can change through the GUI, see the Sun Management Center online help.

How to Change Resource Type Properties

To complete this procedure, you must supply the following information:

Perform this procedure from any cluster node.

  1. Become superuser on a node in the cluster.

  2. Use the scrgadm command to determine the name of the resource type needed for this procedure.


    # scrgadm -pv
    
  3. Change the resource type property.

    The only property that can be changed for a resource type is Installed_node_list.


    # scrgadm -c -t resource-type-name -h installed-node-list
    
    -c

    Changes the specified resource type property.

    -t resource-type-name

    Specifies the name of the resource type.

    -h installed-node-list

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

  4. Verify that the resource type property has been changed.


    # scrgadm -pv -t resource-type-name
    

Example-Changing a Resource Type Property

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


# scrgadm -c -t SUNW.apache -h phys-schost-1,phys-schost-2 
# scrgadm -pv -t SUNW.apache
Res Type name:                               SUNW.apache
  (SUNW.apache) Res Type description:        Apache Resource Type
  (SUNW.apache) Res Type base directory:     /opt/SUNWscapc/bin
  (SUNW.apache) Res Type single instance:    False
  (SUNW.apache) Res Type init nodes:         All potential masters
  (SUNW.apache) Res Type failover:           False
  (SUNW.apache) Res Type version:            1.0
  (SUNW.apache) Res Type API version:        2
  (SUNW.apache) Res Type installed on nodes: phys-schost1 phys-schost-2
  (SUNW.apache) Res Type packages:           SUNWscapc

How to Change Resource Group Properties

To complete this procedure, you must supply the following information:

This procedure describes the steps for changing resource group properties. For a complete list of resource group properties, see Appendix A, Standard Properties.

Perform this procedure from any cluster node.

  1. Become superuser on a node in the cluster.

  2. Change the resource group property.


    # scrgadm -c -g resource-group-name -y property=new-value
    
    -c

    Changes the specified property.

    -g resource-group-name

    Specifies the name of the resource group.

    -y property

    Specifies the name of the property to change.

  3. Verify that the resource group property has been changed.


    # scrgadm -pv -g resource-group-name
    

Example-Changing a Resource Group Property

This example shows how to change the Failback property for the resource group (ss-rg-1).


# scrgadm -c -g ss-rg-1 -y Failback=True
# scrgadm -pv -g ss-rg-1

How to Change Resource Properties

To complete this procedure, you must supply the following information:

This procedure describes the steps for changing resource properties. For a complete list of resource group properties, see Appendix A, Standard Properties.

Perform this procedure from any cluster node.

  1. Become superuser on a node in the cluster.

  2. Use the scrgadm -pvv command to view the current resource property settings.


    # scrgadm -pvv -j resource-name
    
  3. Change the resource property.


    # scrgadm -c -j resource-name -y property=new-value | -x extension-property=new-value
    
    -c

    Changes the specified property.

    -j resource-name

    Specifies the name of the resource.

    -y property=new-value

    Specifies the name of the standard property to change.

    -x extension-property=new-value

    Specifies the name of the extension property to change. For Sun-supplied data services, see the extension properties documented in the chapters on installing and configuring the individual data services.

  4. Verify that the resource property has been changed.


    # scrgadm pvv -j resource-name
    

Example-Changing a Standard Resource Property

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


# scrgadm -c -j r-1 -y start_timeout=30
# scrgadm -pvv -j r-1

Example-Changing an Extension Resource Property

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


# scrgadm -c -j r-1 -x Log_level=3
# scrgadm -pvv -j r-1