Resource groups and resources have standard configuration properties that you can change. The following procedures describe how to change these properties.
Resources also have extension properties—some of which the data service developer predefines—that you cannot change. See the individual data service chapters in this document for a list of the extension properties for each data service.
See the scrgadm(1M) man page for information on the standard configuration properties for resource groups and resources.
To complete this procedure, you must supply 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 one property—the list of nodes on which resources of this type can be instantiated.
Perform this procedure from any cluster node.
Become superuser on a cluster member.
Run the scrgadm command to determine the name of the resource type that you need for this procedure.
# scrgadm -pv |
Change the resource type property.
The only property that can be changed for a resource type is the Installed_node_list property.
# scrgadm -c -t resource-type -h installed-node-list |
Changes the specified resource type property.
Specifies the name of the resource type.
Specifies the names of nodes on which this resource type is installed.
Verify that the resource type property has been changed.
# scrgadm -pv -t resource-type |
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 |
To complete this procedure, you must supply the following information.
the name of the resource group to change
the name of the resource group property to change and its new value
This procedure describes the steps to change resource group properties. See Appendix A, Standard Properties for a complete list of resource group properties.
Perform this procedure from any cluster node.
Become superuser on a cluster member.
Change the resource group property.
# scrgadm -c -g resource-group -y property=new_value |
Changes the specified property.
Specifies the name of the resource group.
Specifies the name of the property to change.
Verify that the resource group property has been changed.
# scrgadm -pv -g resource-group |
This example shows how to change the Failback property for the resource group (resource-group-1).
# scrgadm -c -g resource-group-1 -y Failback=True # scrgadm -pv -g resource-group-1 |
To complete this procedure, you must supply the following information.
the name of the resource with the property to change
the name of the property to change
This procedure describes the steps to change resource properties. See Appendix A, Standard Properties for a complete list of resource group properties.
Perform this procedure from any cluster node.
Become superuser on a cluster member.
Run the scrgadm -pvv command to view the current resource property settings.
# scrgadm -pvv -j resource |
Change the resource property.
# scrgadm -c -j resource -y property=new_value | -x extension_property=new_value |
Changes the specified property.
Specifies the name of the resource.
Specifies the name of the standard property to change.
Specifies the name of the extension property to change. For data services that Sun supplies, see the extension properties that are documented in the chapters on how to install and configure the individual data services.
Verify that the resource property has been changed.
# scrgadm pvv -j resource |
This example shows how to change the system-defined Start_timeout property for the resource (resource-1).
# scrgadm -c -j resource-1 -y start_timeout=30 # scrgadm -pvv -j resource-1 |
This example shows how to change an extension property (Log_level) for the resource (resource-1).
# scrgadm -c -j resource-1 -x Log_level=3 # scrgadm -pvv -j resource-1 |