Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-7257

All data will be deleted when change Data Files path on online server

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Security Level: Public
    • Labels:
      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

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        steve Steve Yen added a comment -
        Show
        steve Steve Yen added a comment - see also: http://www.couchbase.com/issues/browse/MB-7344
        Hide
        steve Steve Yen added a comment -

        per bug scrub, this doesn't look like dupe...

        7257

        • 1.8: changes path without deleting data
        • 2.0: change deletes data, but can have documentation

        7344

        • 1.8: reconfigures node
        • 2.0: wipes entire cluster, not just node
        Show
        steve Steve Yen added a comment - per bug scrub, this doesn't look like dupe... 7257 1.8: changes path without deleting data 2.0: change deletes data, but can have documentation 7344 1.8: reconfigures node 2.0: wipes entire cluster, not just node
        Hide
        mccouch MC Brown (Inactive) added a comment -

        I've added a warning to the appropriate parts of the documentation to warn that changing the data path of an active node will invalidate the data stored.

        Show
        mccouch MC Brown (Inactive) added a comment - I've added a warning to the appropriate parts of the documentation to warn that changing the data path of an active node will invalidate the data stored.
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        Actually indeed MB-7344 is more "right" bug. We currently delete all buckets when this procedure is applied.

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - Actually indeed MB-7344 is more "right" bug. We currently delete all buckets when this procedure is applied.
        Hide
        maria Maria McDuff (Inactive) added a comment -

        Dupe.

        Show
        maria Maria McDuff (Inactive) added a comment - Dupe.

          People

          • Assignee:
            alkondratenko Aleksey Kondratenko (Inactive)
            Reporter:
            andreibaranouski Andrei Baranouski
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes