Sun Cluster 3.0 Data Services Installation and Configuration Guide

How to Add a Logical Host Name 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 logical host name resource to the resource group.


    # scrgadm -a -L [-j resource-name] -g resource-group-name -l hostname, ... \
    [-n netiflist]
    -a

    Adds a logical host name resource.

    -L

    Specifies the logical host name 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 name of the resource group in which this resource resides.

    -l hostname, ...

    Specifies a comma-separated list of UNIX host names (logical host names) by which clients communicate with services in the resource group.

    -n netiflist

    Specifies an optional comma-separated list that identifies the NAFO groups on each node. All nodes in nodelist of the resource group must be represented in netiflist. 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 logical host name resource has been added.


    # scrgadm -pv -j resource-name
    

    The resource addition action cause the resource to be validated by the Sun Cluster software. If the validation succeeds, the resource 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 that 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 Logical Host Name Resource to a Resource Group

This example shows the addition of logical host name resource (lh-r-1) to a resource group (lh-rg-1).


# scrgadm -a -L -j lh-r-1 -g lh-rg-1 -l schost-1
# scrgadm -pv -j lh-r-1
RG Name: lh-rg-1
(lh-rg-1) Res name:                          lh-r-1
  (lh-rg-1:lh-r-1) Res R_description:
  (lh-rg-1:lh-r-1) Res resource type:        SUNW.LogicalHostname
  (lh-rg-1:lh-r-1) Res resource group name:  lh-rg-1
  (lh-rg-1:lh-r-1) Res enabled:              False
  (lh-rg-1:lh-r-1) Res monitor enabled:      True

Where to Go from Here

After adding logical host name resources, use the procedure "How to Bring a Resource Group Online" to bring them online.