<?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: How to migrate buckets from a standalone indexer to a new indexer in a multisite cluster? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-migrate-buckets-from-a-standalone-indexer-to-a-new/m-p/230329#M44834</link>
    <description>&lt;P&gt;For my test  focused on Standalone bucket liked &lt;CODE&gt;db_1543947226_1543616705_24_&amp;lt;GUID&amp;gt;&lt;/CODE&gt;, the CM rest endpoint  will show this bucket as standalone &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest splunk_server=local /services/cluster/master/buckets  | search standalone=1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For standalone bucket we  never try to meet the Replication or Search Copy.  The rest end point will show this only on one indexer. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;https://CM:24501/services/cluster/master/buckets/_internal~24~C5CA4CB0-E4EF-420A-AB4D-548EDE453DD2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/257788-first.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;If you convert a standalone bucket to cluster bucket by renaming the bucket directory from db_1543947226_1543616705_24  to &lt;CODE&gt;db_1543947226_1543616705_24_&amp;lt;GUID&amp;gt;&lt;/CODE&gt;  like in my case  for internal index &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNk_HOME/var/lib/splunk/_internaldb/db
$mv db_1543947226_1543616705_24 db_1543947226_1543616705_24_C5CA4CB0-E4EF-420A-AB4D-548EDE453DD2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And when you manually make any change to index , please remove the .bucketManifest file . this manifest file will be recreated upon restart of the indexers.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNk_HOME/var/lib/splunk//db/.bucketManifest
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For these standalone bucket renamed as cluster bucket, we only need to meet the replication_factor  and search_factor and we won’t try and meet the  site_replication_factor or site_search_factor&lt;/P&gt;

&lt;P&gt;So, if configuration is replication_factor=search_factor=2 in this case cluster will  create second copy within the site where the converted standalone bucket is present. As long as bucket belong to site that has more number of indexers over  replication_factor, the cluster will create replicated copy and no error will be displayed on the UI.&lt;/P&gt;

&lt;P&gt;So the Bucket rest endpoint will look like&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/257789-second.png" alt="alt text" /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 22:16:03 GMT</pubDate>
    <dc:creator>rbal_splunk</dc:creator>
    <dc:date>2020-09-29T22:16:03Z</dc:date>
    <item>
      <title>How to migrate buckets from a standalone indexer to a new indexer in a multisite cluster?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-migrate-buckets-from-a-standalone-indexer-to-a-new/m-p/230327#M44832</link>
      <description>&lt;P&gt;Trying to understand what the procedure would be to migrate data. Situation:&lt;/P&gt;

&lt;P&gt;Indexer was standalone. Has standalone buckets in some of its indexes. Was added to a multisite cluster. So now some buckets are clustered in those indexes.&lt;/P&gt;

&lt;P&gt;Hardware for this indexer needs to be retired. What is the best procedure to migrate &lt;STRONG&gt;ALL&lt;/STRONG&gt; data. Aging out isn't an option. Keeping the server around is also not an option.&lt;/P&gt;

&lt;P&gt;Can I do as the migration guide states&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.0/Installation/MigrateaSplunkinstance"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.0/Installation/MigrateaSplunkinstance&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and just copy the $SPLUNK_HOME directory and install Splunk over the top? That just seems too easy. &lt;BR /&gt;
Will the new host join the cluster automagically? &lt;BR /&gt;
Will I get duplicate data from the clustered buckets?&lt;BR /&gt;
Do I need to decommission from the indexer cluster, migrate just the standalone buckets and then add the new host to the cluster?&lt;BR /&gt;
If so, how would I know what buckets are the standalone buckets only?&lt;/P&gt;

&lt;P&gt;Any guidance would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 20:44:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-migrate-buckets-from-a-standalone-indexer-to-a-new/m-p/230327#M44832</guid>
      <dc:creator>antlefebvre</dc:creator>
      <dc:date>2016-05-03T20:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to migrate buckets from a standalone indexer to a new indexer in a multisite cluster?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-migrate-buckets-from-a-standalone-indexer-to-a-new/m-p/230328#M44833</link>
      <description>&lt;P&gt;From Slack usergroup: Thanks guys! @dwaddle @Yorokobi @davidpaper&lt;/P&gt;

&lt;P&gt;easy way: copy all buckets into the thawedb directory for each index on one of the indexers in the cluster. and manually roll them off when the data is no longer needed.&lt;/P&gt;

&lt;P&gt;if a bucket is named &lt;CODE&gt;&amp;lt;xxx&amp;gt;_&amp;lt;timestamp&amp;gt;_&amp;lt;timestamp&amp;gt;&lt;/CODE&gt;   it's not clustered&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;guid&amp;gt;_&amp;lt;xxx&amp;gt;_&amp;lt;timestamp&amp;gt;_&amp;lt;timestamp&amp;gt;&lt;/CODE&gt;    is clustered&lt;/P&gt;

&lt;P&gt;The replicated buckets are already (by definition) copied to other indexers, there's no need to copy them again.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 14:57:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-migrate-buckets-from-a-standalone-indexer-to-a-new/m-p/230328#M44833</guid>
      <dc:creator>antlefebvre</dc:creator>
      <dc:date>2016-05-04T14:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to migrate buckets from a standalone indexer to a new indexer in a multisite cluster?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-migrate-buckets-from-a-standalone-indexer-to-a-new/m-p/230329#M44834</link>
      <description>&lt;P&gt;For my test  focused on Standalone bucket liked &lt;CODE&gt;db_1543947226_1543616705_24_&amp;lt;GUID&amp;gt;&lt;/CODE&gt;, the CM rest endpoint  will show this bucket as standalone &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest splunk_server=local /services/cluster/master/buckets  | search standalone=1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For standalone bucket we  never try to meet the Replication or Search Copy.  The rest end point will show this only on one indexer. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;https://CM:24501/services/cluster/master/buckets/_internal~24~C5CA4CB0-E4EF-420A-AB4D-548EDE453DD2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/257788-first.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;If you convert a standalone bucket to cluster bucket by renaming the bucket directory from db_1543947226_1543616705_24  to &lt;CODE&gt;db_1543947226_1543616705_24_&amp;lt;GUID&amp;gt;&lt;/CODE&gt;  like in my case  for internal index &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNk_HOME/var/lib/splunk/_internaldb/db
$mv db_1543947226_1543616705_24 db_1543947226_1543616705_24_C5CA4CB0-E4EF-420A-AB4D-548EDE453DD2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And when you manually make any change to index , please remove the .bucketManifest file . this manifest file will be recreated upon restart of the indexers.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNk_HOME/var/lib/splunk//db/.bucketManifest
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For these standalone bucket renamed as cluster bucket, we only need to meet the replication_factor  and search_factor and we won’t try and meet the  site_replication_factor or site_search_factor&lt;/P&gt;

&lt;P&gt;So, if configuration is replication_factor=search_factor=2 in this case cluster will  create second copy within the site where the converted standalone bucket is present. As long as bucket belong to site that has more number of indexers over  replication_factor, the cluster will create replicated copy and no error will be displayed on the UI.&lt;/P&gt;

&lt;P&gt;So the Bucket rest endpoint will look like&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/257789-second.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:16:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-migrate-buckets-from-a-standalone-indexer-to-a-new/m-p/230329#M44834</guid>
      <dc:creator>rbal_splunk</dc:creator>
      <dc:date>2020-09-29T22:16:03Z</dc:date>
    </item>
  </channel>
</rss>

