11g RAC r2 의 정지 명령 개요 1

51104 단어 11g
목표:
  • 주요 프로 세 스 의 시작 과 정지 순 서 를 숙지 합 니 다
  • 독점 모델 이해 - excl
  • crsctl start crs 와 crsctl start cluster 의 차이
  • 1. 주요 프로 세 스 의 시작 과 정지 순 서 를 숙지 합 니 다.
    1.1 시작 노드 rac 1:
     1 [root@rac1 bin]# ./crsctl start crs -excl
    
     2 CRS-4123: Oracle High Availability Services has been started.  --  OHASD  
    
     3 CRS-2672: Attempting to start 'ora.gipcd' on 'rac1'
    
     4 CRS-2672: Attempting to start 'ora.mdnsd' on 'rac1'
    
     5 CRS-2676: Start of 'ora.gipcd' on 'rac1' succeeded             --  ora.gipcd
    
     6 CRS-2676: Start of 'ora.mdnsd' on 'rac1' succeeded             --  ora.mdnsd
    
     7 CRS-2672: Attempting to start 'ora.gpnpd' on 'rac1'
    
     8 CRS-2676: Start of 'ora.gpnpd' on 'rac1' succeeded             --  ora.gpnpd
    
     9 CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac1'
    
    10 CRS-2676: Start of 'ora.cssdmonitor' on 'rac1' succeeded       --  ora.cssdmonitor
    
    11 CRS-2672: Attempting to start 'ora.cssd' on 'rac1'
    
    12 CRS-2679: Attempting to clean 'ora.diskmon' on 'rac1'
    
    13 CRS-2681: Clean of 'ora.diskmon' on 'rac1' succeeded           --  ora.diskmon
    
    14 CRS-2672: Attempting to start 'ora.diskmon' on 'rac1'
    
    15 CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded           --  ora.diskmon
    
    16 CRS-2676: Start of 'ora.cssd' on 'rac1' succeeded              --  ora.cssd
    
    17 CRS-2672: Attempting to start 'ora.ctssd' on 'rac1'
    
    18 CRS-2672: Attempting to start 'ora.drivers.acfs' on 'rac1'
    
    19 CRS-2676: Start of 'ora.ctssd' on 'rac1' succeeded             --  ora.ctssd
    
    20 CRS-2676: Start of 'ora.drivers.acfs' on 'rac1' succeeded      --  ora.drivers.acfs
    
    21 CRS-2672: Attempting to start 'ora.asm' on 'rac1'             
    
    22 CRS-2676: Start of 'ora.asm' on 'rac1' succeeded               --  ora.asm
    
    23 CRS-2672: Attempting to start 'ora.crsd' on 'rac1'             
    
    24 CRS-2676: Start of 'ora.crsd' on 'rac1' succeeded              --  ora.crsd
    
    25 
    
    26     rac2:                                                 --     ,   crsctl start crs -excl         
    
    27 [root@rac2 bin]# ps -ef|grep grid          
    
    28 root      5823  4165  0 23:26 pts/1    00:00:00 grep grid
    
    29 [root@rac2 bin]# 

    1.2 노드 rac 1 닫 기
     1 [root@rac1 bin]# ./crsctl stop crs -f
    
     2 CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac1' 
    
     3 CRS-2673: Attempting to stop 'ora.crsd' on 'rac1'                                            
    
     4 CRS-2677: Stop of 'ora.crsd' on 'rac1' succeeded                               --  ora.crsd
    
     5 CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'rac1'                                      
    
     6 CRS-2673: Attempting to stop 'ora.ctssd' on 'rac1'
    
     7 CRS-2673: Attempting to stop 'ora.asm' on 'rac1'
    
     8 CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'rac1'
    
     9 CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac1'
    
    10 CRS-2677: Stop of 'ora.cssdmonitor' on 'rac1' succeeded                        --  ora.cssdmonitor         
    
    11 CRS-2677: Stop of 'ora.mdnsd' on 'rac1' succeeded                              --  ora.mdnsd
    
    12 CRS-2677: Stop of 'ora.ctssd' on 'rac1' succeeded                              --  ora.ctssd
    
    13 CRS-2677: Stop of 'ora.drivers.acfs' on 'rac1' succeeded                       --  ora.drivers.acfs
    
    14 CRS-2677: Stop of 'ora.asm' on 'rac1' succeeded                                --  ora.asm   
    
    15 CRS-2673: Attempting to stop 'ora.cssd' on 'rac1'
    
    16 CRS-2677: Stop of 'ora.cssd' on 'rac1' succeeded                               --  ora.cssd
    
    17 CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac1'
    
    18 CRS-2673: Attempting to stop 'ora.diskmon' on 'rac1'
    
    19 CRS-2677: Stop of 'ora.gpnpd' on 'rac1' succeeded                              --  ora.gpnpd
    
    20 CRS-2673: Attempting to stop 'ora.gipcd' on 'rac1'
    
    21 CRS-2677: Stop of 'ora.diskmon' on 'rac1' succeeded                            --  ora.diskmon
    
    22 CRS-2677: Stop of 'ora.gipcd' on 'rac1' succeeded                              --  ora.gipcd
    
    23 CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac1' has completed --  OHASD  
    
    24 CRS-4133: Oracle High Availability Services has been stopped.
    
    25 [root@rac1 bin]#

    요약: 중요 한 프로 세 스 의 시작 순 서 는 OHASD - > ora. gpnpd - > ora. csd - > ora. asm - > ora. csd 입 니 다.
    2. 독점 모드 알 아 보기 - excl
    독점 모드 로 시 작 된 이상 일부 자원 은 다른 노드 에 의 해 공유 되 지 않 을 것 이다.자원 을 선점 하면 어떤 상황 이 나타 날 까?
    2.1 시작 노드 rac 1:
     1 [root@rac1 bin]# ./crsctl start crs -excl                   -- -excl         
    
     2 CRS-4123: Oracle High Availability Services has been started.
    
     3 CRS-2672: Attempting to start 'ora.gipcd' on 'rac1'
    
     4 CRS-2672: Attempting to start 'ora.mdnsd' on 'rac1'
    
     5 CRS-2676: Start of 'ora.gipcd' on 'rac1' succeeded
    
     6 CRS-2676: Start of 'ora.mdnsd' on 'rac1' succeeded
    
     7 CRS-2672: Attempting to start 'ora.gpnpd' on 'rac1'
    
     8 CRS-2676: Start of 'ora.gpnpd' on 'rac1' succeeded
    
     9 CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac1'
    
    10 CRS-2676: Start of 'ora.cssdmonitor' on 'rac1' succeeded
    
    11 CRS-2672: Attempting to start 'ora.cssd' on 'rac1'
    
    12 CRS-2679: Attempting to clean 'ora.diskmon' on 'rac1'
    
    13 CRS-2681: Clean of 'ora.diskmon' on 'rac1' succeeded
    
    14 CRS-2672: Attempting to start 'ora.diskmon' on 'rac1'
    
    15 CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded
    
    16 CRS-2676: Start of 'ora.cssd' on 'rac1' succeeded
    
    17 CRS-2672: Attempting to start 'ora.ctssd' on 'rac1'
    
    18 CRS-2672: Attempting to start 'ora.drivers.acfs' on 'rac1'
    
    19 CRS-2676: Start of 'ora.ctssd' on 'rac1' succeeded
    
    20 CRS-2676: Start of 'ora.drivers.acfs' on 'rac1' succeeded
    
    21 CRS-2672: Attempting to start 'ora.asm' on 'rac1'
    
    22 CRS-2676: Start of 'ora.asm' on 'rac1' succeeded
    
    23 CRS-2672: Attempting to start 'ora.crsd' on 'rac1'
    
    24 CRS-2676: Start of 'ora.crsd' on 'rac1' succeeded
    
    25 [root@rac1 bin]#

    2.2 RAC 1 이 독점 모드 에서 노드 RAC 2 가 자원 을 선점 할 때 어떤 일이 발생 하 는 지 살 펴 본다.
     1 [root@rac2 bin]# ./crsctl start crs -excl
    
     2 CRS-4123: Oracle High Availability Services has been started.
    
     3 CRS-2672: Attempting to start 'ora.gipcd' on 'rac2'
    
     4 CRS-2672: Attempting to start 'ora.mdnsd' on 'rac2'
    
     5 CRS-2676: Start of 'ora.gipcd' on 'rac2' succeeded
    
     6 CRS-2676: Start of 'ora.mdnsd' on 'rac2' succeeded
    
     7 CRS-2672: Attempting to start 'ora.gpnpd' on 'rac2'
    
     8 CRS-2676: Start of 'ora.gpnpd' on 'rac2' succeeded
    
     9 CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac2'
    
    10 CRS-2676: Start of 'ora.cssdmonitor' on 'rac2' succeeded
    
    11 CRS-2672: Attempting to start 'ora.cssd' on 'rac2'
    
    12 CRS-2679: Attempting to clean 'ora.diskmon' on 'rac2'
    
    13 CRS-2681: Clean of 'ora.diskmon' on 'rac2' succeeded
    
    14 CRS-2672: Attempting to start 'ora.diskmon' on 'rac2'
    
    15 CRS-2676: Start of 'ora.diskmon' on 'rac2' succeeded
    
    16 CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node rac1, number 1, and is terminating
    
    17 CRS-2674: Start of 'ora.cssd' on 'rac2' failed
    
    18 CRS-2679: Attempting to clean 'ora.cssd' on 'rac2'
    
    19 CRS-2681: Clean of 'ora.cssd' on 'rac2' succeeded
    
    20 CRS-2673: Attempting to stop 'ora.diskmon' on 'rac2'
    
    21 CRS-2677: Stop of 'ora.diskmon' on 'rac2' succeeded
    
    22 CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'rac2'
    
    23 CRS-2677: Stop of 'ora.cssdmonitor' on 'rac2' succeeded
    
    24 CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac2'
    
    25 CRS-2677: Stop of 'ora.gpnpd' on 'rac2' succeeded
    
    26 CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac2'
    
    27 CRS-2677: Stop of 'ora.mdnsd' on 'rac2' succeeded
    
    28 CRS-2673: Attempting to stop 'ora.gipcd' on 'rac2'
    
    29 CRS-2677: Stop of 'ora.gipcd' on 'rac2' succeeded
    
    30 CRS-4000: Command Start failed, or completed with errors.
    
    31 [root@rac2 bin]# 

    상황 이 발생 했 습 니 다 (CRS - 4402, CRS - 2674). 이제 두 노드 의 프로 세 스 상황 을 봅 시다.
    2.3 두 노드 의 현재 프로 세 스 상황 보기
     1   RAC1     :
    
     2 [root@rac1 bin]# ps -ef|grep grid
    
     3 root     16810     1  0 00:56 ?        00:00:01 /u01/grid/bin/ohasd.bin exclusive
    
     4 grid     16944     1  0 00:56 ?        00:00:00 /u01/grid/bin/oraagent.bin
    
     5 grid     16959     1  0 00:56 ?        00:00:00 /u01/grid/bin/gipcd.bin
    
     6 grid     16964     1  0 00:56 ?        00:00:00 /u01/grid/bin/mdnsd.bin
    
     7 grid     16983     1  0 00:56 ?        00:00:00 /u01/grid/bin/gpnpd.bin
    
     8 root     17020     1  0 00:56 ?        00:00:00 /u01/grid/bin/orarootagent.bin
    
     9 grid     17640     1  0 01:02 ?        00:00:00 /u01/grid/bin/diskmon.bin -d -f
    
    10 root     17708 14498  0 01:06 pts/1    00:00:00 grep grid
    
    11 [root@rac1 bin]#
    
    12 
    
    13   RAC2     :
    
    14 [root@rac2 bin]# ps -ef|grep grid
    
    15 root      8557     1  0 01:01 ?        00:00:01 /u01/grid/bin/ohasd.bin exclusive
    
    16 root      8929  7581  0 01:08 pts/1    00:00:00 grep grid
    
    17 [root@rac2 bin]#

    하하, 자원 쟁탈 중 RAC 1, RAC 2 둘 다 부상!독점 모드 는 일반적으로 데이터베이스 복구, 업그레이드 에 사 용 됩 니 다.
          비 독점 모드 로 시작 하면 제거 - excl: crsctl start crs
    3. crsctl start crs 와 crsctl start cluster 의 차이
     1     :crsctl start  cluster
    
     2 --[root@rac1 bin]# ./crsctl start  cluster
    
     3 CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac1'
    
     4 CRS-2676: Start of 'ora.cssdmonitor' on 'rac1' succeeded
    
     5 CRS-2672: Attempting to start 'ora.cssd' on 'rac1'
    
     6 CRS-2672: Attempting to start 'ora.diskmon' on 'rac1'
    
     7 CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded
    
     8 CRS-2676: Start of 'ora.cssd' on 'rac1' succeeded
    
     9 CRS-2672: Attempting to start 'ora.ctssd' on 'rac1'
    
    10 CRS-2676: Start of 'ora.ctssd' on 'rac1' succeeded
    
    11 CRS-2672: Attempting to start 'ora.asm' on 'rac1'
    
    12 CRS-2672: Attempting to start 'ora.evmd' on 'rac1'
    
    13 CRS-2676: Start of 'ora.evmd' on 'rac1' succeeded
    
    14 CRS-2676: Start of 'ora.asm' on 'rac1' succeeded
    
    15 CRS-2672: Attempting to start 'ora.crsd' on 'rac1'
    
    16 CRS-2676: Start of 'ora.crsd' on 'rac1' succeeded
    
    17 [root@rac1 bin]#

    crsctl start / stop cluster 명령 은 Start CRS stack (ora. csdmonitor, ora. csd, ora. diskmon, ora. ctssd, ora. asm, ora. csd) 만 제어 합 니 다.
          명령 crsctl start / stop cluster 를 사용 하 는 전 제 는 OHASD 프로 세 스 가 시작 되 었 다 는 것 입 니 다.
    결론: crsctl start / stop crs  CRS 에 프로 세 스 OHASD 포함 관리 하기;
    crsctl start / stop cluster 는 OHASD 프로 세 스 를 포함 하지 않 습 니 다. OHASD 프로 세 스 를 먼저 시작 해 야 사용 할 수 있 습 니 다.

    좋은 웹페이지 즐겨찾기