Deployment Architecture

Installing multiple instances on Centos via RPM

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

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

Splunk Employee
Splunk Employee

Why not just install using the tarball?

0 Karma

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

New Member

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

0 Karma