About rac crs automatic start and raccrs start

Source: Internet
Author: User

About rac crs automatic start and raccrs start
About CRS auto-Restart Experiment


I. Check ASM
[Root @ rac1 ~] #/Etc/init. d/oracleasm status
Checking if ASM is loaded: yes
Checking if/dev/oracleasm is mounted: yes
[Root @ rac1 ~] #/Etc/init. d/oracleasm listdisks
ASM01
ASM02
ASM03


Ii. Background CRS process when RAC is automatically started
[Root @ rac1 ~] # Ls-l/etc/init. d/init .*
-R-xr-x 1 root 1951 Aug 20/etc/init. d/init. crs
-R-xr-x 1 root 4722 Aug 20/etc/init. d/init. crsd
-R-xr-x 1 root 35402 Aug 20/etc/init. d/init.css d
-R-xr-x 1 root 3198 Aug 20/etc/init. d/init. evmd




Iii. Check the CRS status.
Node 1
[Oracle @ rac1 ~] # Crs_stat-t
Name Type Target State Host
------------------------------------------------------------
Ora... B1.inst application ONLINE rac1
Ora... B2.inst application ONLINE rac2
Ora. RACDB. db application ONLINE rac1
Ora... SM1.asm application ONLINE rac1
Ora... C1.lsnr application ONLINE rac1
Ora. rac1.gsd application ONLINE rac1
Ora. rac1.ons application ONLINE rac1
Ora. rac1.vip application ONLINE rac1
Ora... SM2.asm application ONLINE rac2
Ora... C2.lsnr application ONLINE rac2
Ora. rac2.gsd application ONLINE rac2
Ora. rac2.ons application ONLINE rac2
Ora. rac2.vip application ONLINE rac2

Node 2
[Oracle @ rac2 ~] # Crs_stat-t
Name Type Target State Host
------------------------------------------------------------
Ora... B1.inst application ONLINE rac1
Ora... B2.inst application ONLINE rac2
Ora. RACDB. db application ONLINE rac1
Ora... SM1.asm application ONLINE rac1
Ora... C1.lsnr application ONLINE rac1
Ora. rac1.gsd application ONLINE rac1
Ora. rac1.ons application ONLINE rac1
Ora. rac1.vip application ONLINE rac1
Ora... SM2.asm application ONLINE rac2
Ora... C2.lsnr application ONLINE rac2
Ora. rac2.gsd application ONLINE rac2
Ora. rac2.ons application ONLINE rac2
Ora. rac2.vip application ONLINE rac2


Method: You can also use crs_stat to view information about all processes.
[Root @ rac1 bin] #./crs_stat
NAME = ora. RACDB. RACDB1.inst
TYPE = application
TARGET = ONLINE
STATE = ONLINE on rac1


NAME = ora. RACDB. RACDB2.inst
TYPE = application
TARGET = ONLINE
STATE = ONLINE on rac2


NAME = ora. RACDB. db
TYPE = application
TARGET = ONLINE
STATE = ONLINE on rac1


NAME = ora. rac1.ASM1. asm
TYPE = application
TARGET = ONLINE
STATE = ONLINE on rac1




NAME = ora. rac2.gsd
TYPE = application
TARGET = ONLINE
STATE = OFFLINE on rac2


NAME = ora. rac2.ons
TYPE = application
TARGET = ONLINE
STATE = UNKNOWN on rac2
...


1. You can manually start OFFLINE processes.
[Root @ rac1 bin] #./crs_start ora. rac2.gsd
Attempting to start 'ora. rac2.gsd' on member 'rac2'
Start of 'ora. rac2.gsd' on member 'rac2' succeeded.
2. for UNKNOWN processes, You can first./crs_stop... and then./crs_start

3. If crs_stop cannot end, crs_start cannot start the process. solution:
3.1 Use the crs_stop-f parameter to disable the services in the crs state of UNKNOWN, and then use crs_start-f (with A-f parameter added) to start all services. Run the command on two nodes.
3.2 convert to the root user using/etc/init. d/init. crs stop: Disable crs first, and then use/etc/init. d/init. crs start is used to enable crs. After crs is enabled, a series of services of crs are automatically started. Note: This method is best executed at two nodes. (But I can do my experiments only on node 1)
[Root @ rac1 ~] #/Etc/init. d/init. crs stop
Shutting down Oracle Cluster Ready Services (CRS ):
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
Shutdown has begun. The daemons shoshould exit soon.
[Root @ rac1 bin] #./crs_stat-t
CRS-0184: Cannot communicate with the CRS daemon.
[Root @ rac1 bin] #./crs_stat-t
Name Type Target State Host
------------------------------------------------------------
Ora... B1.inst application ONLINE rac1
Ora... B2.inst application ONLINE rac2
Ora. RACDB. db application ONLINE rac2
Ora... SM1.asm application ONLINE rac1
Ora... C1.lsnr application ONLINE rac1
Ora. rac1.gsd application ONLINE rac1
Ora. rac1.ons application ONLINE rac1
Ora. rac1.vip application ONLINE rac1
Ora... SM2.asm application ONLINE rac2
Ora... C2.lsnr application ONLINE rac2
Ora. rac2.gsd application ONLINE rac2
Ora. rac2.ons application ONLINE rac2
Ora. rac2.vip application ONLINE rac2


