Installation

Need to move Splunk install dir

rhall2016
New Member

Need to move /opt/splunk to /data/splunk due to disk space issues. What is the best way forward with the least downtime?

Tags (1)
0 Karma

woodcock
Esteemed Legend

The safest way is to:
Add the disk space.
Shut down splunk.
Physically move splunk.
Create a soft link from the old home to the new home (you have no idea how many things are expecting Splunk to be where it used to be).
Start splunk.

0 Karma

rhall2016
New Member

I'm going to test this tonight and see what I get. sym-links slipped my mind.

0 Karma

woodcock
Esteemed Legend

It is super cheap insurance. People forget to check cron and logrotate and all of those other things that might be touching Splunk from the outside.

0 Karma

gcusello
SplunkTrust
SplunkTrust
0 Karma

rhall2016
New Member

I've read both of those. The details I need is do I leave just a copy of splunk-launch.conf in /opt/splunk/etc and can delete the rest once moved in order to free up the space needed? Is there anything else that is need in the old dir once I change $SPLUNK_HOME to the new dir?

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi rhall2016,
you have to:

  • add the needed disk space,
  • stop Splunk,
  • move all the splunk folder in the new location,
  • edit and change $SPLUNK_HOME and $SPLUNK_DB in /opt/splunk/server/etc/splunk-launch.conf,
  • check if in your apps there are some absolute paths in inputs.conf and eventually update them,
  • if you have the automatic start scripts, update them,
  • start Splunk.

You don't need to leave anything in Splunk old folder.

Bye.
Giuseppe

0 Karma

rhall2016
New Member

Tracking now. Thanks for the input.

0 Karma
Get Updates on the Splunk Community!

What’s New & Next in Splunk SOAR

Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us on ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...