To complete this procedure, you must supply the following information:
The name of the resource group into which you are adding the resource. This group must be a failover resource group created previously.
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 shared address resource to the resource group.
# scrgadm -a -S [-j resource-name] -g resource-group-name -l hostname, ... \ [-X auxnode-list] [-n netiflist] |
Adds shared address resources.
Specifies the shared address 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 resource group name.
Specifies a comma-separated list of shared address host names.
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.
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.
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.
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 |
After adding a shared resource, enable it by following the procedure "How to Bring a Resource Group Online".