Using a data directory on a different drive

The endeca-data-dir parameter in the EndecaServer.properties file allows you to specify a different drive for the data domain's index. On Windows, for example, your WebLogic Server and Endeca Server installations can be on drive C, while the data domain indexes can be created on drive D. They can also be placed on a shared file system, as in a clustered environment. The default drive is the same one on which the Endeca Server application directory is installed. You can also change the data directory for existing data domains.

If you have created data domains and later want to change the endeca-data-dir setting, any data domain created with the original endeca-data-dir setting cannot be started with the new (changed) endeca-data-dir setting (because its index cannot be found at start-up). Therefore, use the following procedure to change the data directory.

When making these changes, keep the following in mind:
  • You can specify only one directory for the endeca-data-dir parameter. In other words, the indexes for all of the data domains created by an Endeca Server instance must all be stored in the same directory.
  • In a clustered environment, all the Endeca Server instances must use identical EndecaServer.properties files.
  • You cannot mix Linux and Windows drives. For example, if the Endeca Server application directory is installed on a Linux drive, you cannot place the data files on a Windows drive.

To change the data directory for existing data domains:

  1. Use the export-dd command to export the data domains you want to keep.
  2. Use the delete-dd command to delete all data domains (as they will not be able to be started).
  3. Change the endeca-data-dir value to a different directory.
  4. Use the import-dd command to import the data domains.

You can also use the endeca-logs-dir parameter to store the Dgraph logs in a different directory or drive, and use the endeca-offline-dir parameter for exporting and importing data domains.