Copying the Archive and Journal of the Shutdown Storage Manager

To copy the archive and journal of the shutdown storage manager (SM), locate the SM's archive and journal directories. In the Automation Console, click Hosts, select the host of interest, and then click Tags. For example:

In NuoDB Manager, execute the tags search command:

nuodb [domain] > tags search name archive_base
ip-172-31-46-122/54.165.58.157:48004 (us-east-1): archive_base = /var/opt/nuodb/production-archives
ip-172-31-40-24/107.23.52.10:48004 (us-east-1): archive_base = /var/opt/nuodb/production-archives

nuodb [domain] > tags search name journal_base
ip-172-31-46-122/54.165.58.157:48004 (us-east-1): journal_base = /var/opt/nuodb/production-archives
ip-172-31-40-24/107.23.52.10:48004 (us-east-1): journal_base = /var/opt/nuodb/production-archives

On the host of the shutdown SM, in the archive_base directory, make a copy of the database directory, which has the same name as the database. Copy recursively and preserve the modes and permissions of all files in the directory. In the journal_base directory, make a copy of the journal directory. This directory will have the name dbname_journal, where dbname is the name of the database. Again, copy recursively and preserve the modes and permissions of all files in the directory. The following example creates a copy of the database test in the test_backup_oct16 and test_backup_oct16_journal directories. These directories have the same structure as the source test and test_journal directories. The example is for Linux and Max OS X. For Windows it would be something similar.

$ cd /var/opt/nuodb/production-archives
$ cp -Rp test test_backup_oct16
$ cp -Rp test_journal test_backup_oct16_journal 

You now have a copy of a database's state at the time you shut down the SM. Remember to edit the requirements of your database to increment the number of SMs required.