<?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: Splunk Amazon AMI is using the root partition to store data. How do I change it? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Amazon-AMI-is-using-the-root-partition-to-store-data-How/m-p/114342#M71626</link>
    <description>&lt;P&gt;It was quick.&lt;/P&gt;

&lt;P&gt;I redefined the SPLUNK_DB and moved my data, I have now 500GB of Storage on the new partition for the indexes.&lt;BR /&gt;
Later, I will need to add more Partitions, and will use the homePath and coldPath to relocate some indexes on it.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jan 2015 01:41:15 GMT</pubDate>
    <dc:creator>mataharry</dc:creator>
    <dc:date>2015-01-29T01:41:15Z</dc:date>
    <item>
      <title>Splunk Amazon AMI is using the root partition to store data. How do I change it?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Amazon-AMI-is-using-the-root-partition-to-store-data-How/m-p/114340#M71624</link>
      <description>&lt;P&gt;I Installed an Amazon Ubuntu using the preconfigured splunk AMI.&lt;BR /&gt;
Splunk is installed on &lt;CODE&gt;/opt/splunk&lt;/CODE&gt;, with the indexes and the dispatch folder&lt;/P&gt;

&lt;P&gt;The problem is that my root "/" partition is very small (2GB), and the indexes are filling it.&lt;BR /&gt;
in particular &lt;CODE&gt;/opt/splunk/var/lib/splunk&lt;/CODE&gt; with the indexes.&lt;BR /&gt;
How to relocate the indexes to a larger partition that I mounted (EBS in my case) ?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 00:59:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Amazon-AMI-is-using-the-root-partition-to-store-data-How/m-p/114340#M71624</guid>
      <dc:creator>mataharry</dc:creator>
      <dc:date>2015-01-29T00:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Amazon AMI is using the root partition to store data. How do I change it?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Amazon-AMI-is-using-the-root-partition-to-store-data-How/m-p/114341#M71625</link>
      <description>&lt;P&gt;Let's imagine you have a new mount /splunkdata/ and want to use this space. &lt;/P&gt;

&lt;P&gt;You have 4 methods to free space on the root "/" partition.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;A way is to &lt;STRONG&gt;more/reinstall splunk&lt;/STRONG&gt; to the new storage &lt;BR /&gt;
by example, install splunk on /splunkdata/splunk. if you are using a simple tar installer, it's quick to move, if you are using a rpm install, you have to save the data, uninstall and reinstall on the new path&lt;BR /&gt;&lt;BR /&gt;
at the end recreate, the service with &lt;CODE&gt;/path/to/my/new/splunk/bin/splunk disable boot-start; /path/to/my/new/splunk/bin/splunk enable boot-start&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Use a &lt;STRONG&gt;Simlink&lt;/STRONG&gt;  but this does not play well with the size volume calculation.&lt;/P&gt;

&lt;P&gt;/opt/splunk/bin/splunk stop&lt;/P&gt;

&lt;H1&gt;move the index data to the new location&lt;/H1&gt;

&lt;P&gt;cp -R /opt/splunk/var/lib/splunk /splunkdata/&lt;/P&gt;

&lt;H1&gt;remove the folder&lt;/H1&gt;

&lt;P&gt;rm -rf /opt/splunk/var/lib/splunk&lt;/P&gt;

&lt;H1&gt;create the symlink&lt;/H1&gt;

&lt;P&gt;ln -s /splunkdata/ /opt/splunk/var/lib/splunk&lt;BR /&gt;
ls -la /opt/splunk/var/lib&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Meticulously &lt;STRONG&gt;move individual index&lt;/STRONG&gt; at a time to a new location (homePath and coldPath in indexes.conf)&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/Indexer/Moveanindex" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/Indexer/Moveanindex&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;The easiest method is to &lt;STRONG&gt;redefine a new base paths SPLUNK_DB&lt;/STRONG&gt; for all the indexes.&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;the defaultSPLUNK_DB point to SPLUNK_HOME/var/lib/splunk&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunk stop
# move the indexes data to the new location
mv  /opt/splunk/var/lib/splunk /splunkdata/
# edit the launcher to redefine 
vi /opt/splunk/splunk-launcher.cfg
# add "SPLUNK_DB=/splunkdata/"
/opt/splunk/bin/splunk start
#then verify the old and new data are searchable.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;I  recommend the last method, and redefine SPLUNK_DB&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:45:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Amazon-AMI-is-using-the-root-partition-to-store-data-How/m-p/114341#M71625</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2020-09-28T18:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Amazon AMI is using the root partition to store data. How do I change it?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Amazon-AMI-is-using-the-root-partition-to-store-data-How/m-p/114342#M71626</link>
      <description>&lt;P&gt;It was quick.&lt;/P&gt;

&lt;P&gt;I redefined the SPLUNK_DB and moved my data, I have now 500GB of Storage on the new partition for the indexes.&lt;BR /&gt;
Later, I will need to add more Partitions, and will use the homePath and coldPath to relocate some indexes on it.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 01:41:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Amazon-AMI-is-using-the-root-partition-to-store-data-How/m-p/114342#M71626</guid>
      <dc:creator>mataharry</dc:creator>
      <dc:date>2015-01-29T01:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Amazon AMI is using the root partition to store data. How do I change it?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Amazon-AMI-is-using-the-root-partition-to-store-data-How/m-p/114343#M71627</link>
      <description>&lt;P&gt;Hello, I'm looking to implement this "easiest method" solution and for some reason our latest version of Splunk does not have the "/opt/splunk/splunk-launcher.cfg" file. We are version 7.3.0, has something changed since this original posting?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 12:15:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Amazon-AMI-is-using-the-root-partition-to-store-data-How/m-p/114343#M71627</guid>
      <dc:creator>johnklaiber</dc:creator>
      <dc:date>2020-01-10T12:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Amazon AMI is using the root partition to store data. How do I change it?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Amazon-AMI-is-using-the-root-partition-to-store-data-How/m-p/114344#M71628</link>
      <description>&lt;P&gt;@johnklaiber This question is 5 years old with an accepted answer.  It's also outdated.  Please post a new question.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 12:51:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Amazon-AMI-is-using-the-root-partition-to-store-data-How/m-p/114344#M71628</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-01-10T12:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Amazon AMI is using the root partition to store data. How do I change it?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Amazon-AMI-is-using-the-root-partition-to-store-data-How/m-p/114345#M71629</link>
      <description>&lt;P&gt;Well, I actually found the answer in documentation and it may be appropriate for the details to be outlined here in this case for others seeking an answer.&lt;/P&gt;

&lt;P&gt;Newer versions of Splunk will now have this value edited in:&lt;BR /&gt;
/opt/splunk/etc/splunk-launch.conf&lt;/P&gt;

&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 12:55:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Amazon-AMI-is-using-the-root-partition-to-store-data-How/m-p/114345#M71629</guid>
      <dc:creator>johnklaiber</dc:creator>
      <dc:date>2020-01-10T12:55:47Z</dc:date>
    </item>
  </channel>
</rss>

