Академический Документы
Профессиональный Документы
Культура Документы
September 2000
30-000038-399
Disclaimer
The information contained in this publication is subject to change without notice.
VERITAS Software Corporation makes no warranty of any kind with regard to this
manual, including, but not limited to, the implied warranties of merchantability and
fitness for a particular purpose. VERITAS Software Corporation shall not be liable for
errors contained herein or for incidental or consequential damages in connection with the
furnishing, performance, or use of this manual.
Copyright
Copyright 1998-2000 VERITAS Software Corporation. All rights reserved. VERITAS is a
registered trademark of VERITAS Software Corporation in the US and other countries.
The VERITAS logo and VERITAS Cluster Server are trademarks of VERITAS Software
Corporation. All other trademarks or registered trademarks are the property of their
respective owners.
Printed in the USA, September 2000.
VERITAS Software Corporation
1600 Plymouth St.
Mountain View, CA 94043
Phone 6503358000
Fax 6503358050
www.veritas.com
Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .v
Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .v
For Customers Outside U.S. and Canada . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .v
Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vi
iii
Sample Configuration, SybaseBk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Dependencies Among the Sybase and SybaseBk Resources . . . . . . . . . . . . . . . . . . . 11
Configuring the Sybase Agent With Cluster Manager . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Importing the SybaseTypes.cf File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Adding the Sybase Group Using the Wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Configuring Sybase Agent by Editing the Configuration Files . . . . . . . . . . . . . . . . . . . 14
Setting the Sybase Password Attribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Using a Soft Link to a $SYBASE_HOME Pathname . . . . . . . . . . . . . . . . . . . . . . . . . 16
Example, Replacing $SYBASE_HOME Pathname With a Soft Link . . . . . . . . . 17
Modifying the Agent Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Dynamic Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Database Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Additional Monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Modifying the Secondary Monitor Configuration . . . . . . . . . . . . . . . . . . . . . . . . 18
Disabling the Agent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Removing the Agent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Technical Support
For assistance with this VERITAS product, or for information regarding VERITAS service
packages, contact Technical Support at 800.342.0652 (U.S. and Canada). You may also
contact Technical Support via email at support@veritas.com.
v
Conventions
Conventions
Typeface Usage
courier Computer output, files, attribute names, device names, and directories
Symbol Usage
% C shell prompt
1
About the Agent
Description Starts a Sybase SQL Server, monitors the SQL Server process, and shuts
down a Sybase SQL Server.
Description Starts a Sybase Backup Server, monitors the Backup Server process, and
shuts down a Sybase Backup Server.
Prerequisites
Install and configure VCS. It is also recommended you install the VCS graphical user
interface. If necessary, review the VERITAS Cluster Server Installation Guide.
Install and configure the application. If necessary, review the Sybase documentation.
Verify that the sybase account is valid and identical on all UNIX systems that will
run Sybase.
Verify that all systems have enough resources, such as shared memory, to run the
Sybase servers.
Verify that the Sybase installation directory containing the Sybase binaries and
configuration files is located on shared disks. This installation directory is specified by
the environment variable $SYBASE. Create the same $SYBASE mount points on each
system.
Additional Requirements
Database Dbspaces
If you are using shared disks for dbspaces, change the permissions, or access mode, on the
disk groups that store the Sybase data. Change the permissions for sybase to 660.
For example, if you are using VERITAS Volume Manager, type:
# vxedit -g diskgroup_name set group=dba
user=sybase mode=660 volume_name
If you are not running Solaris volume-management software, you must mount
the CD manually. For example:
# mount -F hsfs -o ro /dev/dsk/c0t6d0s2 /mnt
Where, in this example, /dev/dsk/c0t6d0s2 is the default for the CD drive.
# cd /mnt
# pkgadd -d .
3. Repeat steps 1 and 2 on each system that will become part of the Sybase service group.
System A System B
(sysa) (sysb)
Shared Disks
Public Network
Server string-scalar The $DSQUERY ASE name. One supported per service
group.
User (optional) string-scalar Internal database user. Connects to the ASE for
secondary monitoring.
Db (optional) string-scalar Name of the database in which the table resides, used to
test the time stamp.
Table (optional) string-scalar Name of the table used for secondary monitoring.
SYBBK
SybaseBk
SQL
Sybase
sybdatdg_sybprocs
sybasesrv sybdatdg_master
opt_Sybase
IP Volume Volume
Mount
sybasedg_sybasevol
sybase_le0 sybdatdg
NIC Volume DiskGroup
sybasedg
DiskGroup
This configuration has two disk groups on which three volumes are created. One disk
group is for the Sybase server, and one is for the database. The mount resource requires
the Volume resource which in turn requires the DiskGroup resource. The service group IP
address for the Sybase server is configured using the IP and NIC resource types. The
Sybase server can be started after each of these resources is brought online. The Backup
Server is started after the SQL Server.
1. In Cluster Manager, click the service group configuration wizard icon on the toolbar.
3. Confirm that you are basing the service group on a predefined template: click Next.
4. Select the Sybase template (SybaseGroup) from the list of templates; click Next.
5. The wizard prompts you with alternate names in case the names in the template clash
with existing names; make corrections as necessary and click Next.
6. When the wizard indicates that it is ready to create the service group, click Next; the
service group is dynamically created based on the Sybase template.
7. Review the service groups resource attributes, and modify the default values, if
necessary, in accord with your specific configuration.
Caution To create a secure password, see the procedure Setting the Sybase Password
Attribute on page 16.
b. Create the Sybase and SybaseBk resources. You can refer to the examples shown
on page 8 and page 10.
c. Edit the default attributes to match the parameters in your configuration. The
tables on page 7 and page 9 are provided for reference.
Caution From hagui or hares -display, the Sybase sa password is visible as the
attribute value SApswd. As a workaround, SApswd can specify the name of a
file that stores the actual password. See Setting the Sybase Password
Attribute on page 16.
d. Assign dependencies to the newly created resources. Refer to the sample file
/etc/VRTSvcs/conf/sample_sybase/main.cf. (See the VCS Users Guide for
more information on assigning dependencies.)
8. Verify that all Sybase service group resources are brought online:
# hagrp -display
9. Take the service group offline and verify that all resources are stopped:
# hagrp -offline service_group -sys system_name
# hagrp -display
10. Bring the service group online again and verify that all resources are available:
# hagrp -online service_group -sys system_name
# hagrp -display
13. Verify that all Sybase service group resources are brought online on sysb:
# hagrp -display
1. To specify a filename for the SApswd attribute from the command line, enter:
# hares -modify Sybase SApswd "VCSSY: /sybase/secret"
# hares -modify SybaseBk SApswd "VCSSY: /sybase/secret"
where /sybase/secret is an example filename, and the keyword VCSSY: (all
capitalized letters followed by a colon) must precede the actual name of the file
containing the password. Note that the attribute is modified for each resource type,
Sybase and SybaseBk.
2. Verify that the file has read access for the root user.
3. Repeat steps 1 and 2 on all systems to which the group can fail over.
1. On each system in the cluster, create a soft link to the long pathname. For example:
# ln -s /opt/apps/sybase/home/directory/is/longer/than
eighty/characters/sybase /opt/link_to_longpath
Now the process will be invoked with the short pathname of the soft link.
Note Make sure the -s option and its argument (fw17i in the above example) are the
first to be listed; they must be placed within the first eighty characters of the file.
Dynamic Configuration
To dynamically configure the VCS enterprise agent for Sybase, see the chapter on
reconfiguring VCS from the command line in the VERITAS Cluster Server Users Guide.
Database Tables
See the comment inside the $VCS_HOME/bin/Sybase/SqlTest.pl script to set up a
database table or to become an authenticated user.
Additional Monitoring
The VCS enterprise agent for Sybase provides two levels of application monitoring:
primary and secondary. The primary level monitors the Sybase daemon processes to
verify that they are continuously active. The secondary level performs a transaction on a
test table in the database to ensure that Sybase is functioning properly.
To activate secondary monitoring, the Sybase resource attributes User, Pword, Table,
and MonScript must not be empty (""). The attribute MonScript, which points to the
$VCS_HOME/bin/Sybase/SQLTest.pl script, must also exist and have execute
permission for root.
3. We recommend that you freeze the service group to avoid automated actions by VCS
caused by incomplete reconfiguration:
# hagrp -freeze service_group
Note The location of the executable isql varies by Sybase revision. For Sybase 11.x, the
path is $SYBASE/bin. For Sybase 12.0, the path is $SYBASE/$SBYASE_OCS/bin.