프린트 하기 URL 복사

OS 환경 : Oracle Linux 8.7 (64bit)

 

DB 환경 : Oracle Database 19.27.0.0

 

에러 : CLSCRED0101:clsCredDomInitRootDom: Using user given storage context for repository access.

2 노드 rac 환경에서 1번 노드만 asm 및 grid, db가 잘올라오고 2번 노드는 asm 리소스까지만 올라오고 이후 안올라오는 문제가 발생함
정확히는 CRS-2672: Attempting to start 'ora.storage' on 부분에서 더이상 기동되지 못함
이때 2번 노드 asm 인스턴스를 수동으로 기동하면 이후 리소스들이 잘 기동되는 현상이 발생함

 

 

2번노드 crs 기동 시도

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# crsctl start crs -wait
CRS-4123: Starting Oracle High Availability Services-managed resources
CRS-2672: Attempting to start 'ora.evmd' on 'orcl1'
CRS-2672: Attempting to start 'ora.mdnsd' on 'orcl1'
CRS-2676: Start of 'ora.evmd' on 'orcl1' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'orcl1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'orcl1'
CRS-2676: Start of 'ora.gpnpd' on 'orcl1' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'orcl1'
CRS-2676: Start of 'ora.gipcd' on 'orcl1' succeeded
CRS-2672: Attempting to start 'ora.crf' on 'orcl1'
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'orcl1'
CRS-2676: Start of 'ora.cssdmonitor' on 'orcl1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'orcl1'
CRS-2672: Attempting to start 'ora.diskmon' on 'orcl1'
CRS-2676: Start of 'ora.diskmon' on 'orcl1' succeeded
CRS-2676: Start of 'ora.crf' on 'orcl1' succeeded
CRS-2676: Start of 'ora.cssd' on 'orcl1' succeeded
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'orcl1'
CRS-2672: Attempting to start 'ora.ctssd' on 'orcl1'
CRS-2676: Start of 'ora.ctssd' on 'orcl1' succeeded
CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'orcl1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'orcl1'
CRS-2676: Start of 'ora.asm' on 'orcl1' succeeded
CRS-2672: Attempting to start 'ora.storage' on 'orcl1'
(대기) <-- !! 대기 및 더이상 진행되지 않음

정상적으로 기동되지 못함, 이때 2번노드 asm 인스턴스에 접속해서 startup을 수행해주면 다음 리소스들이 기동되는 현상 발생

 

 

로그 확인시 아래 에러 발생

1
2
3
4
5
6
7
8
9
10
11
12
$ tail -300f /u01/app/grid/base/diag/crs/orcl1/crs/trace/ohasd_orarootagent_root.trc
2026-09-03 15:34:25.060 : ORA-01017: invalid username/password; logon denied
2026-09-03 15:34:25.075 : CLSCRED:374499072: (:CLSCRED0101:)clsCredDomInitRootDom: Using user given storage context for repository access.
2026-09-03 15:34:25.103 : USRTHRD:374499072: [     INFO] {0:5:3} [ora.storage] 9348 Error 4 querying length of attr ASM_DISCOVERY_ADDRESS
 
2026-09-03 15:34:25.107 : USRTHRD:374499072: [     INFO] {0:5:3} [ora.storage] 9348 Error 4 querying length of attr ASM_STATIC_DISCOVERY_ADDRESS
 
2026-09-03 15:34:25.143 : CLSCRED:374499072: (:CLSCRED1079:)clsCredOcrKeyExists: Obj dom : SYSTEM.credentials.domains.root.ASM.Self.39ad70104aa85f39bf69dab6f3eff674.root not found  <<--!! credentials을 못찾는다고 나옴
2026-09-03 15:34:25.143 : USRTHRD:374499072: [     INFO] {0:5:3} [ora.storage] 9066 Error 4 opening dom root in 0x7fcc0417cd30
 
2026-09-03 15:34:25.828 : USRTHRD:1145153280: [     INFO] {0:5:3} Thread:kgfoCheckMountExt Tasklet::doTask m_cv.timewait returned
2026-09-03 15:34:26.416 : default:374499072: clsCredDomClose: Credctx deleted 0x7fcc042e38d0

 

 

해결 방법 : asm password file 위치 정상화

asm config 확인

