Sun Cluster 3.0 U1 Data Services Installation and Configuration Guide

Installing the Sybase ASE 12.0 Software

Use the procedures in this section to complete the following tasks.


Note -

Before you configure the Sun Cluster HA for Sybase ASE data service, use the procedures that the Sun Cluster 3.0 U1 Installation Guide describes to configure the Sun Cluster software on each node.


How to Prepare the Nodes

This procedure describes how to prepare the cluster nodes for Sybase ASE software installation.


Caution - Caution -

Perform all steps in this procedure on all Sun Cluster nodes. If you do not perform all steps on all nodes, the Sybase ASE installation will be incomplete, and the Sun Cluster HA for Sybase ASE data service will fail during startup.



Note -

Consult the Sybase ASE documentation before you perform this procedure.


  1. Become superuser on all nodes.

  2. Configure the /etc/nsswitch.conf file as follows so that the Sun Cluster HA for Sybase ASE data service starts and stops correctly if a switchover or failover occurs.

    On each node that can master the logical host that runs the Sun Cluster HA for Sybase ASE data service, include one of the following entries for group in the /etc/nsswitch.conf file.


    group:
    group:
    group: files [NOTFOUND=return] nis
    group: file [NOTFOUND=return] nisplus

    The Sun Cluster HA for Sybase ASE data service uses the su user command to start and stop the database node. The user is typically sybase_id. The network information name service might become unavailable when a cluster node's public network fails. Adding one of the preceding entries for group ensures that the su(1M) command does not refer to the NIS/NIS+ name services if the network information name service is unavailable.

  3. Configure the cluster file system for the Sun Cluster HA for Sybase ASE data service.

    If raw devices contain the databases, configure the global devices for raw-device access. See the Sun Cluster 3.0 U1 Installation Guide for information on how to configure global devices.

    If you use the Solstice DiskSuite volume manager, configure the Sybase ASE software to use UNIX file system (UFS) logging or raw-mirrored metadevices. See the Solstice DiskSuite documentation for information on how to configure raw-mirrored metadevices.

  4. Prepare the SYBASE_HOME directory on a local or multihost disk.


    Note -

    If you install the Sybase ASE binaries on a local disk, use a separate disk if possible. Installing the Sybase ASE binaries on a separate disk prevents the binaries from overwrites during operating environment reinstallation.


  5. On each node, create an entry for the database administrator (DBA) group in the /etc/group file, and add potential users to the group.

    You typically name the DBA group dba. Verify that the root and sybase_id users are members of the dba group, and add entries as necessary for other DBA users. Make sure that group IDs are the same on all nodes that run the Sun Cluster HA for Sybase ASE data service, as the following example illustrates.


    dba:*:520:root,sybase_id

    You can create group entries in a network name service. If you do so, also add your entries to the local /etc/inet/hosts file to eliminate dependency on the network name service.

  6. On each node, create an entry for the Sybase system administrator.

    You typically name the Sybase system administrator sybase_id. The following command updates the /etc/passwd and /etc/shadow files with an entry for the Sybase system administrator.


    # useradd -u 120 -g dba -d /Sybase-home sybase_id
    

    Make sure that the sybase_id user entry is the same on all nodes that run the Sun Cluster HA for Sybase ASE data service.

How to Install the Sybase Software

Perform the following steps to install the Sybase ASE software.

  1. Become superuser on a cluster member.

  2. Note the Sybase ASE installation requirements.

    You can install Sybase ASE binaries on one of the following locations.

    • Local disks of the cluster nodes

    • Cluster file system


      Note -

      Before you install the Sybase ASE software on the cluster file system, start the Sun Cluster software and become the owner of the disk device group.


    See "Preparing to Install Sun Cluster HA for Sybase ASE" for more information about installation locations.

  3. Create a failover resource group to hold the network and application resources.


    # scrgadm -a -g resource-group [-h nodelist]
    -g resource-group

    Specifies the name of the resource group. This name can be your choice but must be unique for resource groups within the cluster.

    -h nodelist

    Specifies an optional, comma-separated list of physical node names or IDs that identify potential masters. The order here determines the order in which the Resource Group Manager (RGM) considers primary nodes during failover.


    Note -

    Use the -h option to specify the order of the node list. If all the nodes in the cluster are potential masters, you do not need to use the -h option.


  4. Verify that you have added all logical hostnames that the Sun Cluster HA for Sybase ASE data service uses to either the /etc/inet/hosts file or to your name-service (NIS, NIS+) database.

  5. Add a logical hostname to the failover resource group.


    # scrgadm -a -L -g resource-group -l logical-hostname \ 
    [-j resource] [-n netiflist] 
    -l logical-hostname

    Specifies a logical hostname. The logical hostname is the network interface (IP address) that clients use to access the Sun Cluster HA for Sybase ASE data service.

    -j resource

    Specifies an optional name for the logical-hostname resource. If you do not specify a name, the default resource name appears as the first name after the -l option.

    -n netiflist

    Specifies an optional comma-separated list that identifies the NAFO groups on each node. The netiflist must represent all nodes in the resource group's nodelist. If you do not specify this option, the scrgadm command attempts to discover a network adapter on the subnet that the hostnamelist identifies for each nodelist node.

  6. Login as sybase_id.

  7. Install the Sybase ASE software.

    Regardless of where you install the Sybase ASE software, modify each node's /etc/system files as you would in standard Sybase ASE installation procedures. For instructions on installing Sybase ASE software, refer to the Sybase installation and configuration guides.


    Note -

    For every Sybase server, enter the logical hostname when asked to specify its name.


Where to Go From Here

After you install the Sybase ASE software, go to "How to Configure Sybase ASE Database Access With Solstice DiskSuite" if you use the Solstice DiskSuite volume manager. Go to "How to Configure Sybase ASE Database Access With VxVM" if you use the VERITAS Volume Manager (VxVM).

How to Verify the Sybase ASE Installation

Perform the following steps to verify the Sybase ASE software installation.

  1. Verify that the sybase_id user and the dba group own the $SYBASE_HOME directory and $SYBASE_HOME children directories.

  2. Run the scstat(1M) command to verify that the Sun Cluster software functions correctly.