Using Serviceguard Extension for RAC, 7th Edition, September 2008
Optimizing for Large Numbers of Storage Units
A set of four variables is provided to allow performance improvement when employing a large
number of filesystems or storage groups. For more detail, see the comments in the control script
template. They are:
• CONCURRENT_VGCHANGE_OPERATIONS—defines a number of parallel LVM volume group
activations during package startup as well and deactivations during package shutdown.
• CONCURRENT_FSCK_OPERATIONS—defines a number of parallel fsck operations that will
be carried out at package startup.
• CONCURRENT_MOUNT_AND_UMOUNT_OPERATIONS—defines a number of parallel mount
operations during package startup and unmount operations during package shutdown.
Customizing the Control Script for RAC Instances
Use the package control script to perform the following:
• Activation and deactivation of RAC volume groups.
• Startup and shutdown of the RAC instance.
• Monitoring of the RAC instance.
Set RAC environment variables in the package control script to define the correct execution
environment for RAC.
Enter the names of the LVM volume groups you wish to activate in shared mode in the VG[]
array. Use a different array element for each RAC volume group. (Remember that RAC volume
groups must also be coded in the cluster configuration file using OPS_VOLUME_GROUP
parameters.) Be sure to specify shared activation with the vgchange command by setting the
VGCHANGE parameter as follows:
VGCHANGE="vgchange -a s”
If your disks are mirrored with LVM mirroring on separate physical paths and you want to
override quorum, use the following setting:
VGCHANGE="vgchange -a s -q n”
Enter the names of the CVM disk groups you wish to activate in shared mode in the CVM_DG[]
array. Use a different array element for each RAC disk group. (Remember that CVM disk groups
must also be coded in the package ASCII configuration file using STORAGE_GROUP parameters.)
Be sure to an appropriate type of shared activation with the CVM activation command. For
example:
CVM_ACTIVATION_CMD="vxdg -g \$DiskGroup set activation=sharedwrite"
Do not define the RAC instance as a package service. Instead, include the commands that start up an
RAC instance in the customer_defined_run_commands section of the package control script.
Similarly, you should include the commands that halt an RAC instance in the
customer_defined_halt_commands section of the package control script.
Define the Oracle monitoring command as a service command, or else use the special Oracle
script provided with the ECM Toolkit.
Using the Command Line to Configure an Oracle RAC Instance Package
Serviceguard Manager provides a template to configure package behavior that is specific to an
Oracle RAC Instance package. The RAC Instance package starts the Oracle RAC instance, monitors
the Oracle processes, and stops the RAC instance.
The configuration of the RAC Instance Package make use of the Enterprise Cluster Master Toolkit
(ECMT) to start, monitor, and stop the Oracle database instance. For details on the use of ECMT,
reference ECMT documentation.
Each Oracle RAC database can have database instance running on all nodes of a SGeRAC cluster.
Therefore, it is not necessary to failover the database instance to a different SGeRAC node. This
Using Packages to Configure Startup and Shutdown of RAC Instances 105