Couchbase Server Upgrade On Linux

Upgrade Couchbase Server is quite simple. You can upgrade your couchbase server with a few steps .
I am going to upgrade my server from 6.0 to 6.5. Couchase allows directly upgrade from 6.0 to 6.5.
If you want to upgrade from previous versions, you have to upgrade previous paths before upgrade the latest version which are below.

My Couchbase server is under the /app/couchbase/inst1 path.
There are two files for Couchase which are opt and usr. Before upgrade, we need to move these files into another file, then will be ready to install new version of the Couchbase.

First, move the opt and usr files into the new file.
Go to your installed Couchbase Server path,
cd /app/couchbase/inst1 then write ‘ls’ command. You will see opt and usr files.

mv opt opt_backup
and
mv usr usr_backup 

our opt and usr files moved to their new files.

Now import your new version of Couchbase Server rpm file under
cd /app/couchbase/inst1
Then run the command which is below, to install new version of Couchbase Server.

rpm2cpio couchbase-server-enterprise-6.5.0-centos7.x86_64.rpm| cpio --extract --make-directories --no-absolute-filenames  

Couchbase server has been installed. Use ls command, there is new opt and usr file are created.

Go to 
cd opt/couchbase
then run the command 
./bin/install/reloc.sh `pwd`  
 Then Start server
 ./bin/couchbase-server \-- -noinput -detached 

Your Couchbase Server is upgraded succesfully.


Related Post

2 thoughts on “Couchbase Server Upgrade On Linux

Leave a Reply to Anonymous Cancel reply

Your email address will not be published. Required fields are marked *