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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...