Sun Cluster Data Services Planning and Administration Guide for Solaris OS

Bringing Online Resource Groups

To enable resources to begin providing HA services, you must enable the resources in their resource groups, enable the resource monitors, make the resource groups managed, and bring online the resource groups. You can perform these tasks individually or by using the following procedure. See the scswitch(1M) man page for details.


Note –

Perform this procedure from any cluster node.


How to Bring Online Resource Groups

  1. Become superuser on a cluster member.

  2. Enable the resources, and bring online the resource groups.


    # scswitch -Z -g rg-list
    

    If the resource monitors were disabled, they are enabled also.


    Note –

    If you have intentionally disabled a resource a or a fault monitor that must remain disabled, specify the -z instead of the -Z option.


    -Z

    Brings resource groups online by first enabling their resources and fault monitors.

    -g rg-list

    Specifies a comma-separated list of the names of the resource groups to bring online. The resource groups must exist. The list may contain one resource group name or more than one resource group name.

    You can omit the -g rg-list option. If you omit this option, all resource groups are brought online.


    Note –

    If any resource group that you are bringing online declares a strong affinity for other resource groups, this operation might fail. For more information, see Distributing Online Resource Groups Among Cluster Nodes.


  3. Verify that the resource is online.

    Run the following command on any cluster node, and check the resource group state field to verify that each resource group is online on the nodes that are specified in the node list.


    # scstat -g
    

Example – Bring a Resource Group Online

This example shows how to bring a resource group (resource-group-1) online and verify its status.


# scswitch -Z -g resource-group-1
# scstat -g

Where to Go From Here

After you bring a resource group online, it is configured and ready for use. If a resource or node fails, the RGM switches the resource group online on alternate nodes to maintain availability of the resource group.