Managing Archive Directory Location

A host in a NuoDB domain has an archive directory and a journal directory for each NuoDB database served by local transaction engines or storage managers. This page describes the default locations for these directories and mechanisms for overriding the defaults.

For each database, the default directory names are as follows:

For example, a database named test has a test archive directory and a test/journal journal directory.

About Default Base Directories for Archive and Journal

There is a system defined directory that is the base directory for all archive and journal folders. The table below shows the host tags used to define the archive and journal base directory. In the Automation Console, to view host tag values for a particular host, select the host and then click its Tags tab.

Directory Host Tag That Specifies It Default Value of That Host Tag
Default base for archive directory default_archive_base

Linux: /var/opt/nuodb/production-archives

Linux tar installations: $NUODB_HOME/var/opt/nuodb/production-archives

Windows: %ALLUSERPROFILE%\nuodb\var\production-archives

Default base for journal directory default_journal_base Same as above.

To use NuoDB Manager to view the value of the default_archive_base host tag, invoke the tags command. For example:

nuodb [domain] > tags search name default_archive_base
ec2-54-165-58-157.compute-1.amazonaws.com/172.31.46.122:48004 (us-east-1): 
   default_archive_base = /var/opt/nuodb/production-archives

Overriding Default Base Directories for Archive and Journal

You can override where NuoDB creates its archive and journal folders on a host by host basis. Do this by setting the value of the archive_base and journal_base host tags, which override the values of the default_archive_base and default_journal_base host tags. These two tags, archive_base and journal_base are special, modifiable system-provided tags.

Viewing Current Base Directories for Archive and Journal

In the Automation Console, to view the current base directories for the archive and journal, click Hosts, select the host of interest and click its Tags tab. To use NuoDB Manager, invoke the tags search command. For example:

nuodb [domain] > tags search name archive_base
ec2-54-165-58-157.compute-1.amazonaws.com/172.31.46.122:48004 (us-east-1): 
   archive_base = /var/opt/nuodb/production-archives

nuodb [domain] > tags search name journal_base
ec2-54-165-58-157.compute-1.amazonaws.com/172.31.46.122:48004 (us-east-1): 
   journal_base = /var/opt/nuodb/production-archives