2. view the current crs Process
[Root @ rac1 ~] $ Ps-ef | grep crs
Root 23206 1 0 0:05? 00:00:00/u01/app/oracle/product/10.2.0/db_1/bin/crsd. bin restart
Oracle 30815 29217 0 00:00:00 pts/4 grep crs


3. kill the crs Process
[Root @ rac1 ~] # Kill-9 23206
[Root @ rac1 ~] # Crs_stat-t
CRS-0184: Cannot communicate with the CRS daemon.


4. At this time, the crs process enters the boot state in seconds, and the service init. crsd runs.
[Root @ rac1 ~] # Ps-ef | grep crs
Root 430 1 0 0:12? 00:00:00/bin/sh/etc/init. d/init. crsd run
Root 507 474 0? 00:00:00/bin/su-l oracle-c/u01/app/oracle/product/10.2.0/db_1/bin/crsctl check boot>/tmp/crsctl.474
Oracle 508 507 0? 00:00:00-bash-c/u01/app/oracle/product/10.2.0/db_1/bin/crsctl check boot>/tmp/crsctl.474
Oracle 539 508 0? 00:00:00/u01/app/oracle/product/10.2.0/db_1/bin/crsctl. bin check boot
Root 570 2971 0 00:00:00 pts/4 grep crs


Node 2
[Oracle @ rac2 ~] $ Ps-ef | grep crs
Root 4348 1 0? 00:00:01/u01/app/oracle/product/10.2.0/db_1/bin/crsd. bin reboot
Oracle 25981 16487 0 00:00:00 pts/3 grep crs
[Oracle @ rac2 ~] $ Crs_stat-t
Name Type Target State Host
------------------------------------------------------------
Ora... B1.inst application ONLINE rac1
Ora... B2.inst application ONLINE rac2
Ora. RACDB. db application ONLINE rac1
Ora... SM1.asm application ONLINE rac1
Ora... C1.lsnr application ONLINE rac1
Ora. rac1.gsd application ONLINE rac1
Ora. rac1.ons application ONLINE rac1
Ora. rac1.vip application ONLINE rac1
Ora... SM2.asm application ONLINE rac2
Ora... C2.lsnr application ONLINE rac2
Ora. rac2.gsd application ONLINE rac2
Ora. rac2.ons application ONLINE rac2
Ora. rac2.vip application ONLINE rac2


5. Check again that only the init. crsd process is running.
[Root @ rac1 ~] # Ps-ef | grep crs
Root 430 1 0 0:12? 00:00:00/bin/sh/etc/init. d/init. crsd run
Root 730 2971 0 00:00:00 pts/4 grep crs
[Root @ rac1 ~] # Ps-ef | grep crs
Root 430 1 0 0:12? 00:00:00/bin/sh/etc/init. d/init. crsd run
Root 833 2971 0 00:00:00 pts/4 grep crs


6. View in about one minute
[Root @ rac1 ~] # Ps-ef | grep crs
Root 430 1 0 0:12? 00:00:00/u01/app/oracle/product/10.2.0/db_1/bin/crsd. bin restart
Root 4813 2971 0 00:00:00 pts/4 grep crs


The crs service is already started.
[Root @ rac1 ~] # Crs_stat-t
Name Type Target State Host
------------------------------------------------------------
Ora... B1.inst application ONLINE rac1
Ora... B2.inst application ONLINE rac2
Ora. RACDB. db application ONLINE rac1
Ora... SM1.asm application ONLINE rac1
Ora... C1.lsnr application ONLINE rac1
Ora. rac1.gsd application ONLINE rac1
Ora. rac1.ons application ONLINE rac1
Ora. rac1.vip application ONLINE rac1
Ora... SM2.asm application ONLINE rac2
Ora... C2.lsnr application ONLINE rac2
Ora. rac2.gsd application ONLINE rac2
Ora. rac2.ons application ONLINE rac2
Ora. rac2.vip application ONLINE rac2




How to start rac

Crsctl starts the crs process, uses crs_stat-v-t to view the background process status, and uses srvct to start various services.

RAC restarts, but database resources are not started with CRS

Manual
Srvctl start database-d xxxx
Is there an error?
If the cluster cannot be started properly, check the cluster status first.
Crsctl stat res-t
You can view the oracle alert alarm log as needed.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.