Oracle® Solaris Cluster Data Services Planning and Administration Guide

Exit Print View

Updated: September 2014, E39648–02
 
 

How to Create a Failover Resource Group

A failover resource group contains the following types of resources:

  • Network address resources, which are instances of the built-in resource types LogicalHostname and SharedAddress

  • Failover resources, which are the data service application resources for a failover data service

The network address resources and their dependent data service resources move between cluster nodes when data services fail over or are switched over.

Perform this procedure from any cluster node.

  1. On a cluster member, assume the root role that provides solaris.cluster.modify RBAC authorization.
  2. Create the failover resource group.
    # clresourcegroup create [-n nodelist] resource-group
    –n nodelist

    Specifies a comma-separated, ordered list of nodes that can master this resource group.

    This list is optional. If you omit this list, the resource group is created on all nodes in the cluster.

    resource-group

    Specifies your choice of the name of the failover resource group to add. This name must begin with an ASCII character.

  3. Verify that the resource group has been created.
    # clresourcegroup show resource-group
Example 2-4  Creating a Failover Resource Group

This example shows the creation of the failover resource group resource-group-1. The cluster nodes phys-schost-1 and phys-schost-2 can master this resource group.

# clresourcegroup create -n phys-schost1,phys-schost-2 resource-group-1
# clresourcegroup show -v resource-group-1

=== Resource Groups and Resources ===

Resource Group:                                 resource-group1
RG_description:                                 <NULL>
RG_mode:                                        Failover
RG_state:                                       Unmanaged
RG_project_name:                                default
RG_affinities:                                  <NULL>
RG_SLM_type:                                    manual
Auto_start_on_new_cluster:                      True
Failback:                                       False
Nodelist:                                       phys-schost-1 phys-schost-2
Maximum_primaries:                              1
Desired_primaries:                              1
RG_dependencies:                                <NULL>
Implicit_network_dependencies:                  True
Global_resources_used:                          <All>
Pingpong_interval:                              3600
Pathprefix:                                     <NULL>
RG_System:                                      False
Suspend_automatic_recovery:                     False

Next Steps

After you create a failover resource group, you can add application resources to this resource group. See Tools for Adding Resources to Resource Groups for the procedure.

See also

The clresourcegroup(1CL) man page.