Deployment Architecture

Installing multiple instances on Centos via RPM

williamhutson
New Member

Hey,

I'm trying to install 2 instances of Splunk on a linux machine having migrated from a windows machine. This process was successful on the windows machine by just changing the installation target directory, but I'm having a little trouble on the linux machine.

I tried following the directions given by

http://www.splunk.com/wiki/Community:Run_multiple_Splunks_on_one_machine

by running the command

rpm -i --prefix=/opt/new_directory splunk_package_name.rpm

but got something in the order of

package splunk already installed

from rpm.

Any help would be greatly appreciated. Thanks.

Tags (2)
0 Karma
1 Solution

Ayn
Legend

This is more of an rpm 'issue' rather than a Splunk issue. You can force rpm to install the same rpm in multiple locations like this:

$ rpm -Uhv --prefix=/location1 rpm-pkg.rpm
$ rpm --force -ihv --prefix=/location2 rpm-pkg.rpm

Beware of the problems that may arise with init scripts among other things though.

View solution in original post

Ron_Naken
Splunk Employee
Splunk Employee

Why not just install using the tarball?

0 Karma

Ayn
Legend

This is more of an rpm 'issue' rather than a Splunk issue. You can force rpm to install the same rpm in multiple locations like this:

$ rpm -Uhv --prefix=/location1 rpm-pkg.rpm
$ rpm --force -ihv --prefix=/location2 rpm-pkg.rpm

Beware of the problems that may arise with init scripts among other things though.

williamhutson
New Member

Currently looking into writing a separate init.d to run the same instance with separate configs and index directories....

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...