How do I change the data directory?
Set the directory when initialising the node:
CLI: Initialize a Node | Couchbase Docs
UI: Create a Cluster | Couchbase Docs
or
Set it when adding a node to an existing cluster: Add a Node and Rebalance | Couchbase Docs