Sun Cluster 3.0 U1 Data Services Installation and Configuration Guide

How to Add a Logical-Hostname Resource to a Resource Group

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

See the scrgadm(1M) man page for additional information.


Note -

Perform this procedure from any cluster node.


  1. Become superuser on a cluster member.

  2. Add the logical-hostname resource to the resource group.


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

    Adds a logical-hostname resource.

    -L

    Specifies the logical-hostname resource form of the command.

    -j resource

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

    -g resource-group

    Specifies the name of the resource group in which this resource resides.

    -l hostnamelist, ...

    Specifies a comma-separated list of UNIX hostnames (logical hostnames) 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 the scrgadm(1M) man page 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 that the hostnamelist identifies for each node in nodelist.

  3. Verify that the logical-hostname resource has been added.


    # scrgadm -pv -j resource
    

    The resource addition action causes the Sun Cluster software to validate the resource. If the validation succeeds, the resource can be enabled, and the resource group can be moved into the state where the RGM manages it. If the validation fails, the scrgadm command produces an error message to that effect and exits. If the validation fails, 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-Hostname Resource to a Resource Group

This example shows the addition of logical-hostname resource (resource-1) to a resource group (resource-group-1).


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

Where to Go From Here

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