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!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...