1
2
3
4
5
6
7
$ srvctl config asm
ASM home: <CRS home>
Password file: +DATA/ORCL/password
Backup of Password file: +OCR/orapwASM_backup
ASM listener: LISTENER
ASM instance count: 3
Cluster ASM listener: ASMNET1LSNR_ASM

asm인스턴스의 pw파일 경로가 잘 등록되어있는것으로 보임

 

 

+DATA 경로에서 asm 패스워드 파일 확인

1
2
3
$ asmcmd ls -ls +DATA/ORCL/password
Type      Redund  Striped  Time             Sys  Block_Size  Blocks  Bytes  Space  Name
PASSWORD  UNPROT  COARSE   JUL 27 23:00:00  Y           512       4   2048      0  pwdORCL.271.1239751805

이 경로에서는 +DATA/ORCL/password/pwdORCL.271.1239751805에 파일이 있음

 

 

+OCR 경로에서 asm 패스워드 파일 확인

1
2
3
4
5
6
$ asmcmd ls -ls +OCR
Type      Redund  Striped  Time             Sys  Block_Size  Blocks  Bytes  Space  Name
                                            Y                                      ASM/
                                            Y                                      ORCL/
PASSWORD  HIGH    COARSE   JUL 27 06:00:00  N           512       6   3072      0  orapwasm => +OCR/ASM/PASSWORD/pwdasm.256.1239689663
PASSWORD  HIGH    COARSE   JUL 27 06:00:00  N           512       5   2560      0  orapwasm_backup => +OCR/ASM/PASSWORD/pwdasm.257.1239689901

이 경로에서는 +OCR/orapwasm(+OCR/ASM/PASSWORD/pwdasm.256.1239689663)에 파일이 있음

 

 

현재 +OCR과 +DATA 디스크 그룹 모두 패스워드 파일이 존재하는것으로 보임
그리고 srvctl config asm으로 봤을때 패스워드 파일이 +DATA/ORCL/password로 등록되어 있음
정상적으로 동작하려면 +DATA/ORCL/password/pwdORCL.271.1239751805로 작성되어 있어야함
아마 이전에 테스트하다가 잘못 등록한것으로 보임
하지만 +DATA 영역에 있는 패스워드 파일은 asm 패스워드 파일이 아닌 DB 패스워드 파일로 보임

OCR 영역에 있는 패스워드 파일(+OCR/ASM/PASSWORD/pwdasm.256.1239689663)을 asm 패스워드 파일로 등록해줘야함

 

 

asm의 pwfile 위치 변경

1
$ srvctl modify asm -pwfile +OCR/ASM/PASSWORD/pwdasm.256.1239689663

변경됨

 

 

asm config 재확인

1
2
3
4
5
6
7
$ srvctl config asm
ASM home: <CRS home>
Password file: +OCR/ASM/PASSWORD/pwdasm.256.1239689663
Backup of Password file: +OCR/orapwASM_backup
ASM listener: LISTENER
ASM instance count: 3
Cluster ASM listener: ASMNET1LSNR_ASM

정상적으로 변경됨

 

 

