Moving the Controller Data Directory

After installation, you can move the data directory to a new location. This may be necessary, for example, if there is not enough disk space available during Controller installation.

If you are using symlinks, you must create the symlink outside of the root Controller install directory and move the data directory to the new volume after you install the Controller.

Warning: Do not mount a file system on <controller_home>/db/data. During Controller upgrade, the Enterprise Console moves the data directory to data_orig. Upgrade will fail if the Enterprise Console cannot complete this move.

You can also update the datadir path on the Controller Database Configurations page of the Enterprise Console GUI.

To relocate the Controller data directory
  1. Stop the Controller and its database. See Start or Stop the Controller.

  2. Modify following properties in the <controller_home>/db/db.cnf file to point to the new location of the data directory.
    datadir
    tmpdir
    log
    slow_query_log_file
  3. Copy (or move) the existing data directory <controller_home>/db to the new location. For example, to copy the data on Linux:
    cd <controller_home>/db/
    cp data <new-location>
  4. Start the Controller. See Start or Stop the Controller.

  5. Check the database.log and server.log for any errors related to the database connection.