프린트 하기 URL 복사

OS 환경 : Oracle Linux 8.4 (64bit)

 

DB 환경 : Oracle Database 19.27.0.0

 

에러 : Unable to instantiate disk "DATA01"

2노드 RAC를 구축중인 환경의 1번 노드에서 oracleasm disk를 정상적으로 추가 완료한 후
2번 노드에서 oracleasm scandisks시 Unable to instantiate disk "디스크명" 에러가 발생하는 문제

 

 

1번 노드에서 oracleasm disk 생성

1
2
3
4
5
6
# 
oracleasm createdisk OCRVOTE1 /dev/19c_oraasm/OCRVOTE1
oracleasm createdisk OCRVOTE2 /dev/19c_oraasm/OCRVOTE2
oracleasm createdisk OCRVOTE3 /dev/19c_oraasm/OCRVOTE3
oracleasm createdisk DATA01 /dev/19c_oraasm/DATA
oracleasm createdisk RECO01 /dev/19c_oraasm/RECO

 

 

1번 노드에서 scandisks 수행

1
2
3
4
# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...

 

 

1번 노드에서 listdisks 수행

1
2
3
4
5
6
# oracleasm listdisks
DATA01
OCRVOTE1
OCRVOTE2
OCRVOTE3
RECO01

1번 노드에서는 잘보임

 

 

2번 노드에서 scandisks 수행

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Instantiating disk "DATA01"
Unable to instantiate disk "DATA01"
Instantiating disk "RECO01"
Unable to instantiate disk "RECO01"
Instantiating disk "OCRVOTE1"
Unable to instantiate disk "OCRVOTE1"
Instantiating disk "OCRVOTE2"
Unable to instantiate disk "OCRVOTE2"
Instantiating disk "OCRVOTE3"
Unable to instantiate disk "OCRVOTE3"

모든 디스크가 Unable to instantiate disk로 나옴
(디스크를 초기화(인스턴스화)하지 못했습니다.)

 

 

이 상태에서 listdisks시 아무것도 안나옴

1
# oracleasm listdisks

 

 

해결 방법 : 2번 노드에서 oracleasm configure 설정 및 init 기동

2번 노드에서 oracleasm configure 설정 및 init 기동

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# oracleasm configure -i
Configuring the Oracle ASM library driver.
 
This will configure the on-boot properties of the Oracle ASM library
driver.  The following questions will determine whether the driver is
loaded on boot and what permissions it will have.  The current values
will be shown in brackets ('[]').  Hitting <ENTER> without typing an
answer will keep that current value.  Ctrl-C will abort.
 
Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done

 

 

init 명령으로 oracleasm 패키지 기동

1
2
3
4
5
# oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Configuring "oracleasm" to use device physical block size
Mounting ASMlib driver filesystem: /dev/oracleasm

 

 

다시 scandisks 및 listdisks 수행

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Instantiating disk "DATA01"
Instantiating disk "RECO01"
Instantiating disk "OCRVOTE1"
Instantiating disk "OCRVOTE2"
Instantiating disk "OCRVOTE3"
 
# oracleasm listdisks
DATA01
OCRVOTE1
OCRVOTE2
OCRVOTE3
RECO01

정상적으로 표시됨

 

원인 : 2번 노드에서 oracleasm configure를 해주지 않아 발생한 문제

2번 노드에서 oracleasm configure를 해주지 않아 어떤 유저와 그룹의 디스크를 읽어야 할지 oracleasm이 모르는 상태였음
oracleasm configure 명령 수행 후 정상적으로 확인됨

 

 

참조 : 

https://blog.naver.com/tarzan09/150084653437