The first step to adding a data center to an existing setup is to set up a shared file
system on the second data center in your existing setup.
Procedure
To set up a shared file system on the second data center in your setup, complete the
following steps:
-
Mount the shared file system on all nodes in the new data center.
-
Create a config directory under the root of the
shared file system in the new data center.
Example - /nfsshare/config
-
Copy the global.properties file from one of the existing data centers to
the config directory that you created.
The global.properties file has the list of the existing Cassandra and
ZooKeeper nodes, master passphrase, and other properties that are already defined.
-
Create an empty datacenter.properties file in the
config directory of the new data center.
-
Create corresponding directories on the shared file system of the new data center that match
all<bucket>_<variant> directories from one of the existing data
centers.
Example - 1st_provisioned_var00, global_mbx_var00
-
Create config subdirectories in all
<bucket>_<variant> directories.
Example - /nfsshare/1st_provisioned_var00/config
-
Copy the bucket.xml and bucket.xml.meta files from
the <bucket>_<variant>/config directories from one of the existing data
centers to the corresponding directories on the new data center.