WARN CMSlave - Failed to register with cluster master reason: failed method=POST path=/services/cluster/master/peers/?output_mode=json master=mycm .mydomain .com:8089 rv=0 gotConnectionError=0 gotUnexpectedStatusCode=1 actual_response_code=500 expected_response_ code=2xx status_line="Internal Server Error" socket_error="No error" remote_error=Cannot add peer=xxx.xxx.xxx.xxx mgmtport=8089 (reason: bucket already added as clustered, peer attempted to add again as standalone. guid=C76D1F6F-8141-44A3-9BC7-DBEC9F7AFE3A bid= stuff~386
또는
WARN CMSlave - Failed to register with cluster master reason:
failed method=POST path=/services/cluster/master/peers/?output_mode=json master=mycm .mydomain .com:8089
rv=0 gotConnectionError=0 gotUnexpectedStatusCode=1 actual_response_code=500 expected_response_
code=2xx status_line="Internal Server Error" socket_error="No error" remote_error=Cannot add
peer=xxx.xxx.xxx.xxx mgmtport=8089 (reason: cannot add to standalone bucket bid=stuff~386~C76D1F6F-8141-44A3-9BC7-DBEC9F7AFE3A C76D1F6F-8141-44A3-9BC7-DBEC9F7AFE3A peer_name=anindexer.mydomain.com[Complete]). [ event=addPeer status=retrying AddPeerRequest: { batch_serialno=50 batch_size=100 guid=A5DBC4B6-0915-4B70-B36F-CF98BCC302E1 server_name=thisindexer .mydomain .com status=Up } Batch 45/100 ].
index=_internal sourcetype=splunkd component=CMSlave ("this" OR "that") | dedup peer_name | table peer_name, bid
index=_internal sourcetype=splunkd (component=CMMaster OR component=CMManager) AND "A clustered bucket cannot be re-added as standalone" | stats count by guid, bid
example bid: my_index~77~C76D1F6F-8141-44A3-9BC7-DBEC9F7AFE3A format: <index_name>~<bucket_id>~<Indexer_GUID>
example path: /opt/splunk/var/lib/my_index/db_1670588414_1670588340_77 format: /opt/splunk/var/lib/<index_name>/db_<newest_time>_<oldest_time>_<bucket_id>
ls -al "/opt/splunk/var/lib/index_name/db" total 240 drwx------ 46 splunk splunk 8192 Dec 9 17:27 . drwx------ 5 splunk splunk 96 Oct 18 2021 .. -rw------- 1 splunk splunk 9609 Dec 9 17:27 .bucketManifest -rw------- 1 splunk splunk 10 Oct 18 2021 CreationTime drwx--x--- 3 splunk splunk 8192 Nov 23 19:31 db_1669231846_1667683024_66_C76D1F6F-8141-44A3-9BC7-DBEC9F7AFE3A drwx--x--- 3 splunk splunk 8192 Dec 7 03:09 db_1670381865_1669231850_67_C76D1F6F-8141-44A3-9BC7-DBEC9F7AFE3A drwx--x--- 3 splunk splunk 8192 Dec 9 13:43 db_1670588414_1670588340_77 ==> This standalone bucket name needs to be fixed
인덱스 클러스터에서 피어가 비활성화되면 독립형 버킷 명명 규칙을 사용하여 핫 버킷이 워밍으로 롤링됩니다. 유지 관리 전에 인덱서가 클러스터를 유지 관리 모드로 전환하지 않고 인덱서를 오프라인하거나($SPLUNK_HOME/bin/splunk offline) 유지 관리를 수행하는 경우 이가 발생할 수 있습니다.
클러스터에 피어를 다시 추가하려고 하면 클러스터 관리자는 버킷이 이전에 클러스터링되었음을 인식하지만 일부 버킷은 클러스터링된 버킷 이름 지정 규칙을 따르지 않습니다.
인덱서가 클러스터에 다시 참가하려면 버킷 이름에 GUID를 추가하여 독립형 버킷의 이름을 클러스터링된 버킷 명명 규칙으로 변경해야 합니다.
참고: 아래 단계에서는 개별 독립형 버킷 찾기 및 이름 바꾸기에 대해 설명합니다. 대규모 환경에서는 이 프로세스가 몇 시간 또는 며칠이 걸릴 수 있습니다. 이러한 상황에서 이 문서는 매우 유용할 수 있습니다. 인덱서를 다시 인덱서 클러스터로 가져오기 위해 독립형 버킷을 찾고 이름을 바꾸는 프로세스를 자동화하는 방법
$SPLUNK_HOME/bin/splunk enable maintenance-mode
$SPLUNK_HOME/bin/splunk stop
bid= index_name~77~1670588414_1670588340_77디스크에서 독립형 버킷에 대한 버킷 명명 규칙은 다음과 같습니다.
db_<newest_time>_<oldest_time>_<bucket_id>예:
db_1670588414_1670588340_77위의 bid는 아래 디렉터리에 매핑됩니다.
/opt/splunk/var/lib/index_name/db_<newest_time>_<oldest_time>_<bucket_id>예:
/opt/splunk/var/lib/index_name/db_1670588414_1670588340_77참고: /opt/splunk/var/lib/index_name/ 디렉토리에서 버킷을 찾을 수 없는 경우 $SPLUNK_DB 변수에 대해 정의된 경로를 확인합니다. $SPLUNK_HOME/etc/splunk-launch.conf에서 검토할 수 있습니다.
ls -al "/opt/splunk/var/lib/index_name/db" total 240 drwx------ 46 splunk splunk 8192 Dec 9 17:27 . drwx------ 5 splunk splunk 96 Oct 18 2021 .. -rw------- 1 splunk splunk 9609 Dec 9 17:27 .bucketManifest -rw------- 1 splunk splunk 10 Oct 18 2021 CreationTime drwx--x--- 3 splunk splunk 8192 Nov 23 19:31 db_1669231846_1667683024_66_C76D1F6F-8141-44A3-9BC7-DBEC9F7AFE3A drwx--x--- 3 splunk splunk 8192 Dec 7 03:09 db_1670381865_1669231850_67_C76D1F6F-8141-44A3-9BC7-DBEC9F7AFE3A drwx--x--- 3 splunk splunk 8192 Dec 9 13:43 db_1670588414_1670588340_77 **This is the standalone bucket name missing the cluster GUID extension
db_<newest_time>_<oldest_time>_<bucket_id>수신:
db_<newest_time>_<oldest_time>_<bucket_id>_GUIDGUID C76D1F6F-8141-44A3-9BC7-DBEC9F7AFE3A의 예:
$ mv db_1569667714_1569355646_122 db_1569667714_1569355646_122_C76D1F6F-8141-44A3-9BC7-DBEC9F7AFE3A
rm -rf .bucketManifest
$SPLUNK_HOME/bin/splunk start
$SPLUNK_HOME/bin/splunk disable maintenance-mode
자세한 내용은 다음을 참조하십시오.
Splunk 설명서
버킷 명명 규칙
버킷 복제 문제
독립형 버킷으로 인해 인덱서가 클러스터에 다시 참가하지 못합니까?
| 개정 | 게시 날짜 | 의견 |
|---|---|---|
1.0 |
28-Sep-2026
|
최초 릴리스 |