Default Paths during installation

Hey Guys i had a few questions regarding default paths.

I was able to change my default installation path of couch to the following.
"status": "healthy",
"storage": {
"hdd": [
{
"index_path": "/ssd/couchbase/data",
"path": "/ssd/couchbase/data",
"quotaMb": "none",
"state": "ok"
}
],

However, the problem that i had run into was that the binary packages and some logs were still installed at different path for example /opt/couchbase while the rest of the stuff was installed in /ssd .

My question is how do i make the installation of binary packages etc to a different directory. Also, for the systems that are already like this i wanted to know if i could just move these items to a different directory and then symlink it? or better yet Can i just move these files to a different directory and manually update couch to know that they are located somewhere else.

ls -lrt
total 56
-rw-r--r-- 1 bin bin 14 Feb 28 20:48 VERSION.txt
-rw-r--r-- 1 bin bin 2462 Feb 28 20:48 LICENSE.txt
-rw-r--r-- 1 bin bin 11909 Feb 28 20:48 licenses.tgz
-rw-r--r-- 1 bin bin 3161 Feb 28 20:49 manifest.xml
-rw-r--r-- 1 bin bin 1050 Feb 28 20:49 manifest.txt
drwxr-xr-x 4 bin bin 4096 May 23 19:49 bin
drwxr-xr-x 7 couchbase couchbase 4096 May 23 19:49 etc
drwxr-xr-x 15 bin bin 4096 May 23 19:49 include
drwxr-xr-x 9 bin bin 4096 May 23 19:49 lib
drwxr-xr-x 2 bin bin 4096 May 23 19:49 samples
drwxr-xr-x 6 bin bin 4096 May 23 19:49 share
drwxr-xr-x 5 couchbase couchbase 4096 May 23 19:49 var
lrwxrwxrwx 1 root root 14 May 23 19:49 couchbase -> /opt/couchbase

$ pwd
/opt/couchbase
ls
bin couchbase etc include lib licenses.tgz LICENSE.txt manifest.txt manifest.xml samples share var VERSION.txt

Any help would be appreciated

1 Answer

« Back to question.

Hello,

Which Linux distribution are you using?

You should be able to relocate the installation for example using the command:

rpm -i couchbase-server-enterprise_x86_64_2.1.0.rom --relocate /opt/couchbase=/new/location

Regards
Tug
@tgrall

Hi,
Thanks for youre reply. I am using centos 6.4 . I am going to be using yum install as i am going to be placing the rpm in a our repository server. Is there a command that can be used during yum install of the rpm ? Also i want to verify that that command you had mentioned is for the binary path and not data path. example is provided below. Also i noticed that there is no Gui or command option using coucbhase-cli or other tools. Thanks again.

[user@couch couchbase]$ ls -lrt
total 56
-rw-r--r-- 1 bin bin 14 Feb 28 20:48 VERSION.txt
-rw-r--r-- 1 bin bin 2462 Feb 28 20:48 LICENSE.txt
-rw-r--r-- 1 bin bin 11909 Feb 28 20:48 licenses.tgz
-rw-r--r-- 1 bin bin 3161 Feb 28 20:49 manifest.xml
-rw-r--r-- 1 bin bin 1050 Feb 28 20:49 manifest.txt
drwxr-xr-x 4 bin bin 4096 May 23 19:49 bin
drwxr-xr-x 7 couchbase couchbase 4096 May 23 19:49 etc
drwxr-xr-x 15 bin bin 4096 May 23 19:49 include
drwxr-xr-x 9 bin bin 4096 May 23 19:49 lib
drwxr-xr-x 2 bin bin 4096 May 23 19:49 samples
drwxr-xr-x 6 bin bin 4096 May 23 19:49 share
drwxr-xr-x 5 couchbase couchbase 4096 May 23 19:49 var
lrwxrwxrwx 1 root root 14 May 23 19:49 couchbase -> /opt/couchbase