The VCS agent for Sybase contains 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 for Sybase from the command line
Edit the main.cf file at /etc/VRTSvcs/conf/config/main.cf
. For reference, use the sample files at /etc/VRTSagents/ha/conf/Sybase
.
Create a Sybase service group.
Create the Sybase and SybaseBk resources.
Edit the default attributes to match the parameters in your configuration.
For added security, you must always provide a secure value for passwords.
Assign dependencies to the newly created resources. Refer to the sample file at /etc/VRTSagents/ha/conf/Sybase/
.
See the for more information on assigning dependencies.
# cd /etc/VRTSvcs/conf/config # hacf -verify .
# hastart
# hagrp -state
# hagrp -offline service_group -sys system_name
# hagrp -state
# hagrp -online service_group -sys system_name
# hagrp -state
# hagrp -switch service_group -to system_name
# hagrp -state
/var/VRTSvcs/log/engine_A.log /var/VRTSvcs/log/Sybase_A.log /var/VRTSvcs/log/SybaseBk_A.log