You use three procedures to install and configure data services, as follows:
Install the data service packages from the Sun Cluster data services CD.
Install and configure the application to run in the cluster environment.
Configure the resources and resource groups used by the data service. When you configure a data service, you specify the resource types, resources, and resource groups to be managed by the Resource Group Manager (RGM). These procedures are described in the chapters for each of the data services.
Before installing and configuring data services, see the Sun Cluster 3.0 Installation Guide, which includes procedures on how to install the data service software packages and how to configure Network Adapter Failover (NAFO) groups used by the network resources.
Table 1-2 shows a task map of the procedure for installing and configuring a Sun Cluster failover data service.
Table 1-2 Task Map: Sun Cluster Data Service Installation and Configuration
Task |
For Instructions, Go to ... |
---|---|
Install Solaris and Sun Cluster |
Sun Cluster 3.0 Installation Guide |
Set up NAFO groups |
Sun Cluster 3.0 Installation Guide |
Set up multihost disks |
Sun Cluster 3.0 Installation Guide |
Plan resources and resource groups |
Sun Cluster 3.0 Release Notes |
Decide the location for application binaries; configure the nsswitch.conf file | |
Install and configure the application software |
The chapter for each data service in this book. |
Install the data service software packages |
Sun Cluster 3.0 Installation Guide or the chapter for each data service in this book. |
Register and configure the data service |
The chapter for each data service in this book. |
This example in this section shows how you might set up the resource types, resources, and resource groups for an Oracle application that has been instrumented to be a highly available failover data service.
The main difference between this example and an example of a scalable data service is that, in addition to the failover resource group that contains the network resources, a scalable data service requires a separate resource group (called a scalable resource group) for the application resources.
The Oracle application has two components, a server and a listener. Sun Cluster HA for Oracle is a Sun-supplied data service so these components have already been mapped into Sun Cluster resource types. Both of these resource types are associated with resources and resource groups.
Because this example is a failover data service, it uses logical host name network resources, which are the IP addresses that fail over from a primary node to a secondary node. You place the logical host name resources into a failover resource group and then place the Oracle server resources and listener resources into the same resource group. This ordering enables all of the resources to fail over as a group.
To have the HA Oracle data service run on the cluster, you must define the following objects:
LogicalHostname resource type - This resource type is built in so you need not define it explicitly.
Oracle resource types - Sun Cluster HA for Oracle defines two Oracle resource types, a database server and a listener.
Logical host name resources - These resources host the IP addresses that fail over in the event of a node failure.
Oracle resources - You must specify two resource instances for Sun Cluster HA for Oracle, a server and a listener.
Failover resource group - This container is composed of the Oracle server and listener and logical host name resources that will fail over as a group.