Sun Cluster Data Services Planning and Administration Guide for Solaris OS

Disabling and Enabling Resource Monitors

The procedures in this section explain how to disable or enable resource fault monitors, not the resources themselves. A resource can continue to operate normally while its fault monitor is disabled. However, if the fault monitor is disabled and a data service fault occurs, automatic fault recovery is not initiated.

See the clresource(1CL) man page for additional information.


Note –

Perform these procedures from any cluster node.


ProcedureHow to Disable a Resource Fault Monitor

  1. On any cluster member, become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.

  2. Disable the resource fault monitor.


    # clresource unmonitor [-n node-zone-list] resource
    
    -n node-zone-list

    Specifies a comma-separated, ordered list of nodes on which to unmonitor the resource. If you specify a global-cluster non-voting node, the format of each entry in the list is node:zone. In this format, node specifies the node name and zone specifies the name of a global-cluster non-voting node. To specify the global-cluster voting node or to specify a node without global-cluster non-voting nodes, specify only node.

    This list is optional. If you omit this list, the resource is unmonitored on all nodes in its resource group's node list.


    Note –

    If you specify more than one node with the -n option, you can specify only one resource.


    resource

    Specifies the name of the resource or resources.

  3. Run the clresource command on each cluster node and check for monitored fields (RS Monitored) to verify that the resource fault monitor has been disabled.


    # clresource show -v
    

Example 2–12 Disabling a Resource Fault Monitor


# clresource unmonitor resource-1
# clresource show -v
...
RS Monitored: no...

ProcedureHow to Enable a Resource Fault Monitor

  1. On any cluster member, become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.

  2. Enable the resource fault monitor.


    # clresource monitor [-n node-zone-list] resource
    
    -n node-zone-list

    Specifies a comma-separated, ordered list of nodes on which to monitor the resource. If you specify a global-cluster non-voting node, the format of each entry in the list is node:zone. In this format, node specifies the node name and zone specifies the name of a global-cluster non-voting node. To specify the global cluster, or to specify a node without global-cluster non-voting nodes, specify only node.

    This list is optional. If you omit this list, the resource is monitored on all nodes in its resource group's node list.


    Note –

    If you specify more than one node with the -n option, you can specify only one resource.


    resource

    Specifies the name of the resource or resources.

  3. Run the clresource command on each cluster node and check for monitored fields (RS Monitored) to verify that the resource fault monitor has been enabled.


    # clresource show -v
    

Example 2–13 Enabling a Resource Fault Monitor


# clresource monitor resource-1
# clresource show -v
...
RS Monitored: yes...