Setting up a shared file system

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:

  1. Mount the shared file system on all nodes in the new data center.
  2. Create a config directory under the root of the shared file system in the new data center.

    Example - /nfsshare/config

  3. 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.

  4. Create an empty datacenter.properties file in the config directory of the new data center.
  5. 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

  6. Create config subdirectories in all <bucket>_<variant> directories.

    Example - /nfsshare/1st_provisioned_var00/config

  7. 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.