현상

Windows Cluster 서비스 시작이 되지 않을때

에러 로그

The Cluster service cannot be started. An attempt to read configuration data from the Windows registry failed with error '2'. Please use the Failover Cluster Management snap-in to ensure that this machine is a member of a cluster. If you intend to add this machine to an existing cluster use the Add Node Wizard. Alternatively, if this machine has been configured as a member of a cluster, it will be necessary to restore the missing configuration data that is necessary for the Cluster Service to identify that it is a member of a cluster. Perform a System State Restore of this machine in order to restore the configuration data.

 Cluster Service 시작시 에러

해결

administration 권한으로 Cmd 오픈 후, 아래 명령어 실행하여 클러스터 초기화 진행

Cluster Node ServerName /ForceCleanup

아래 명령어로 클러스터 추가

Start-DatabaseAvailabilityGroup DAG1 -MailboxServer SiteA-Mbx1

해소되지 않는 경우 클러스터 신규 구성을 추천..

 

참고

http://www.lab365.in/2017/03/the-cluster-service-cannot-be-started.html

정보

Windosws에서 서비스는 사용자 관리자(service.msc)에 의해 실행

리눅스의 경우 명령어 뒤에 &를 붙여서 백그라운드 실행가능

Windows의 경우 sc.exe를 실행하여 생성 가능

 

등록 방법

telegraf.exe을 등록하는 예
(관리자권한으로 cmd 실행)

sc create telegraf_agnet binpath= "C:\Program Files\Telegraf\telegraf.exe" displayname= "telegraf_Agent" start= auto

(참고) 서비스 삭제
sc delete telegraf_agent

 

참고

https://docs.microsoft.com/ko-KR/windows-server/administration/windows-commands/sc-create

https://gentian.tistory.com/1

Windows Server 환경에서 클러스터 구성시, 클러스터에 포함할 서버가 추가되지 않는 경우가 발생

 

1. host3.kook.com 노드 추가 > 오류 메시지 발생

2. 추가할 host3의 서비스를 확인 > Remote Registry > 시작

3. Server 서비스 > 시작

4. host3번을 다시 추가

참고

https://jkmoon.tistory.com/entry/%EC%9B%90%EA%B2%A9-%EB%A0%88%EC%A7%80%EC%8A%A4%ED%8A%B8%EB%A6%AC%EC%97%90-%EC%95%A1%EC%84%B8%EC%8A%A4%ED%95%98%EC%A7%80-%EB%AA%BB%ED%96%88%EC%8A%B5%EB%8B%88%EB%8B%A4

 

원격 레지스트리에 액세스하지 못했습니다.

Windows Server 2012 환경에서 클러스터 만들기 마법사를 통해, 클러스터 구성시, 추가 호스트 를 추가할 때 아래와 같은 오류가 발생 하였습니다. 간단히 해당 오류에 대한 조치 방법을 정리 하도록

jkmoon.tistory.com

 

CPU Core를 효율적으로 사용하기 위해, hyperthread 기법을 사용하여 물리 코어의 2배로 논리 코어를 할당하여 사용 하는 경우가 있음.

 

wmic 명령어로 물리 및 논리 코어 카운트 확인

  numberofcores : 물리코어

  numberoflogicalprocessors : 논리코어

-- 아래는 소켓이 2개이며 하이퍼 스레딩을 사용하여 물리 CPU는 16개, 논리 CPU는 32개
C:W>wmic cpu get numberofcores,numberoflogicalprocessors
numberofcores	numberoflogicalprocessors
8		16
8		16

MSINFO32

시작 - 실행 - MSINFO32 실행

 

요약

[cmd 관리자 모드로 접속] 

 

--명령어 실행
diskpart

-- disk 리스트 확인
list disk

-- disk 선택
select disk 1

-- disk 활성화
online disk
-- readonly 설정 복구
attributes disk clear readonly

 

예제

DISKPART> list disk

  디스크 ###  상태           크기     사용 가능     Dyn  Gpt
  ----------  -------------  -------  ------------  ---  ---
  디스크 0    온라인        279 GB           0 B
  디스크 1    예약됨        558 GB           0 B
  디스크 2    예약됨        279 GB           0 B

DISKPART> select disk 1

1 디스크가 선택한 디스크입니다.

DISKPART> online disk

가상 디스크 서비스 오류:
지정한 디스크 또는 볼륨은 Microsoft 장애 조치(failover) 클러스터링 구성 요소에서
 관리합니다. 이 작업을 수행하려면 디스크가 클러스터 유지 관리 모드이고 클러스터
리소스 상태가 온라인이어야 합니다.

<<< 클러스터에 추가한 노드 제거...(클러스터에 노드 추가시 저장소 포함으로 설정하여 문제가 발생함...)

DISKPART> online disk

DiskPart에서 선택한 디스크를 온라인으로 설정했습니다.

DISKPART> attributes disk clear readonly

디스크 특성을 지웠습니다.

DISKPART> select disk 2

2 디스크가 선택한 디스크입니다.

DISKPART> online disk

DiskPart에서 선택한 디스크를 온라인으로 설정했습니다.

DISKPART> attributes disk clear readonly

디스크 특성을 지웠습니다.

DISKPART> list disk

  디스크 ###  상태           크기     사용 가능     Dyn  Gpt
  ----------  -------------  -------  ------------  ---  ---
  디스크 0    온라인        279 GB           0 B
  디스크 1    온라인        558 GB           0 B
* 디스크 2    온라인        279 GB           0 B

DISKPART>

to Top