Details
-
Bug
-
Resolution: Duplicate
-
Blocker
-
2.0
-
Security Level: Public
-
None
Description
build 1965:
according to manual http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-data-files.html:
"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 actually 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."
my steps:
1. init-data-path was set /opt/couchbase/data
2. have 10 buckets in cluster
[root@cen-2708 tmp]# ls -a /opt/couchbase/data/
. .. bucket0 bucket1 bucket2 bucket3 default .delete @indexes _replicator.couch.1 standard_bucket0 standard_bucket1 standard_bucket2 standard_bucket3 standard_bucket4 _users.couch.1
[root@cen-2708 tmp]# ls -a /tmp/
. ..
[root@cen-2708 tmp]# /opt/couchbase/bin/couchbase-cli node-init -c localhost:8091 --node-init-data-path=/tmp/ -u Administrator -p password
SUCCESS: init localhost
[root@cen-2708 tmp]# ls -a /tmp/
. .. .delete _replicator.couch.1 _users.couch.1
[root@cen-2708 tmp]# ls -a /opt/couchbase/data/
. .. .delete @indexes _replicator.couch.1 _users.couch.1
all buckets were deleted on cluster