Installation

When migrating Splunk and upgrading from 7.0.5 to 7.1.2, why did it install to a different Splunk home directory?

xindeNokia
Path Finder

I have manually migrated a previous instance to a new box. Migration was successful.
Migration steps are as follows:

  1. copied all indexers and all configs under $splunkHome$ to the new box
  2. rpm -i 7.0.5 Splunk software
  3. we changed our Splunk home dir from /opt/splunk to /splunkhome/splunk
  4. I have to change etc/splunk-launch.conf to the new home dir - splunk can come up.

But, when I try to upgrade Splunk by using command rpm -U splunk-7.1.2-software , I found Splunk did an install under /opt and did not do any upgrade under /splunkhome .

Is this expected? Is there a way to fix it?

Thanks in advance

Labels (2)
0 Karma
1 Solution

vumanhtai
Path Finder

Why do not you run the command "rpm -U splunk-7.1.2-software" first?
1. upgrade splunk by suing command rpm -U splunk-7.1.2-software
2. copied all indexers and all configs under $splunkHome$ to the new box
3. rpm -i 7.0.5 splunk software
4.change etc/splunk-launch.conf to the new home dir - splunk can come up

https://docs.splunk.com/Documentation/Splunk/7.1.2/Installation/UpgradeonUNIX

View solution in original post

0 Karma

xindeNokia
Path Finder

Just used a --prefix and direct upgrade works.

0 Karma

xindeNokia
Path Finder

I tried remove both version and restore again.

Both installation all point to /opt instead of /splunkhome even I install the software under /splunkhome.
is there any environment parameter I need to set?

0 Karma

vumanhtai
Path Finder

Why do not you run the command "rpm -U splunk-7.1.2-software" first?
1. upgrade splunk by suing command rpm -U splunk-7.1.2-software
2. copied all indexers and all configs under $splunkHome$ to the new box
3. rpm -i 7.0.5 splunk software
4.change etc/splunk-launch.conf to the new home dir - splunk can come up

https://docs.splunk.com/Documentation/Splunk/7.1.2/Installation/UpgradeonUNIX

0 Karma

xindeNokia
Path Finder

I tried remove both version and restore again.

Both installation all point to /opt instead of /splunkhome even I install the software under /splunkhome.
is there any environment parameter I need to set?

0 Karma

vumanhtai
Path Finder

You use file .rpm is the default /opt/splunk. But you can use file .tar
tar xzf splunk-7.x.x-.tgz -C /splunk/parent/directory

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...