Sun Java System Directory Server Enterprise Edition 6.1 Evaluation Guide

Changing the Database Path

You can change the database path attribute while the server is online. After you have changed the path, you then need to stop the server, move the database files, and start the server.

The database path attributes include nsslapd-db-home-directory, nsslapd-db-logdirectory, and nsslapd-directory. These attributes correspond to the dsconf command properties db-env-path, db-log-path, and db-path, respectively.

For example, to change the location of the example backend database, do the following:

# /opt/sun/install-path/bin/dsconf set-suffix-prop -p 20390 "dc=example,dc=com" \
Changing "db-path" does not move the database file automatically.
You will have to stop the server, move the database files and restart the server.
Do you want to continue [y/n] ? y
Directory Server needs to be restarted for changes to take effect
# mv /install-path/sA1/db/example /install-path/dbtst
# /opt/sun/install-path/bin/dsadm start /install-path/sA1
Server started: pid=29050