Sun Cluster 3.0 Data Services Installation and Configuration Guide

How to Add a Shared Address Resource to a Resource Group

To complete this procedure, you must supply the following information:

Refer to scrgadm(1M) for additional information.

Perform this procedure from any cluster node.

  1. Become superuser on a node in the cluster.

  2. Add the shared address resource to the resource group.


    # scrgadm -a -S [-j resource-name] -g resource-group-name -l hostname, ... \
    [-X auxnode-list] [-n netiflist]
    -a

    Adds shared address resources.

    -S

    Specifies the shared address resource form of the command.

    -j resource-name

    Specifies an optional resource name of your choice. If you do not specify this option, the name defaults to the first host name specified with the -l option.

    -g resource-group-name

    Specifies the resource group name.

    -l hostname, ...

    Specifies a comma-separated list of shared address host names.

    -X auxnode-list

    Specifies a comma-separated list of physical node names or IDs that identify the cluster nodes that can host the shared address but never serve as primary in the case of failover. These nodes are mutually exclusive, with the nodes identified in the resource group nodelist as potential masters.

    -n netiflist

    Specifies an optional comma-separated list that identifies the NAFO groups on each node. All the nodes in nodelist of the resource group must be represented in the network-interface-list. See scrgadm(1M) for a description of the syntax for specifying netiflist. If you do not specify this option, scrgadm attempts to discover a net adapter on the subnet identified by the hostname list for each node in nodelist.

  3. Verify that the shared address resource has been added and validated.


    # scrgadm -pv -j resource-name
    

    The resource addition action causes the resource to be validated by the Sun Cluster software. If the resource is successfully validated, it can be enabled and the resource group can be moved into the state where it is managed by the RGM. If the validation fails, scrgadm produces an error message to this effect and exits. In that case, check the syslog on each node for an error message. The message appears on the node that performed the validation, not necessarily the node on which you ran the scrgadm command.

Example-Adding a Shared Address Resource to a Resource Group

This example shows the addition of a shared address resource (sa-r-1) to a resource group (sa-rg-1).


# scrgadm -a -S -j sa-r-1 -g sa-rg-1 -l schost-1
# scrgadm -pv -j sa-r-1
(sa-rg-1) Res name:                            sa-r-1
    (sa-rg-1:sa-r-1) Res R_description:
    (sa-rg-1:sa-r-1) Res resource type:        SUNW.SharedAddress
    (sa-rg-1:sa-r-1) Res resource group name:  sa-rg-1
    (sa-rg-1:sa-r-1) Res enabled:              False
    (sa-rg-1:sa-r-1) Res monitor enabled:      True

Where to Go from Here

After adding a shared resource, enable it by following the procedure "How to Bring a Resource Group Online".