<?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: Moving DB files during Migration in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Moving-DB-files-during-Migration/m-p/54016#M876</link>
    <description>&lt;P&gt;We also have few customers, whose daily log volume ranges from 25GB to 250GB. Our new customers will have daily log volume greater than 250GB and up to 600GB per day. We want to design a solution that works for everyone.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Sep 2013 05:09:42 GMT</pubDate>
    <dc:creator>strive</dc:creator>
    <dc:date>2013-09-04T05:09:42Z</dc:date>
    <item>
      <title>Moving DB files during Migration</title>
      <link>https://community.splunk.com/t5/Installation/Moving-DB-files-during-Migration/m-p/54011#M871</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We have a setup which is running on Splunk 4.3.1. We have a new setup running on Splunk 5.0.4.&lt;/P&gt;

&lt;P&gt;We have diverted all our traffic to new setup. Now we want to move all the warm dbs from older setup to new setup. To complete this exercise successfully, we are thinking of following approaches.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Approach 1:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Take all the db_* directories from&lt;BR /&gt;
our 10 index directories IDX1/db_&lt;EM&gt;, IDX2/db_&lt;/EM&gt; ..... IDX10/db_*&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Create a .tgz file&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;In each index note the highest&lt;BR /&gt;
bucket id. Say, for example it is 10. Then add 1 to it. So the&lt;BR /&gt;
    number is 11. &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Untar the index dbs into respective&lt;BR /&gt;
directories. While doing this rename the&lt;BR /&gt;
directories in the new setup as &lt;CODE&gt;db_Start_End_n+11&lt;/CODE&gt;. Where n is the bucket id. In this step, also rename hot bucket directory.&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Question: When we rename the directories, will the manifest file be automatically updated with the latest bucket id? If not what should we do.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Approach 2:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Take all the db* directories from&lt;BR /&gt;
our 10 index directories IDX1/db_&lt;EM&gt;,&lt;BR /&gt;
IDX2/db_&lt;/EM&gt; ..... IDX10/db_*&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Create a .tgz file. While creating the .tgz file, rename the directories from old setup to increment the bucket id as n+99. So, the warm buckets will be &lt;CODE&gt;db_Start_End_n+99.&lt;/CODE&gt; For example: &lt;CODE&gt;db_Start_End_0&lt;/CODE&gt; will be &lt;CODE&gt;db_Start_End_99&lt;/CODE&gt;, &lt;CODE&gt;db_Start_End_1&lt;/CODE&gt; will be &lt;CODE&gt;db_Start_End_100&lt;/CODE&gt; and so on.&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;In this case will the manifest file be updated automatically to reflect the latest bucket id (Say 201) when the bucket id reaches 98 in new setup.&lt;/P&gt;

&lt;P&gt;We are strongly inclined towards approach 1. Based on what we read in splunk blogs and splunk base, approach 1 should work.&lt;/P&gt;

&lt;P&gt;Please suggest the better and workable approach.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Strive&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:42:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Moving-DB-files-during-Migration/m-p/54011#M871</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2020-09-28T14:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Moving DB files during Migration</title>
      <link>https://community.splunk.com/t5/Installation/Moving-DB-files-during-Migration/m-p/54012#M872</link>
      <description>&lt;P&gt;Have you started collecting data on the new splunk server?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2013 20:06:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Moving-DB-files-during-Migration/m-p/54012#M872</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-09-03T20:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Moving DB files during Migration</title>
      <link>https://community.splunk.com/t5/Installation/Moving-DB-files-during-Migration/m-p/54013#M873</link>
      <description>&lt;P&gt;I just upgraded a server with a complete restore of data (db files).  You're making it sound way too complicated.&lt;/P&gt;

&lt;P&gt;1) Never try to move hot buckets.  Stop Splunk and all of the hot buckets will roll to warm buckets.&lt;BR /&gt;&lt;BR /&gt;
2) Just copy the warm and cold db folders from the old server index directories to the new server index directories.  It is that simple.&lt;BR /&gt;&lt;BR /&gt;
3) If you have duplicate "unique ID numbers" then just change the ones that are duplicates.  You may need to rebuild those buckets with new IDs, but there should not be that many.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2013 21:58:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Moving-DB-files-during-Migration/m-p/54013#M873</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-09-03T21:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Moving DB files during Migration</title>
      <link>https://community.splunk.com/t5/Installation/Moving-DB-files-during-Migration/m-p/54014#M874</link>
      <description>&lt;P&gt;Hi, Thanks for your response. I do not know about your daily log volume. Our daily log volume is 100 GB. It takes considerable amount of time to move index db files from old server to new server. So i assume definitely there will be more buckets created in new server.&lt;/P&gt;

&lt;P&gt;For your point #3, you mean changing the names on new server. Am i right?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2013 05:07:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Moving-DB-files-during-Migration/m-p/54014#M874</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2013-09-04T05:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Moving DB files during Migration</title>
      <link>https://community.splunk.com/t5/Installation/Moving-DB-files-during-Migration/m-p/54015#M875</link>
      <description>&lt;P&gt;Yes, we have started collecting data on new splunk server.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2013 05:07:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Moving-DB-files-during-Migration/m-p/54015#M875</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2013-09-04T05:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Moving DB files during Migration</title>
      <link>https://community.splunk.com/t5/Installation/Moving-DB-files-during-Migration/m-p/54016#M876</link>
      <description>&lt;P&gt;We also have few customers, whose daily log volume ranges from 25GB to 250GB. Our new customers will have daily log volume greater than 250GB and up to 600GB per day. We want to design a solution that works for everyone.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2013 05:09:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Moving-DB-files-during-Migration/m-p/54016#M876</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2013-09-04T05:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Moving DB files during Migration</title>
      <link>https://community.splunk.com/t5/Installation/Moving-DB-files-during-Migration/m-p/54017#M877</link>
      <description>&lt;P&gt;Yes, change the names on the new server, but ideally there would be no new db folders on the new server because the cut over would be done before the new server starts collecting data.&lt;BR /&gt;
In your case that might not be possible. If you must change the bucket IDs from the old server, then be sure to use a large enough offset.&lt;BR /&gt;
The bucket manifest will automatically update.  If for some reason you end up with a duplicate ID number, then an error will show up in the splunkd log, and the index will go offline until the problem is corrected.&lt;BR /&gt;
Lastly, you can move buckets while splunk is running.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2013 13:42:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Moving-DB-files-during-Migration/m-p/54017#M877</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-09-04T13:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Moving DB files during Migration</title>
      <link>https://community.splunk.com/t5/Installation/Moving-DB-files-during-Migration/m-p/54018#M878</link>
      <description>&lt;P&gt;./splunk stop does not roll buckets.&lt;BR /&gt;
./splunk /start or ./splunk/restart does.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2015 12:24:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Moving-DB-files-during-Migration/m-p/54018#M878</guid>
      <dc:creator>apfender_splunk</dc:creator>
      <dc:date>2015-04-15T12:24:38Z</dc:date>
    </item>
  </channel>
</rss>

