Configuring the Service Group From the Command Line
The VCS enterprise agent for Sybase comes with a sample configuration file that can be used as reference to directly modify your present configuration file. This method requires you to restart VCS before the configuration takes effect.
To configure a service group from the command line
-
Log in to a cluster system as root.
-
Make sure the Sybase type definition is imported into VCS engine. See Importing the SybaseTypes.cf File for instructions.
-
Edit the main.cf file. Use the file /etc/VRTSvcs/conf/sample_sybase/main.cf for reference:
- Create a Sybase service group.
- Create the Sybase and SybaseBk resources. Refer to the type definitions under Sybase Resource Type and SybaseBk Resource Type.
- Edit the default attributes to match the parameters in your configuration.
Caution
For added security, you must always provide a secure value for passwords See Encrypting Passwords for instructions on setting secure passwords.
- Assign dependencies to the newly created resources. Refer to the sample file /etc/VRTSvcs/conf/sample_sybase/main.cf. (See the VERITAS Cluster Server User's Guide for more information on assigning dependencies.)
-
Save and close the file.
-
Verify the syntax of the file /etc/VRTSvcs/conf/config/main.cf:
# hacf -verify config
-
Start the VCS engine:
# hastart
-
Verify all Sybase service group resources are brought online:
# hagrp -state
-
Take the service group offline and verify that all resources are stopped:
# hagrp -offline <service_group> -sys <system_name>
# hagrp -state
-
Bring the service group online again and verify that all resources are available:
# hagrp -online <service_group> -sys <system_name>
# hagrp -state
-
Start the VCS engine on sysb:
# hastart
-
Switch the Sybase service group to sysb:
# hagrp -switch <service_group> -to <system_name>
-
Verify that all Sybase service group resources are brought online on sysb:
# hagrp -state
-
On all systems, look at the following log files for any errors or status:
/var/VRTSvcs/log/engine_A.log
/var/VRTSvcs/log/Sybase_A.log
/var/VRTSvcs/log/SybaseBk_A.log
|