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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...