<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unable to Add Cluster Peer Back to Cluster master - get Error -Adding a non-standalone bucket as standalone! in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-Add-Cluster-Peer-Back-to-Cluster-master-get-Error/m-p/186300#M1744</link>
    <description>&lt;P&gt;This steps worked on version 7.0.2 , i am new to Splunk and implementing in AWS , &lt;BR /&gt;
excellent help '  The problem bucket will stand out like a sore thumb '&lt;/P&gt;</description>
    <pubDate>Mon, 16 Apr 2018 13:39:37 GMT</pubDate>
    <dc:creator>chandanghoshCTL</dc:creator>
    <dc:date>2018-04-16T13:39:37Z</dc:date>
    <item>
      <title>Unable to Add Cluster Peer Back to Cluster master - get Error -Adding a non-standalone bucket as standalone!</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-Add-Cluster-Peer-Back-to-Cluster-master-get-Error/m-p/186296#M1740</link>
      <description>&lt;P&gt;My cluster peers went down after making some changes to indexes.conf on the master and now I am unable to add a peer in our two peer environment. Our Splunk instances are all 5.0.4 running RHEL.&lt;/P&gt;
&lt;P&gt;In splunkd.log, I see the following types of errors on the cluster master:&lt;/P&gt;
&lt;P&gt;12-16-2013 18:25:19.050 -0800 ERROR CMMaster - event=addPeer guid=XXXXXXXX-XXX-XXX-XXX-XXXXXXXXXXXX status=failed err="Adding a non-standalone bucket as standalone!"&lt;/P&gt;
&lt;P&gt;12-16-2013 18:25:19.052 -0800 ERROR ClusterMasterPeerHandler - Cannot add peer=xxx.xxx.xxx.xxx mgmtport=8089 (reason: Adding a non-standalone bucket as standalone!)&lt;/P&gt;
&lt;P&gt;We stopped the cluster master and both peers, removed the bucket being complained about, then brought up both peers and the master. After that, the peer which was previously reported as down was listed as up. However, now the peer which was up was listed as down, and the logs showed similar errors about this peer&lt;/P&gt;
&lt;P&gt;Has anyone else see this, and what can be done to resolve this error?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 22:29:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-Add-Cluster-Peer-Back-to-Cluster-master-get-Error/m-p/186296#M1740</guid>
      <dc:creator>rbal_splunk</dc:creator>
      <dc:date>2020-06-07T22:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Add Cluster Peer Back to Cluster master - get Error -Adding a non-standalone bucket as standalone!</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-Add-Cluster-Peer-Back-to-Cluster-master-get-Error/m-p/186297#M1741</link>
      <description>&lt;P&gt;We saw this problem after editing indexes.conf, which was being done in &lt;CODE&gt;$SPLUNK_HOME/etc/master-apps/_cluster/default/indexes.conf&lt;/CODE&gt;(by mistake). Since new indexes were being added, our theory is things turned sour during this process which caused the peers to believe they weren't members of the cluster and start indexing buckets as stand alone. We saw a number of buckets created without the instance GUID prepended to them, which is the format of standalone buckets. &lt;/P&gt;

&lt;P&gt;To resolve the issue so that we could add the peers, we needed to remove all of the buckets that threw messages identifying them as standalone on each peer. &lt;/P&gt;

&lt;P&gt;The messages we used looked like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;12-16-2013 18:25:19.050 -0800 INFO CMMaster - Adding bid=&amp;lt;index_name&amp;gt;~&amp;lt;bucketid&amp;gt;~&amp;lt;instanceGUID&amp;gt; (status='Complete' search_status='Searchable' mask=xxxxxxxxxxxxxxxxxxxxx checksum= standalone=yes size=1007447 genid=0) to peer=&amp;lt;peerGUID&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;We found about 14 buckets between both the Peers that were created without the GUID and/or were listed as standalone buckets.  &lt;/P&gt;

