Sample Configuration with HP Serviceguard Extension for RAG and Oracle Real Application Clusters 11g release 2 using Cluster File System
25
3. Edit the pkgConfigFile package configuration file. Because the OCR and voting disk reside on
CFS, the OC package is configured to depend on the CFS package.
package_name crsp
package_type multi_node
node_name ccia1
node_name ccia2
TKIT_DIR /etc/cmcluster/crsp
TKIT_SCRIPT_DIR /opt/cmcluster/SGeRAC/toolkit/crsp
ORA_CRS_HOME /u01/app/11.2.0/crs
dependency_name SG-CFS-MP-3-DEP
dependency_condition SG-CFS-MP-3=up
dependency_location same_node
service_name crsp_monitor
service_cmd “$SGCONF/scripts/sgerac/erac_tk_oc.sh
oc_check “
service_restart none
service_fail_fast_enabled no
service_halt_timeout 300
4.
Add the package to the cluster.
# cd /etc/cmcluster/crsp
# cmapplyconf –P pkgConfigFile
cmapplyconf -P pkgConfigFile
Attempting to validate crsp.
The specified run script timeout is 600 seconds.
cmapplyconf will wait for this amount of time for the
script to complete before giving up.
Validation for package crsp succeeded via
/etc/cmcluster/scripts/mscripts/master_control_script.sh.
Modify the package configuration ([y]/n)? y
Completed the cluster update
Create the SG package for Oracle RAC.
1. Create package directory.
# mkdir /etc/cmcluster/racp
# cd /etc/cmcluster/racp
2.
Create package files.
# cmmakepkg -m sg/multi_node_all -m sgerac/erac_tk_rac pkgConfigFile
3.
Edit the pkgConfigFile package configuration file. Because RAC binaries and demo database
files reside on CFS, the RAC package is configured to depend on the CFS packages.
package_name racp
package_type multi_node
node_name ccia1
node_name ccia2
TKIT_DIR /etc/cmcluster/racp
TKIT_SCRIPT_DIR /opt/cmcluster/SGeRAC/toolkit/racp
ORACLE_DBNAME orcl