Search:

Search all manuals
Search this manual
Manual
Couchbase Server Manual 1.8
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
3 Administration Basics
Chapter Sections
Chapters

3.1. Working with Couchbase data files

By default, Couchbase will store the data files under the following paths:

Linux:

/opt/couchbase/<version>/data/ns_1

Windows:

C:\Program Files\Couchbase\Server\data\ns_1

This path can be changed for each node at setup either via the Web UI setup wizard, using theREST API or using the Couchbase CLI:

Linux:

/opt/couchbase/bin/couchbase-cli node-init -c <node_IP>:8091 »
    --node-init-data-path=<new_path> -u <user> -p »
    <password>

Windows:

C:\Program Files\Couchbase\Server\bin\couchbase-cli node-init -c »
    <node_IP>:8091 --node-init-data-path=<new_path> -u »
    <user> -p <password>

Once a node or cluster has already been setup and is storing data, you can still change the path but it is not an "online" operation:

  1. Change the path on a running node either via the REST API or using the Couchbase CLI (commands above). This change won't take effect until the node is restarted.

  2. Shut the service down

  3. Copy all the data files from their original location into the new location

  4. Start the service again and monitor the "warmup" of the data.