&lt;P&gt;----Steps Taken to restore the peers to cluster----&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Stopped Cluster Mater and both Peers, in that order. It was important that things be done in this order.&lt;/LI&gt;
&lt;LI&gt;Identified the list of buckets in Peer1 and Peer2 that are missing GUIDs and/or otherwise identified as standalone by reviewing splunkd.log as per the above explanation.&lt;/LI&gt;
&lt;LI&gt;Moved each of these buckets to /temp folder created for each index, in order to keep track of their source for restoration purposes.&lt;/LI&gt;
&lt;LI&gt;We moved the custom pieces of indexes.conf mistakenly introduced to &lt;CODE&gt;$SPLUNK_HOME/etc/master-apps/_cluster/local/indexes.conf&lt;/CODE&gt;.&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Restarted each of the peers, then the master, in that order. Also, as per step 1, the order in which instances are restarted is important. For details, see the &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.6/Indexer/Restartthecluster" target="_blank"&gt;documentation&lt;/A&gt;.&lt;/LI&gt;
&lt;LI&gt;Checked on the master to validate that all peers had successfully been added and that our new indexes.conf existed in &lt;CODE&gt;$SPLUNK_HOME/etc/slave-apps/_cluster/local/indexes.conf&lt;/CODE&gt; .&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;At this point, the cluster was back up and working. Now we needed to reintroduce the standalone buckets back into the cluster. Here is the process we followed:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;In /temp/&lt;INDEXNAME&gt; we renamed the buckets and prepended the GUID, to force compliance of with naming conversion  of non standalone buckets.  This guid can be found in $SPLUNK_HOME/etc/instance.cfg. Here is an example: &lt;CODE&gt;mv db_&amp;lt;newest_time&amp;gt;_&amp;lt;oldest_time&amp;gt;_&amp;lt;bucketid&amp;gt; db_&amp;lt;newest_time&amp;gt;_&amp;lt;oldest_time&amp;gt;_&amp;lt;bucketid&amp;gt;_&amp;lt;guid&amp;gt;&lt;/CODE&gt;&lt;/INDEXNAME&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Copied buckets &lt;CODE&gt;db_&amp;lt;newest_time&amp;gt;_&amp;lt;oldest_time&amp;gt;_&amp;lt;bucketid&amp;gt;_&amp;lt;guid&amp;gt;&lt;/CODE&gt; to &lt;CODE&gt;$SPLUNK_HOME/IndexName/db&lt;/CODE&gt; folder on local instance.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Created the replicated bucket by copying &lt;CODE&gt;db_&amp;lt;newest_time&amp;gt;_&amp;lt;oldest_time&amp;gt;_&amp;lt;bucketid&amp;gt;_&amp;lt;guid&amp;gt; to rb_&amp;lt;newest_time&amp;gt;_&amp;lt;oldest_time&amp;gt;_&amp;lt;bucketid&amp;gt;_&amp;lt;guid&amp;gt;&lt;/CODE&gt; &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Copied buckets &lt;CODE&gt;rb_&amp;lt;newest_time&amp;gt;_&amp;lt;oldest_time&amp;gt;_&amp;lt;bucketid&amp;gt;_&amp;lt;guid&amp;gt;&lt;/CODE&gt; to `$SPLUNK_DB/IndexName/colddb' folder on the remote peer in the proper index.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Stopped both peers, then cluster master(again, order matters.)&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Started both indexer peers, then cluster master. &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Verified that Bucket is Visible to Cluster Master REST endpoint by navigation to SOS App &amp;gt; Indexing&amp;gt; Index Replication&amp;gt; Cluster Master view. Reviewing ‘Bucket information’ showed our copied &lt;BR /&gt;
buckets as searchable. &lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:31:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-Add-Cluster-Peer-Back-to-Cluster-master-get-Error/m-p/186297#M1741</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2020-09-28T15:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Add Cluster Peer Back to Cluster master - get Error -Adding a non-standalone bucket as standalone!</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-Add-Cluster-Peer-Back-to-Cluster-master-get-Error/m-p/186298#M1742</link>
      <description>&lt;P&gt;We are using version 6.5.2, I discovered something similar. Our searchheads were showing an error: Failed to add peer 'guid=B193F763-99BC-41B5-89D0-CDEF1F1BF36E server name=splunkindexer14 ip=192.168.12.24:8089' to the master.&lt;BR /&gt;
 Error=bucket already added as clustered, peer attempted to add again as standalone. guid=B193F763-99BC-41B5-89D0-CDEF1F1BF36E bid= myindex~38~B193F763-99BC-41B5-89D0-CDEF1F1BF36E&lt;/P&gt;

&lt;P&gt;) To fix this I needed to find the bucket:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Log into the indexer, become splunk, get in the path of the offending bucket and find it.
$&amp;gt; su - splunk
$&amp;gt; cd /x/x1/db/&amp;lt;index&amp;gt;
$&amp;gt; ls -lh
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2) The problem bucket will stand out like a sore thumb and be easy to spot because its name will be shorter than all the others.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Actual standalone bucket that caused the problem:   db_1487878740_1487878740_38
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;3) Rename it using move as shown below, adding the CM GUID: (leaving out the double quotes)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$&amp;gt; mv “db_1487878740_1487878740_38” “db_1487878740_1487878740_38_B193F763-99BC-41B5-89D0-CDEF1F1BF36E”
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;4) Now do list again ( “ls | grep ” ) and verify you were successful, you should see the renamed bucket:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$&amp;gt; ls | grep db_1487878740_1487878740_38

db_1487878740_1487878740_38_B193F763-99BC-41B5-89D0-CDEF1F1BF36E
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;5) Reboot the indexer&lt;/P&gt;

&lt;P&gt;Many thanks Rajpal!  &lt;/P&gt;</description>
      <pubDate>Sat, 25 Feb 2017 04:26:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-Add-Cluster-Peer-Back-to-Cluster-master-get-Error/m-p/186298#M1742</guid>
      <dc:creator>ehollima</dc:creator>
      <dc:date>2017-02-25T04:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Add Cluster Peer Back to Cluster master - get Error -Adding a non-standalone bucket as standalone!</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-Add-Cluster-Peer-Back-to-Cluster-master-get-Error/m-p/186299#M1743</link>
      <description>&lt;P&gt;Adding additional detail. After finding the offending bucket as suggested by Rajpal we simply did the following.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Ensured our cluster had recovered and was meeting search and replication factor.&lt;/LI&gt;
&lt;LI&gt;stopped splunk on the bad indexer.&lt;/LI&gt;
&lt;LI&gt;backed up the offending bucket directory.&lt;/LI&gt;
&lt;LI&gt;Deleted the entire bucket directory.&lt;/LI&gt;
&lt;LI&gt;Restarted splunk.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Since the cluster was essentially recovered simply removing the directory completely did not cause issues.&lt;/P&gt;

&lt;P&gt;Eric.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 02:35:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-Add-Cluster-Peer-Back-to-Cluster-master-get-Error/m-p/186299#M1743</guid>
      <dc:creator>ejenson_splunk</dc:creator>
      <dc:date>2017-06-16T02:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Add Cluster Peer Back to Cluster master - get Error -Adding a non-standalone bucket as standalone!</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-Add-Cluster-Peer-Back-to-Cluster-master-get-Error/m-p/186300#M1744</link>
      <description>&lt;P&gt;This steps worked on version 7.0.2 , i am new to Splunk and implementing in AWS , &lt;BR /&gt;
excellent help '  The problem bucket will stand out like a sore thumb '&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 13:39:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-Add-Cluster-Peer-Back-to-Cluster-master-get-Error/m-p/186300#M1744</guid>
      <dc:creator>chandanghoshCTL</dc:creator>
      <dc:date>2018-04-16T13:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Add Cluster Peer Back to Cluster master - get Error -Adding a non-standalone bucket as standalone!</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-Add-Cluster-Peer-Back-to-Cluster-master-get-Error/m-p/186301#M1745</link>
      <description>&lt;P&gt;Have to say Raj Pal ROCKS!&lt;/P&gt;

&lt;P&gt;So does Masa and John Welch in no given order!!!!!&lt;/P&gt;

&lt;P&gt;Arion Holliman - AIG Lead SIEM Engineer&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 05:36:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-Add-Cluster-Peer-Back-to-Cluster-master-get-Error/m-p/186301#M1745</guid>
      <dc:creator>ehollima</dc:creator>
      <dc:date>2018-05-21T05:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Add Cluster Peer Back to Cluster master - get Error -Adding a non-standalone bucket as standalone!</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-Add-Cluster-Peer-Back-to-Cluster-master-get-Error/m-p/186302#M1746</link>
      <description>&lt;P&gt;I know this is an old post but i wonder wheter it is not simplier to just move the pirmary (db)buckets and let the master do the copies using the regular replication process instead of copying the rb buckets manually to the target peers? Or am i missing something?&lt;/P&gt;

&lt;P&gt;Cheers&lt;BR /&gt;
Claudio&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 13:43:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-Add-Cluster-Peer-Back-to-Cluster-master-get-Error/m-p/186302#M1746</guid>
      <dc:creator>salem34</dc:creator>
      <dc:date>2018-12-17T13:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Add Cluster Peer Back to Cluster master - get Error -Adding a non-standalone bucket as standalone!</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-Add-Cluster-Peer-Back-to-Cluster-master-get-Error/m-p/186303#M1747</link>
      <description>&lt;P&gt;This worked perfectly on 7.3.0&lt;BR /&gt;
Thank you Rajpal!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 20:19:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-Add-Cluster-Peer-Back-to-Cluster-master-get-Error/m-p/186303#M1747</guid>
      <dc:creator>baselahmad</dc:creator>
      <dc:date>2019-09-27T20:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Add Cluster Peer Back to Cluster master - get Error -Adding a non-standalone bucket as standalone!</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-Add-Cluster-Peer-Back-to-Cluster-master-get-Error/m-p/186304#M1748</link>
      <description>&lt;P&gt;I got the similar issue&lt;BR /&gt;
04-22-2020 23:08:28.867 +0800 ERROR ClusterMasterPeerHandler - Cannot add peer=xxx.xx.xx.xxx mgmtport=8089 (reason: bucket already added as clustered, peer attempted to add again as standalone. guid=2A40ED04-E90B-4771-BD5A-F523865808B6 bid= ~2~2A40ED04-E90B-4771-BD5A-F523865808B6).&lt;BR /&gt;
thanks to cluster, My data safe to another peer node and it was searchable.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Stop my index peer which was no behaving "./splunk stop"&lt;/LI&gt;
&lt;LI&gt;Move the whole index dir as _old (mine was in defalut dir - $splunk/var/lib/splunk/)&lt;/LI&gt;
&lt;LI&gt;Start the index again. "./splunk start"&lt;/LI&gt;
&lt;LI&gt;Vola !  error gone and both peer show "up" in index cluster, that the good sign (durability and searchable was still red )&lt;/LI&gt;
&lt;LI&gt;Last, Start the re-balance &lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;There is the feature "data re-balance" &lt;BR /&gt;
Setting -&amp;gt; index clustering -&amp;gt; edit -&amp;gt; Data rebalance -&amp;gt; Select the index which you moved (I kept threshold 1, and it worked for me) -&amp;gt; start&lt;/P&gt;

&lt;P&gt;My index was re-created and data came back on issue peer automatically, all green from UI, availability was 100% and all data was searchable.&lt;/P&gt;

&lt;P&gt;-Rana&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 17:00:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-Add-Cluster-Peer-Back-to-Cluster-master-get-Error/m-p/186304#M1748</guid>
      <dc:creator>shivank_rana</dc:creator>
      <dc:date>2020-04-22T17:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Add Cluster Peer Back to Cluster master - get Error -Adding a non-standalone bucket as standalone!</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-Add-Cluster-Peer-Back-to-Cluster-master-get-Error/m-p/186305#M1749</link>
      <description>&lt;P&gt;what if there is more than one folder? (name will be shorter than all the others)&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 17:01:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-Add-Cluster-Peer-Back-to-Cluster-master-get-Error/m-p/186305#M1749</guid>
      <dc:creator>shivank_rana</dc:creator>
      <dc:date>2020-04-22T17:01:15Z</dc:date>
    </item>
  </channel>
</rss>

