HP Serviceguard Extension for RAC (SGeRAC) manual Sbin/init.d/init.crs start

Models: Serviceguard Extension for RAC (SGeRAC)

1 155
Download 155 pages 6.14 Kb
Page 68
Image 68

Modify the package control script to set the CVM disk group to “activate” for shared write and to specify the disk group.

CVM_DG[0]=”ops_dg”

Storage Activation (CFS)

When the Oracle Cluster Software required storage is configured on a Cluster File System (CFS), the Serviceguard package should be configured to depend on the CFS multi-node package through package dependency. With package dependency, the Serviceguard package that starts Oracle Cluster Software will not run until its dependent CFS multi-node package is up and will halt before the CFS multi-node package is halted.

Setup dependency conditions in Serviceguard package configuration file (SAMPLE).

DEPENDENCY_NAME mp1

DEPENDENCY_CONDITION SG-CFS-MP-1=UP

DEPENDENCY_LOCATION SAME_NODE

DEPENDENCY_NAME mp2

DEPENDENCY_CONDITION SG-CFS-MP-2=UP

DEPENDENCY_LOCATION SAME_NODE

DEPENDENCY_NAME mp3

DEPENDENCY_CONDITION SG-CFS-MP-3=UP

DEPENDENCY_LOCATION SAME_NODE

Start and stop Oracle Cluster Software.

In the Serviceguard package control script, configure the Oracle Cluster Software start in the customer_defined_run_cmds function.

For 10g 10.1.0.4 or later:

/sbin/init.d/init.crs start

For 10g 10.2.0.1 or later:

<CRS HOME>/bin/crsctl start crs

In the Serviceguard package control script, configure the Oracle Cluster Software stop in the customer_defined_halt_cmds function.

For 10g 10.1.0.4 or later:

/sbin/init.d/init.crs stop

For 10g 10.2.0.1 or later:

<CRS HOME>/bin/crsctl stop crs

When stopping Oracle Cluster Software in a Serviceguard package, it may be necessary to verify that the Oracle processes have stopped and exited before deactivating storage or halting CFS multi-node package. The verification can be done with a script that loops and checks for the successful stop message in the Oracle Cluster Software logs or the existences of Oracle processes that needed to be stopped, specifically the CSS daemon (ocssd.bin). For example, this script could be called by the Serviceguard package control script after the command to halt Oracle Cluster Software and before storage deactivation.

68 Serviceguard Configuration for Oracle 10g, 11gR1, or 11gR2 RAC

Page 68
Image 68
HP Serviceguard Extension for RAC (SGeRAC) manual Sbin/init.d/init.crs start