행위

오라클 CRS

DB CAFE

thumb_up 추천메뉴 바로가기


1 오라클 CRS(Cluster Ready Service)[편집]

1.1 개요[편집]

  • 10g R1에서 처음 소개됨 CRS 라 불림
  • 10g R2에서 Oracle Clusterware로 이름이 바뀜.
  • 11g R2부터 ASM + Clusterware를 묶어서 Grid Infrastrucoure 로 분류, OHAS(Oracle High Availablity Services) 라 칭함
  • 여전히 CRS라고 불림

1.2 CRS 시작/종료/상태 확인[편집]

Oracle Clusterware의 시작 , 종료 및 상태를 확인

1.2.1 CRS 시작[편집]

  1. HACMP 기동여부 확인

HACMP 기동 확인 : clstrmgrES,clinfoES 확인

root# > lssrc -g cluster
  1. Shared Disks Mode 확인

Shared Disk가 모든 Node 에서 Access 가능한 상태 인지 확인

root# > lsvg -o
  1. /usr/es/sbin/cluster/clstat 결과 확인
모든 Cluster Node의 상태가 모두 UP 상태이어야 한다. 
 이 때, 서버의 상태뿐만 아니라 Network Interface 등도 함께 확인한다. 
  1. Oracle Clusterware Process 확인
  • CRS 시작 전 해당 Node의 CRS가 이미 기동되어 있는지 여부 확인 . 기동중인 상태에서 다시 Start해도 문제 발생하지 않음.
  • 다른 Node에서 start가 진행중인 경우 결과를 확인하고 서버별로 순차적으로 진행할것. 서버에서 동시에 실행할 경우 Race Condition이 발생할수 있음.
root# > ps -ef |grep d.bin
root# > crsctl check has
root# > crsctl check crs
root# > crsctl status resource -t -init

1.2.2 CRSCTL 명령어[편집]

1.2.2.1 시작/종료 (root로 실행)[편집]

$GRID_HOME/bin/crsctl stop crs
 
$GRID_HOME/bin/crsctl start crs

1.2.2.2 클러스터 자동시작 enable/disable[편집]

$GRID_HOME/bin/crsctl config crs 

$GRID_HOME/bin/crsctl disable crs
 
$GRID_HOME/bin/crsctl enable crs

cat /etc/oracle/scls_scr/racnode1/root/ohasdstr

--11.2.0.4
[root@db01 ~]# /opt/app/11.2.0/grid/bin/crsctl disable crs
CRS-4621: Oracle High Availability Services autostart is disabled.
[root@db01 ~]# more /etc/oracle/scls_scr/db01/root/ohasdstr 
disable
[root@db01 ~]# /opt/app/11.2.0/grid/bin/crsctl enable crs
CRS-4622: Oracle High Availability Services autostart is enabled.
[root@db01 ~]# more /etc/oracle/scls_scr/db01/root/ohasdstr 
enable

--12.1.0.2
[root@oemapp1 ~]# /app/12.1.0.2/grid/bin/crsctl disable crs
CRS-4621: Oracle High Availability Services autostart is disabled.
[root@oemapp1 ~]# more /etc/oracle/scls_scr/oemapp1/root/ohasdstr 
disable
[root@oemapp1 ~]# /app/12.1.0.2/grid/bin/crsctl enable crs
CRS-4622: Oracle High Availability Services autostart is enabled.
[root@oemapp1 ~]# more /etc/oracle/scls_scr/oemapp1/root/ohasdstr 
enable

1.2.2.3 클러스터 이름 체크[편집]

$GRID_HOME/bin/cemutlo -n
 
or 
 
$GRID_HOME/bin/olsnodes -c

1.2.2.4 클러스터 버전 체크[편집]

$GRID_HOME/bin/crsctl query crs softwareversion hostname

1.2.2.5 컴포넌트 상태 체크[편집]

$GRID_HOME/bin/crsctl stat res -t
 
$GRID_HOME/bin/crsctl check crs
 
$GRID_HOME/bin/crsctl check cssd
 
$GRID_HOME/bin/crsctl check crsd
 
$GRID_HOME/bin/crsctl check evmd

1.2.2.6 voting disk 체크[편집]

$GRID_HOME/bin/crsctl query css votedisk

1.2.2.7 OCR 체크[편집]

$GRID_HOME/bin/ocrcheck

1.2.2.8 클러스터 사설 네트워크 체크[편집]

$GRID_HOME/bin/oifcfg getif

app0 192.168.39.128 global public
predbib0 192.168.3.192 global cluster_interconnect
predbib1 192.168.4.0 global cluster_interconnect

select NAME,IP_ADDRESS from v$cluster_interconnects;

1.2.2.9 로컬 노드 CRS 체크[편집]

$GRID_HOME/bin/crsctl check crs
 
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online

1.2.2.10 모든 노드 CRS 체크[편집]

$GRID_HOME/bin/crsctl stat res -t
$GRID_HOME/bin/crsctl stat res -t -init

1.2.2.11 클러스터 활성화된 버전 체크[편집]

$GRID_HOME/bin/crsctl query crs activeversion
Oracle Clusterware active version on the cluster is [12.1.0.2.0]

1.2.2.12 stop / start HAS[편집]

$GRID_HOME/bin/crsctl stop has
 
$GRID_HOME/bin/crsctl start has

1.2.2.13 원격 노드 CRS 체크[편집]

$GRID_HOME/bin/crsctl check cluster

1.2.2.14 voting diks:disk time out 체크[편집]

$GRID_HOME/bin/crsctl get css disktimeout
CRS-4678: Successful get disktimeout 200 for Cluster Synchronization Services.

1.2.2.15 MissCount 체크[편집]

crsctl get css misscount
CRS-4678: Successful get misscount 30 for Cluster Synchronization Services.

1.2.2.16 voting disk 다른 disk group 으로 이동 하기[편집]

crsctl replace votedisk +OCRVD
Successful addition of voting disk 2e4ded6cee504fc8bf078b080fb7be6f.
Successful addition of voting disk 8e87826024e24fffbf5add65c011fc66.
Successful addition of voting disk e1ba56dedff84fa8bf5605e0302fc81e.
Successful deletion of voting disk 2b7ce864c44d4fecbf60885a188290af.
Successfully replaced voting disk group with +OCRVD.
CRS-4266: Voting file(s) successfully replaced

1.2.2.17 신규 votedisk 추가[편집]

crsctl add css votedisk

1.2.2.18 votedisk 삭제[편집]

crsctl delete css votedisk

1.2.2.19 OCR backup 체크[편집]

ocrconfig -showbackup

1.2.2.20 cluster standard or flex ASM 체크[편집]

crsctl get cluster mode status
 
Cluster is running in "standard" mode

1.2.2.21 CRS Config 체크[편집]

crsctl config crs

1.2.2.22 HAS 명령어[편집]

crsctl check has
crsctl config has
crsctl disable has
crsctl enable has
crsctl query has releaseversion
crsctl query has softwareversion
crsctl start has
crsctl stop has