|
Support & Downloads
Technical Documents
Document Types
Technote
Setting Up Adaptive Server Anywhere as a Cluster Database Service This document explains how to set up an Adaptive Server Anywhere database server to run as a service within a Microsoft fail-over cluster. |
  | |
Preparing to set up the cluster service
Before you can create the cluster service, you must perform the following steps.
To configure your system for the cluster service
- Install the Cluster Administrator using Add/Remove Windows Components from the Control Panel.
- Install a local copy of Adaptive Server Anywhere on each node participating in the failover cluster.
- Create a domain account called ASAService to run the Adaptive Server Anywhere database server service under.
- Grant the ASAService domain account Log on as Service user rights on all nodes participating in the failover cluster.
- Set up a cluster share. In this document the cluster share name is called Public Disk and has a share name called public.
- Create a directory on the shared cluster disk (in this example it is called ASA).
- Grant the domain account ASAService full rights to the SQL Anywhere Studio installation directory.
Overview of creating a cluster service
The following list provides an overview of the steps involved in creating the cluster service.- Use the Service Creation utility (dbsvc) to create the local service.
- Use the Cluster Administrator to define the cluster service.
- Use the Cluster Administrator to bring the cluster service online.
To create a cluster service
- Create a local service on this cluster node by executing the following command at a command prompt:
Option Description -a bmdomain\asaservice The domain account name to use. You must specify the domain account name in the form domain\userid.
-p admin The password for the domain account. -s Manual The service startup option. -t Network The type of service. -w ASADBService The name of the service being created. "C:\Program Files\Sybase\SQL Anywhere 9\win32\dbsrv9.exe" The path and file name of the executable. -n ASADBSRV The name of the database server. -x tcpip The protocol used to start the database server listening. -o \\vmcluster\public\ASA\ASADBSRV.log The database server console log file. \\vmcluster\public\ASA\MyDB.db The path and file name of the database to start. - Test if database server starts using the following command:
-
dbsvc -u ASADBService
- If the database server starts correctly, dbsrv9.exe appears in the list of processes on the Task Manager’s Processes tab.
- Stop the database server with the following command:
-
dbsvc -x ASADBService
- Start the Cluster Administrator. From the Start menu, choose Settings > Control Panel. In the
Control Panel, double-click Administrative Tools and then double-click Cluster Administrator.
- In the left pane, right-click Resources and choose New > Resource from the popup menu.
- Enter the following values in the New Resource dialog:
- Name Type a name that the cluster will know the Adaptive Server Anywhere service by, for example, ASA Cluster Service.
- Resource Type Choose Generic Service from the dropdown list.
- Group Ensure Cluster Group is selected.
- Name Type a name that the cluster will know the Adaptive Server Anywhere service by, for example, ASA Cluster Service.
- Add all the possible owners (cluster nodes) this cluster service can run on and then click Next.
- Add the following Resource Dependencies and then click Next.
- Cluster IP Address
- Cluster Name
- Disk Q: (Quorum Disk)
- Disk S: (Physical Disk)
- Public Disk (Share point for S:)
- Cluster IP Address
- Type the service name in the Service Name field. Use the following formula to obtain the service name:
-
ASANYs_the-service-name-typed-in-dbsvc
For example, if you entered ASADBService as the name in the Create a New Service wizard in step 7, the service name would be ASANYs_ASADBService.
Leave the Start Parameters field blank and select the Use Network Name for Computer Name option and then click Next.
- Click Finish to complete the wizard.
- Click OK to create the cluster service.
- The new cluster service appears in the Cluster Administrator, but is in an offline state.
- To bring the cluster service online, right-click ASA Cluster Service and choose Bring Online from the popup menu.
The yellow exclamation mark disappears and the status changes from Offline to Online.
- To set the cluster service on the other nodes in the failover cluster, repeat step 1 on each node in the cluster.
- To test the failover, power off the node that is currently running the ASAService. The ASAService should start on one of the other nodes.
Document Attributes
|