위 명령 수행 즉시 2번노드 grid 기동이 진행됨

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# crsctl start crs -wait
CRS-4123: Starting Oracle High Availability Services-managed resources
CRS-2672: Attempting to start 'ora.evmd' on 'orcl1'
CRS-2672: Attempting to start 'ora.mdnsd' on 'orcl1'
CRS-2676: Start of 'ora.evmd' on 'orcl1' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'orcl1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'orcl1'
CRS-2676: Start of 'ora.gpnpd' on 'orcl1' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'orcl1'
CRS-2676: Start of 'ora.gipcd' on 'orcl1' succeeded
CRS-2672: Attempting to start 'ora.crf' on 'orcl1'
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'orcl1'
CRS-2676: Start of 'ora.cssdmonitor' on 'orcl1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'orcl1'
CRS-2672: Attempting to start 'ora.diskmon' on 'orcl1'
CRS-2676: Start of 'ora.diskmon' on 'orcl1' succeeded
CRS-2676: Start of 'ora.crf' on 'orcl1' succeeded
CRS-2676: Start of 'ora.cssd' on 'orcl1' succeeded
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'orcl1'
CRS-2672: Attempting to start 'ora.ctssd' on 'orcl1'
CRS-2676: Start of 'ora.ctssd' on 'orcl1' succeeded
CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'orcl1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'orcl1'
CRS-2676: Start of 'ora.asm' on 'orcl1' succeeded
CRS-2672: Attempting to start 'ora.storage' on 'orcl1'
CRS-2676: Start of 'ora.storage' on 'orcl1' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'orcl1'  <<--!! 정상적으로 진행됨
CRS-2676: Start of 'ora.crsd' on 'orcl1' succeeded
CRS-6017: Processing resource auto-start for servers: orcl1
CRS-2673: Attempting to stop 'ora.orcl1.vip' on 'orcl2'
CRS-2672: Attempting to start 'ora.ons' on 'orcl1'
CRS-2672: Attempting to start 'ora.chad' on 'orcl1'
CRS-2677: Stop of 'ora.orcl1.vip' on 'orcl2' succeeded
CRS-2672: Attempting to start 'ora.orcl1.vip' on 'orcl1'
CRS-2676: Start of 'ora.orcl1.vip' on 'orcl1' succeeded
CRS-2672: Attempting to start 'ora.LISTENER.lsnr' on 'orcl1'
CRS-2676: Start of 'ora.chad' on 'orcl1' succeeded
CRS-2676: Start of 'ora.LISTENER.lsnr' on 'orcl1' succeeded
CRS-33672: Attempting to start resource group 'ora.asmgroup' on server 'orcl1'
CRS-2672: Attempting to start 'ora.asmnet1.asmnetwork' on 'orcl1'
CRS-2676: Start of 'ora.asmnet1.asmnetwork' on 'orcl1' succeeded
CRS-2672: Attempting to start 'ora.ASMNET1LSNR_ASM.lsnr' on 'orcl1'
CRS-2676: Start of 'ora.ASMNET1LSNR_ASM.lsnr' on 'orcl1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'orcl1'
CRS-2676: Start of 'ora.ons' on 'orcl1' succeeded
CRS-2676: Start of 'ora.asm' on 'orcl1' succeeded
CRS-33676: Start of resource group 'ora.asmgroup' on server 'orcl1' succeeded.
CRS-2672: Attempting to start 'ora.DATA.dg' on 'orcl1'
CRS-2672: Attempting to start 'ora.RECO.dg' on 'orcl1'
CRS-2676: Start of 'ora.DATA.dg' on 'orcl1' succeeded
CRS-2676: Start of 'ora.RECO.dg' on 'orcl1' succeeded
CRS-2672: Attempting to start 'ora.ORCL.db' on 'orcl1'
CRS-2676: Start of 'ora.ORCL.db' on 'orcl1' succeeded
CRS-6016: Resource auto-start has completed for server orcl1
CRS-6024: Completed start of Oracle Cluster Ready Services-managed resources
CRS-4123: Oracle High Availability Services has been started.

정상적으로 기동됨

 

 

