By default, Couchbase will store the data files under the following paths:
Linux:
/opt/couchbase/<version>/data/ns_1Windows:
C:\Program Files\Couchbase\Server\data\ns_1This 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:
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.
Shut the service down
Copy all the data files from their original location into the new location
Start the service again and monitor the "warmup" of the data.