After the cluster is installed, restart the computer and the cluster will start up with the system. A lot of articles on the web are said to add a line in/etc/inittab
H1:35:RESPAWN:/ETC/INIT.D/INIT.OHASD Run >/dev/null 2>&1
But in the system I installed, Inittab did not set any cluster-initiated information. So how did the cluster start?
Let's take a look at the script in the directory/etc/rc5.d or/ETC/RC3.D.
[[email protected] rc5.d]# ll s96ohasd lrwxrwxrwx 1 root root + 11:11 S96OHASD-/ETC/INIT.D/OHASD
Because of this, the cluster will start randomly.
OHASD is a highly available service for the entire cluster, monitoring individual processes in the cluster. After the cluster process crashes, try restarting these processes.
When the system starts, it calls the
Crsctl Start has-nowait
So how do you prohibit the cluster from starting?
[Email protected] ~]# Cd/u01/app/11.2.0/grid/bin/[[email protected] bin]#./crsctl Disable Crscrs-4621:oracle High Avai Lability Services autostart is disabled.
/etc/oracle/scls_scr/11grac1/root/ohasdstr
The value in this script controls whether the cluster can start automatically.
How to manually start a cluster:
[[email protected] root]#/u01/app/11.2.0/grid/bin/crsctl start crscrs-4123:oracle High Availability Services have been St Arted.
This command starts OHASD, and then OHASD starts the background process CRSD, CSSD, and so on.
[Email protected] root]#/u01/app/11.2.0/grid/bin/crsctl check crscrs-4638:oracle high Availability Services is Onlinec Rs-4537:cluster ready Services are Onlinecrs-4529:cluster Synchronization Services is onlinecrs-4533:event Manager are on Line
At the same time, it will start the database, ASM, and listen together.
Turn off cluster use commands
[[email protected] root]#/u01/app/11.2.0/grid/bin/crsctl stop CRS
If you want to close all or most of this cluster, you can use the following command
[[email protected] root]#/u01/app/11.2.0/grid/bin/crsctl start Cluster-all or [[email protected] root]#/u01/app/11.2.0 /grid/bin/crsctl Start Cluster-n 11grac1 11grac2
However, the start cluster command is used only if OHASD is already started.
This article is from the "Ding Dong" blog, please be sure to keep this source http://lqding.blog.51cto.com/9123978/1684495
Oracle Learning RAC (vii) cluster startup parsing