Sun Cluster 3.0 Data Services Installation and Configuration Guide

How to Add a Failover Application Resource to a Resource Group

A failover application resource is an application resource that uses logical host names created in a failover resource group previously.

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 a failover application resource to the resource group.


    # scrgadm -a -j resource-name -g resource-group-name -t resource-type-name \
    [-x Extension_property=value, ...] [-y Standard_property=value, ...]
    -a

    Adds a resource.

    -j resource-name

    Specifies your choice of the name of the resource to add.

    -g resource-group-name

    Specifies the name of the failover resource group created previously.

    -t resource-type-name

    Specifies the name of the resource type for the resource.

    -x Extension_property=value, ...

    Specifies a comma-separated list of extension properties that depend on the particular data service. See the chapter for each data service to determine whether it is required.

    -y Standard_property=value, ...

    Specifies a comma-separated list of standard properties that depends on the particular data service. See the chapter for each data service and Appendix A, Standard Properties to determine whether it is required.


    Note -

    You can set additional properties. For details, see Appendix A, Standard Properties and the chapter in this book on installing and configuring your failover data service.


  3. Verify that the failover application 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 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, 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 Failover Application Resource to a Resource Group

This example shows the addition of a resource (fo-r-1) to a resource group (fo-rg-1). The resource depends on logical host name resources (schost-1, schost-2), which must reside in the same failover resource groups defined previously.


# scrgadm -a -j fo-r-1 -g fo-rg-1 -t rt-1 \
-y Network_resources_used=schost-1,schost2 \
# scrgadm -pv -j fo-r-1
(fo-rg-1) Res name:                            fo-r-1
    (fo-rg-1:fo-r-1) Res R_description:
    (fo-rg-1:fo-r-1) Res resource type:        rt-1
    (fo-rg-1:fo-r-1) Res resource group name:  fo-rg-1
    (fo-rg-1:fo-r-1) Res enabled:              False
    (fo-rg-1:fo-r-1) Res monitor enabled:      True

Where to Go from Here

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