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)にしたりしていない場合に発生する可能性があります。
ピアを再びクラスタに追加しようとすると、Cluster Managerはバケットが以前にクラスタ化されたことを認識しますが、一部のバケットはクラスタ化バケットの命名規則に従っていません。
インデクサがクラスタに再参加するためには、バケット名に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
|
初版 |