Skip Navigation Links | |
Exit Print View | |
Oracle Solaris Cluster Data Services Planning and Administration Guide Oracle Solaris Cluster 4.1 |
1. Planning for Oracle Solaris Cluster Data Services
2. Administering Data Service Resources
Overview of Tasks for Administering Data Service Resources
Configuring and Administering Oracle Solaris Cluster Data Services
How to Register a Resource Type
How to Install and Register an Upgrade of a Resource Type
How to Migrate Existing Resources to a New Version of the Resource Type
How to Unregister Older Unused Versions of the Resource Type
How to Downgrade a Resource to an Older Version of Its Resource Type
How to Create a Failover Resource Group
How to Create a Scalable Resource Group
Configuring Failover and Scalable Data Services on Shared File Systems
How to Configure a Failover Application Using the ScalMountPoint Resource
How to Configure a Scalable Application Using the ScalMountPoint Resource
Tools for Adding Resources to Resource Groups
How to Add a Logical Hostname Resource to a Resource Group by Using the clsetup Utility
How to Add a Logical Hostname Resource to a Resource Group Using the Command-Line Interface
How to Add a Shared Address Resource to a Resource Group by Using the clsetup Utility
How to Add a Shared Address Resource to a Resource Group Using the Command-Line Interface
How to Add a Failover Application Resource to a Resource Group
How to Add a Scalable Application Resource to a Resource Group
Bringing Resource Groups Online
How to Bring Resource Groups Online
Switching Resource Groups to Preferred Primaries
How to Switch Resource Groups to Preferred Primaries
How to Quiesce a Resource Group
How to Quiesce a Resource Group Immediately
Suspending and Resuming the Automatic Recovery Actions of Resource Groups
Immediately Suspending Automatic Recovery by Killing Methods
How to Suspend the Automatic Recovery Actions of a Resource Group
How to Suspend the Automatic Recovery Actions of a Resource Group Immediately
How to Resume the Automatic Recovery Actions of a Resource Group
Disabling and Enabling Resource Monitors
How to Disable a Resource Fault Monitor
How to Enable a Resource Fault Monitor
How to Remove a Resource Group
Switching the Current Primary of a Resource Group
How to Switch the Current Primary of a Resource Group
Disabling Resources and Moving Their Resource Group Into the UNMANAGED State
How to Disable a Resource and Move Its Resource Group Into the UNMANAGED State
Displaying Resource Type, Resource Group, and Resource Configuration Information
Changing Resource Type, Resource Group, and Resource Properties
How to Change Resource Type Properties
How to Change Resource Group Properties
How to Change Resource Properties
How to Change Resource Dependency Properties
How to Modify a Logical Hostname Resource or a Shared Address Resource
Clearing the STOP_FAILED Error Flag on Resources
How to Clear the STOP_FAILED Error Flag on Resources
Clearing the Start_failed Resource State
How to Clear a Start_failed Resource State by Switching Over a Resource Group
How to Clear a Start_failed Resource State by Restarting a Resource Group
How to Clear a Start_failed Resource State by Disabling and Enabling a Resource
Upgrading a Preregistered Resource Type
Information for Registering the New Resource Type Version
Information for Migrating Existing Instances of the Resource Type
Reregistering Preregistered Resource Types After Inadvertent Deletion
How to Reregister Preregistered Resource Types After Inadvertent Deletion
Adding or Removing a Node to or From a Resource Group
Adding a Node to a Resource Group
How to Add a Node to a Scalable Resource Group
How to Add a Node to a Failover Resource Group
Removing a Node From a Resource Group
How to Remove a Node From a Scalable Resource Group
How to Remove a Node From a Failover Resource Group
How to Remove a Node From a Failover Resource Group That Contains Shared Address Resources
Example - Removing a Node From a Resource Group
Synchronizing the Startups Between Resource Groups and Device Groups
Managed Entity Monitoring by HAStoragePlus
Troubleshooting Monitoring for Managed Entities
Additional Administrative Tasks to Configure HAStoragePlus Resources for a Zone Cluster
How to Set Up the HAStoragePlus Resource Type for New Resources
How to Set Up the HAStoragePlus Resource Type for Existing Resources
Configuring an HAStoragePlus Resource for Cluster File Systems
Sample Entries in /etc/vfstab for Cluster File Systems
How to Set Up the HAStoragePlus Resource for Cluster File Systems
How to Delete an HAStoragePlus Resource Type for Cluster File Systems
Enabling Highly Available Local File Systems
Configuration Requirements for Highly Available Local File Systems
Format of Device Names for Devices Without a Volume Manager
Sample Entries in /etc/vfstab for Highly Available Local File Systems
How to Set Up the HAStoragePlus Resource Type by Using the clsetup Utility
How to Delete an HAStoragePlus Resource That Makes a Local Solaris ZFS Highly Available
Sharing a Highly Available Local File System Across Zone Clusters
Modifying Online the Resource for a Highly Available Local File System
How to Add File Systems Other Than Solaris ZFS to an Online HAStoragePlus Resource
How to Remove File Systems Other Than Solaris ZFS From an Online HAStoragePlus Resource
How to Add a Solaris ZFS Storage Pool to an Online HAStoragePlus Resource
How to Remove a Solaris ZFS Storage Pool From an Online HAStoragePlus Resource
Changing a ZFS Pool Configuration That is Managed by an HAStoragePlus Resource
How to Change a ZFS Pool Configuration That is Managed by an Online HAStoragePlus Resource
How to Recover From a Fault After Modifying the Zpools Property of an HAStoragePlus Resource
Changing the Cluster File System to a Local File System in an HAStoragePlus Resource
How to Change the Cluster File System to Local File System in an HAStoragePlus Resource
Upgrading the HAStoragePlus Resource Type
Information for Registering the New Resource Type Version
Information for Migrating Existing Instances of the Resource Type
Distributing Online Resource Groups Among Cluster Nodes
Enforcing Collocation of a Resource Group With Another Resource Group
Specifying a Preferred Collocation of a Resource Group With Another Resource Group
Distributing a Set of Resource Groups Evenly Among Cluster Nodes
Specifying That a Critical Service Has Precedence
Delegating the Failover or Switchover of a Resource Group
Combining Affinities Between Resource Groups
Zone Cluster Resource Group Affinities
Configuring the Distribution of Resource Group Load Across Nodes
How to Configure Load Limits for a Node
How to Set Priority for a Resource Group
How to Set Load Factors for a Resource Group
How to Set Preemption Mode for a Resource Group
How to Concentrate Load Onto Fewer Nodes in the Cluster
Enabling Oracle Solaris SMF Services to Run With Oracle Solaris Cluster
Encapsulating an SMF Service Into a Failover Proxy Resource Configuration
Encapsulating an SMF Service Into a Multi-Master Proxy Resource Configuration
Encapsulating an SMF Service Into a Scalable Proxy Resource Configuration
Tuning Fault Monitors for Oracle Solaris Cluster Data Services
Setting the Interval Between Fault Monitor Probes
Setting the Timeout for Fault Monitor Probes
Defining the Criteria for Persistent Faults
Complete Failures and Partial Failures of a Resource
Dependencies of the Threshold and the Retry Interval on Other Properties
System Properties for Setting the Threshold and the Retry Interval
Oracle Solaris Cluster defines standard properties for configuring resource types, resource groups, and resources. These standard properties are described in the following sections:
Resources also have extension properties, which are predefined for the data service that represents the resource. For a description of the extension properties of a data service, see the documentation for the data service.
To determine whether you can change a property, see the Tunable entry for the property in the description of the property.
The following procedures describe how to change properties for configuring resource types, resource groups, and resources.
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(5) 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.
# clresourcetype show -v
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(5) man page.
# clresourcetype set -n installed-node-list \ [-p property=new-value]resource-type
Specifies the names of nodes on which this resource type is installed.
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.
# 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 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
This procedure explains how to change resource group properties. For a description of resource group properties, see the rg_properties(5) man page.
Note - Perform this procedure from any cluster node.
Before You Begin
Ensure that you have the following information.
The name of the resource group to change
The name of the resource group property to change and its new value
# clresourcegroup set -p property=new-value resource-group
Specifies the name of the property to change
Specifies the name of the resource group
# clresourcegroup show resource-group
Example 2-20 Changing a Resource Group Property
This example shows how to change the Failback property for the resource group (resource-group-1).
# clresourcegroup set-p Failback=True resource-group-1 # clrsourcegroup show resource-group-1
This procedure explains how to change extension properties and standard properties of a resource.
For a description of standard resource properties, see the r_properties(5) 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
# clresource show -v resource
# clresource set -p standard-property=new-value | -p "extension-property \ [{node-specifier}]"=new-value resource
Specifies the name of the standard property to change.
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.
Specifies the name of the resource.
# clresource show -v resource
Example 2-21 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 2-22 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
This procedure explains how to set a resource dependency property. The RGM supports dependencies of one resource upon another. You can specify per-node resource dependencies, which might differ for each per-node instance of a resource. Per-node instances are instances of the resource that are online simultaneously (in a multi-mastered resource group) or disjointly in time (in a failover resource group) on different nodes. For a description of resource properties, see the r_properties(5) man page.
You can use the clsetup utility or the CLI to set a resource dependency. The following procedure shows the steps for the clsetup utility.
# clsetup
The clsetup main menu is displayed.
Note - If you want to use the CLI to set a per-node dependency on a subset of cluster nodes, specify each per-node dependency in the following form: resourcename@nodename.
The Resource Group menu is displayed.
The Change Properties of a Resource screen provides a description of this task.
A menu of options for this task is displayed.
A menu of options for this task is displayed.
Only those standard properties that can be changed while the resource is in this state are shown. You might have to disable the resource in order to change certain properties. Check the r_properties(5) man page for more information on setting standard resource properties.
You can choose to change the resource_dependencies, resource_dependencies_weak, resource_dependencies_restart, or resource_dependencies_offline_restart properties.
The current property name, type, description, and value are displayed.
Specify each resource on which this resource is to depend using the following format: resource-name, resource-name{qualifier}, or resource-name@node. See the text on the screen for more information.
For example, you can change the value of the resource_dependencies property from rs1 to rs1@mynode1,rs2@mynode2,rs3.
The new value you typed appears in the Current Setting column for the property.
Example 2-23 Changing Resource Dependency Properties
The following example shows how to use the clresource command to set a per-node resource dependency that is dependent on two different logical hostname resources. The example uses a scalable resource called gds-rs and sets the dependency of gds-rs on trancos-3-rs on ptrancos1 and trancos-4-rs on ptrancos2.
ptrancos1# clresource set -p resource_dependencies=trancos-3-rs@ptrancos1, \ trancos-4-rs@ptrancos2 gds-rs ptrancos1# clresource show -p resource_dependencies gds-rs === Resources === Resource: gds-rs Resource_dependencies: trancos-3-rs@ptrancos1 trancos-4-rs@ptrancos2 --- Standard and extension properties ---
Example 2-24 Viewing Resource Dependency Properties
The following example shows how to use the scha_resource_get command to retrieve a per-node resource dependency that is dependent on two different logical hostname resources. To set a per-node resource dependency, you must use the clresource set command. The example uses a scalable resource called gds-rs and sets the dependency of gds-rs on trancos-3-rs on ptrancos1 and trancos-4-rs on ptrancos2.
From the ptrancos1 node:
ptrancos1(/root)$ scha_resource_get -O RESOURCE_DEPENDENCIES -R gds-rs trancos-3-rs ptrancos1(/root)$ scha_resource_get -O RESOURCE_DEPENDENCIES_NODE -R gds-rs ptrancos1 trancos-3-rs ptrancos1(/root)$ scha_resource_get -O RESOURCE_DEPENDENCIES_NODE -R gds-rs ptrancos2 trancos-4-rs ptrancos1(/root)$ scha_resource_get -Q -O RESOURCE_DEPENDENCIES -R gds-rs trancos-3-rs@ptrancos1 trancos-4-rs@ptrancos2 ptrancos1(/root)$ scha_resource_get -O NETWORK_RESOURCES_USED -R gds-rs trancos-3-rs
From the ptrancos2 node:
ptrancos2(/root)$ scha_resource_get -O RESOURCE_DEPENDENCIES -R gds-rs trancos-4-rs ptrancos2(/root)$ scha_resource_get -O RESOURCE_DEPENDENCIES_NODE -R gds-rs ptrancos1 trancos-3-rs ptrancos2(/root)$ scha_resource_get -O RESOURCE_DEPENDENCIES_NODE -R gds-rs ptrancos2 trancos-4-rs ptrancos2(/root)$ scha_resource_get -Q -O RESOURCE_DEPENDENCIES -R gds-rs trancos-3-rs@ptrancos1 trancos-4-rs@ptrancos2 ptrancos2(/root)$ scha_resource_get -O NETWORK_RESOURCES_USED -R gds-rs trancos-4-rs
By default, logical hostname resources and shared address resources use name services for name resolution. You might configure a cluster to use a name service that is running on the same cluster. During the failover of a logical hostname resource or a shared address resource, a name service that is running on the cluster might also be failing over. If the logical hostname resource or the shared address resource uses the name service that is failing over, the resource fails to fail over.
Note - Configuring a cluster to use a name server that is running on the same cluster might impair the availability of other services on the cluster.
To prevent such a failure to fail over, modify the logical hostname resource or the shared address resource to bypass name services. To modify the resource to bypass name services, set the CheckNameService extension property of the resource to false. You can modify the CheckNameService property at any time.
Note - If your version of the resource type is earlier than 2, you must upgrade the resource type before you attempt to modify the resource. For more information, see Upgrading a Preregistered Resource Type.
# clresource set -p CheckNameService=false resource
Sets the CheckNameService extension property of the resource to false.
Specifies the name of the logical hostname resource or shared address resource that you are modifying.