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 perform the following operations:

You can perform these tasks individually or by using a single command.

After you bring online a resource group, 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.

ProcedureHow to Bring Online Resource Groups

Perform this task from any cluster node.

Steps
  1. On a cluster member, become superuser or assume an equivalent role.

  2. Type the command to bring online the resource groups.

    • If you have intentionally disabled a resource or a fault monitor that must remain disabled, type the following command:


      # scswitch -z -g rg-list
      
      -z

      Brings online resource groups without 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.

    • If you require the resources and their fault monitors to be enabled when the resource groups are brought online, type the following command:


      # scswitch -Z -g rg-list
      
      -Z

      Brings online resource groups after 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 each resource group that you specified in Step 2 is online.

    The output from this command indicates on which nodes each resource group is online.


    # scstat -g
    

Example 2–11 Bringing Online a Resource Group

This example shows how to bring online the resource group resource-group-1 and verify its status. All resources in this resource and their fault monitors are also enabled.


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

Next Steps

If you brought resource groups online without enabling their resources and fault monitors, enable the fault monitors of any resources that you require to be enabled. For more information, see How to Enable a Resource Fault Monitor.

See Also

The scswitch(1M) man page.