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:
The name of the failover resource group into which you are adding the resource
The name of the resource type for the resource
The logical host name resources used by the application resource, which are the logical host names previously included in the same 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 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, ...] |
Adds a resource.
Specifies your choice of the name of the resource to add.
Specifies the name of the failover resource group created previously.
Specifies the name of the resource type for the resource.
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.
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.
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.
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.
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 |
After adding a failover application resource, enable it by following the procedure "How to Bring a Resource Group Online".