기술 정보
home
채널 소개
home

CM Cluster 등록 시 start failed 현상

문서 유형
장애 해결
분야
설치
키워드
Cluster
CM
Cfile
tas
적용 제품 버전
7FS02PS

현상

CM Cluster 등록 시 cfile 경로 지정 오류로 인해 클러스터가 시작되지 않는 cluster start failed 현상이 발생할 수 있습니다.
CM Cluster 동작을 위해 cluster 등록 과정에서 cluster file (cfile)을 지정하며, file 경로를 ‘,’로 구분해 여러 개를 등록하거나 ‘*’로 지정 할 수 있습니다.
TAS 환경에서 cfile을 등록할 경우 경로 앞에 ‘+’를 붙이면  TAS용 경로로 인식하며, TAS 환경에서 cfile 경로에 ‘+’ 를 누락하면 cluster 가 정상적으로 시작되지 않습니다.

cfile 경로에 ‘+’ 명시 누락한 경우

/dev/tas/disk01, /dev/tas/disk02, /dev/tas/disk03 으로 disk space 구성 예정일 경우의 예시로, /dev/tas 하위에 '*' 파일이 생성되고 클러스터 시작에 실패합니다.
과정
명령어 예시
CM 기동
tbcm -b
network 등록
cmrctl add network --name [ public network name] --nettype public --ifname [interface name] cmrctl add network --name [ prviate network name] --nettype private --ipaddr 192.168.x.x --portno [port number]
cluster 등록
cmrctl add cluster --name [cluster name] --pubnet [public network name] --incnet [private network name] --cfile "/dev/tas/*"
cluster start
[root@tac2 ~]# cmrctl start cluster --name cls Failed to start the resource 'cls'
[cm start fail될 경우 log 기록]
2025/04/25 14:07:40.483 [1] cm_actio:8961(04) [cls] Cluster `cls` init start 2025/04/25 14:07:40.483 [1] cm_fd.c :0133(04) [cls] [ERROR] Cannot open [/dev/tas/*:Invalid argument] 2025/04/25 14:07:40.483 [1] cm_file.:1621(04) [cls] [ERROR] Cannot open CM cluster file (/dev/tas/*) 2025/04/25 14:07:40.483 [1] cm_file.:1643(04) [cls] [ERROR] Failed to open CM files (0/1) 2025/04/25 14:07:40.483 [1] cm_actio:9186(04) [cls] [ERROR] Failed to init CM files 2025/04/25 14:07:40.483 [1] cm_actio:7682(04) [cls] all cluster resource down 2025/04/25 14:07:40.483 [1] cm_actio:9475(04) [cls] Cluster 'cls' down
Plain Text
복사
[/dev/tas 경로 확인]
[root@tac2 ~]# cd /dev/tas [root@tac2 tas]# ll total 0 -rw-r--r-- 1 root root 0 Apr 25 14:07 '*' lrwxrwxrwx 1 root root 6 Apr 25 14:04 disk01 -> ../sdb lrwxrwxrwx 1 root root 6 Apr 25 14:04 disk02 -> ../sdc lrwxrwxrwx 1 root root 6 Apr 25 14:04 disk03 -> ../sdd
SQL
복사

원인

CM Cluster 등록 시 cfile 경로 지정 오류로 발생하는 문제로, TAS 환경에서 cfile을 등록할 경우 경로 앞에 ‘+’를 붙이면  TAS용 경로로 인식합니다.
만약 cfile 경로에 ‘+’ 를 누락하면 cluster 가 정상적으로 시작되지 않습니다.

해결

/dev/tas 경로를 정상적으로 설정하여 cluster를 다시 등록함으로써 해결할 수 있습니다.
과정
명령어 예시
cluster 삭제
cmrctl del cluster --name [cluster name]
cluster 등록
cmrctl add cluster --name cls --pubnet pub2 --incnet int2 --cfile "+/dev/tas/*"
cluster start
cmrctl start cluster --name [cluster name] MSG SENDING SUCCESS!
주의
삭제 시, /dev/tas 하위에서 ‘*’를 삭제하면 disk01,2,3 도 삭제될 수 있으므로 rm\ 으로 삭제합니다.
[root@tac2 tas]# rm \* rm: remove regular empty file '*'? y [root@tac2 tas]# ll total 0 lrwxrwxrwx 1 root root 6 Apr 25 14:04 disk01 -> ../sdb lrwxrwxrwx 1 root root 6 Apr 25 14:04 disk02 -> ../sdc lrwxrwxrwx 1 root root 6 Apr 25 14:04 disk03 -> ../sdd
SQL
복사