반응형

■ 환경

  • OS : Linux 9.6
  • DB : 19.25 RAC

■ 현상

  • 2호기에서 root.sh 수행시 아래와 같은 에러발생.
CLSRSC-214: Failed to start the resource 'ohasd'
Failed to start the Clusterware. Last 20 lines of the alert log follow: 
  • oashd.bin process 에 PID 확인
# ps -ef |grep d.bin
root        2149       1  5 17:19 ?        00:00:01 /fsgrid/app/grid/product/bin/ohasd.bin exclusive
  • oashd.bin PID를 가지고 strace 수행 시 아래와 같은 내용을 확인 할 수 있음nanosleep({tv_sec=0, tv_nsec=0}, 0x7ffcb48c74a0) = 0
    access("", F_OK) = -1 ENOENT (그런 파일이나 디렉터리가 없습니다)
    nanosleep({tv_sec=0, tv_nsec=0}, 0x7ffcb48c74a0) = 0
    access("",", F_OK) = -1 ENOENT (그런 파일이나 디렉터리가 없습니다)
    nanosleep({tv_sec=0, tv_nsec=0}, 0x7ffcb48c74a0) = 0
    access("",", F_OK) = 0
    getpid() = 8657
    openat(AT_FDCWD, "/proc/8657/cgroup\n", O_RDONLY) = -1 ENOENT (그런 파일이나 디렉터리가 없습니다)
    write(1, "Handshake with the watchdog's be"..., 45) = 45
    umask(022) = 022
    prctl(PR_SET_DUMPABLE, SUID_DUMP_USER) = 0
  • ",/var/tmp/.oracle/npohasd2
  • ",/var/tmp/.oracle/npohasd2
  • /var/tmp/.oracle/npohasd2
  • strace -p 2149

■ 원인

strace 분석 결과, 소켓 통신에 필요한 /var/tmp/.oracle/npohasd2 파일이 생성되지 않아 오류가 발생한 것으로 확인됨.
원인은 SELinux 활성화로 인한 권한 제한이었으며, 이를 비활성화(disable)한 후 root.sh를 재실행하여 정상적으로 완료함.

■참조

Troubleshoot Grid Infrastructure Startup Issues in 12.1.0.2 and Higher (문서 ID 2801511.1)
Cluster Failed to Start Due to Problem With Socket Pipe npohasd (문서 ID 1612325.1)
Setup Grid Infrastructure root script failed with error - /etc/oracle/scls_scr//root/ohasdrun: Permission denied on the /var/log/message (문서 ID 3005535.1) <- 핵심

반응형

+ Recent posts