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!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...