To complete this procedure, you must supply the following information:
The name of the failover resource group into which you are adding the resource
The host names you are adding to the resource group
Refer to scrgadm(1M) for additional information.
Perform this procedure from any cluster node.
Become superuser on a node in the cluster.
Add the logical host name resource to the resource group.
# scrgadm -a -L [-j resource-name] -g resource-group-name -l hostname, ... \ [-n netiflist] |
Adds a logical host name resource.
Specifies the logical host name resource form of the command.
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.
Specifies the name of the resource group in which this resource resides.
Specifies a comma-separated list of UNIX host names (logical host names) by which clients communicate with services in the resource group.
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.
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.
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 |
After adding logical host name resources, use the procedure "How to Bring a Resource Group Online" to bring them online.