로그 확인

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$ tail -300f /u01/app/grid/base/diag/crs/orcl1/crs/trace/ohasd_orarootagent_root.trc
2026-09-03 15:34:27.462 : default:374499072: clsCredDomClose: Credctx deleted 0x7fcc042e38d0  <--!! Credctx deleted 라고 표시되고 진행됨
2026-09-03 15:34:27.463 : USRTHRD:374499072: [     INFO] {0:5:3} Thread:kgfoCheckMountExt isRunning is reset to false here
2026-09-03 15:34:27.463 : USRTHRD:374499072: [     INFO] {0:5:3} Thread:kgfoCheckMountExt isFinished set to true
2026-09-03 15:34:27.463 : USRTHRD:1145153280: [     INFO] {0:5:3} Thread:kgfoCheckMountExt Tasklet::doTask m_cv.timewait returned
2026-09-03 15:34:27.463 : USRTHRD:1145153280: [     INFO] {0:5:3} Thread:kgfoCheckMountExt Tasklet::doTask(kgfoCheckMountExt) executed in  0 seconds
2026-09-03 15:34:27.463 :CLSDYNAM:1145153280: [ora.storage]{0:5:3} [check] StorageAgent::parsekgforetcodes retcode = 0, kgfoCheckMount(OCR), flag 2
2026-09-03 15:34:27.463 :CLSDYNAM:1145153280: [ora.storage]{0:5:3} [check] StorageAgent::check 260 kgfo returncode 0
2026-09-03 15:34:27.464 :    AGFW:1147254528: [     INFO] {0:5:3} ora.storage 1 1 state changed from: STARTING to: ONLINE  <<--!! ora.storage 상태도 online으로 변경됨
2026-09-03 15:34:27.464 :    AGFW:1147254528: [     INFO] {0:5:3} RECYCLE_AGENT attribute not found
2026-09-03 15:34:27.464 :    AGFW:1147254528: [     INFO] {0:5:3} Switching offline monitor to online one
2026-09-03 15:34:27.464 :    AGFW:1147254528: [     INFO] {0:5:3} Started implicit monitor for [ora.storage 1 1] interval=30000 delay=30000
2026-09-03 15:34:27.464 :    AGFW:1147254528: [     INFO] {0:5:3} Agent sending last reply for: RESOURCE_START[ora.storage 1 1] ID 4098:422
2026-09-03 15:34:27.483 :    AGFW:1147254528: [     INFO] {0:5:3} Agent received the message: RESOURCE_ADD[ora.crsd 1 1] ID 4356:1796
2026-09-03 15:34:27.483 : CLSDADR:1147254528: [    ERROR] (:CLSD0023:)dynamic component [R3269202] mapped to [CLSDYNAM]
2026-09-03 15:34:27.483 :    AGFW:1147254528: [     INFO] {0:5:3} ID = [ora.crsd 1 1] Intermediate Timeout = [720000]
2026-09-03 15:34:27.484 :    AGFW:1147254528: [     INFO] {0:5:3} Added new resource: ora.crsd 1 1 to the agfw
2026-09-03 15:34:27.484 :    AGFW:1147254528: [     INFO] {0:5:3} Agent sending last reply for: RESOURCE_ADD[ora.crsd 1 1] ID 4356:1796
2026-09-03 15:34:27.485 :    AGFW:1147254528: [     INFO] {0:5:3} Agent received the message: RESOURCE_START[ora.crsd 1 1] ID 4098:1798
2026-09-03 15:34:27.486 :    AGFW:1147254528: [     INFO] {0:5:3} Preparing START command for: ora.crsd 1 1
2026-09-03 15:34:27.486 :    AGFW:1147254528: [     INFO] {0:5:3} ora.crsd 1 1 state changed from: UNKNOWN to: STARTING
2026-09-03 15:34:27.486 :    AGFW:1147254528: [     INFO] {0:5:3} RECYCLE_AGENT attribute not found

Credctx deleted 라고 표시되고 잘 기동됨

 

 

crs 상태 확인

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#  crsctl stat res -t
--------------------------------------------------------------------------------
Name           Target  State        Server                   State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
               ONLINE  ONLINE       orcl2                     STABLE
               ONLINE  ONLINE       orcl1                     STABLE
ora.chad
               ONLINE  ONLINE       orcl2                     STABLE
               ONLINE  ONLINE       orcl1                     STABLE
ora.net1.network
               ONLINE  ONLINE       orcl2                     STABLE
               ONLINE  ONLINE       orcl1                     STABLE
ora.ons
               ONLINE  ONLINE       orcl2                     STABLE
               ONLINE  ONLINE       orcl1                     STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.ASMNET1LSNR_ASM.lsnr(ora.asmgroup)
      1        ONLINE  ONLINE       orcl2                     STABLE
      2        ONLINE  ONLINE       orcl1                     STABLE
      3        ONLINE  OFFLINE                               STABLE
ora.DATA.dg(ora.asmgroup)
      1        ONLINE  ONLINE       orcl2                     STABLE
      2        ONLINE  ONLINE       orcl1                     STABLE
      3        OFFLINE OFFLINE                               STABLE
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       orcl2                     STABLE
ora.OCR.dg(ora.asmgroup)
      1        ONLINE  ONLINE       orcl2                     STABLE
      2        ONLINE  ONLINE       orcl1                     STABLE
      3        OFFLINE OFFLINE                               STABLE
ora.RECO.dg(ora.asmgroup)
      1        ONLINE  ONLINE       orcl2                     STABLE
      2        ONLINE  ONLINE       orcl1                     STABLE
      3        OFFLINE OFFLINE                               STABLE
