Usually Couchbase put its data on default location (/opt/couchbase/var/lib/couchbase/data). But because my disk’s space is full, i have to move Couchbase data to other location. In my case, /data folder which is mounted to an empty 100GB SSD disk. Below is how i change it,
First, i have to change the content of below file,
Changing database_dir and view_index_dir on below Couchbase configuration file, to my new location folder
[couchdb] max_dbs_open = 10000 database_dir = /data view_index_dir = /data [httpd] db_frontend = capi_frontend ip4_bind_address = 0.0.0.0 ip6_bind_address = :: port = 8092
Next is move the content of old folder (/opt/couchbase/var/lib/couchbase/data), to our new folder (/data). And restart our Couchbase service to implement our changes.
sudo service couchbase-server stop sudo service couchbase-server start
ps. My Couchbase version is “Enterprise Edition 6.0.0 build 1693”.