ora.asm(ora.asmgroup)
      1        ONLINE  ONLINE       orcl2                     Started,STABLE
      2        ONLINE  ONLINE       orcl1                     Started,STABLE
      3        OFFLINE OFFLINE                               STABLE
ora.asmnet1.asmnetwork(ora.asmgroup)
      1        ONLINE  ONLINE       orcl2                     STABLE
      2        ONLINE  ONLINE       orcl1                     STABLE
      3        OFFLINE OFFLINE                               STABLE
ora.cvu
      1        ONLINE  ONLINE       orcl2                     STABLE
ora.orcl2.vip
      1        ONLINE  ONLINE       orcl2                     STABLE
ora.orcl1.vip
      1        ONLINE  ONLINE       orcl1                     STABLE
ora.ORCL.db
      1        ONLINE  ONLINE       orcl2                     Open,HOME=/u01/app/o
                                                             racle/product/19.0.0
                                                             /dbhome_1,STABLE
      2        ONLINE  ONLINE       orcl1                     Open,HOME=/u01/app/o
                                                             racle/product/19.0.0
                                                             /dbhome_1,STABLE
ora.qosmserver
      1        ONLINE  ONLINE       orcl2                     STABLE
ora.scan1.vip
      1        ONLINE  ONLINE       orcl2                     STABLE
--------------------------------------------------------------------------------

정상적으로 잘 올라옴

 

 

참고로 asmcmd lspwusr 명령으로 해당 패스워드 파일에 등록된 권한 및 유저를 확인할 수도 있음
asm config의 pwfile에 +DATA/ORCL/password를 등록한 경우

1
2
$ asmcmd lspwusr
Username sysdba sysoper sysasm

패스워드 파일을 찾지 못해 유저가 표시되지 않음

 

 

asm config의 pwfile에 +DATA/ORCL/password/pwdORCL.271.1239751805를 등록한 경우

1
2
3
$ asmcmd lspwusr
Username sysdba sysoper sysasm
     SYS   TRUE    TRUE  FALSE

DB 패스워드 파일을 등록했을 때는 SYS 유저만 표시됨

 

 

asm config의 pwfile에 +OCR/ASM/PASSWORD/pwdasm.256.1239689663(+OCR/orapwasm)를 등록한 경우

1
2
3
4
5
$ asmcmd lspwusr
        Username sysdba sysoper sysasm
             SYS   TRUE    TRUE   TRUE
CRSUSER__ASM_001   TRUE   FALSE   TRUE
         ASMSNMP   TRUE   FALSE  FALSE

정상적으로 SYS 유저와 CRSUSER__ASM_001 유저까지 잘 나옴

 

 

정상적인 asm pwfile을 사용하는 경우 Credential 상태 검증시에도 정상으로 표시됨

1
2
$ asmcmd --nocp credverify
credverify: Credentials created correctly on all nodes.

 

원인 : asm의 패스워드 파일 경로가 잘못 지정 되어 발생한 문제

asm의 패스워드 파일 경로가 잘못 지정 되어 발생한 문제
해결하고 보니 crs log에서도 힌트를 찾을수 있었던것으로 보임 credentials을 찾을수 없다는 에러 였음
또한 1번은 기동되고, 2번을 기동하지 못하고, 수동으로 올리면 됬던것도 pwfile과 연관되어 볼수 있을 것 같음

 

 

참조 : 
CRS startup failed on the second started node with "ORA-01017: invalid username/password; logon denied"(KB125382)
ORA-15077 : while starting ora.storage on non-first node(KB99275)
Ora.Storage Hang With CRS-2757 kgfo_kge2slos error And ORA-12170: TNS:Connect timeout occurred(KB742799)
ora.storage startup issue | failed to connect to ASM | ORA-15077(KB627468)
https://docs.oracle.com/en/database/oracle/oracle-database/19/ostmg/manage-asm-asmcmd.html#GUID-78D76D36-8395-4936-AF53-1A4A27806327
https://dba010.com/2022/03/15/ora-storage-fails-error-4-querying-length-of-attr-asm_discovery_address-ora-01017/
https://blog.naver.com/anjae83/223072914158
https://dba010.com/tag/crs-2672/