Restoring NSF databases to an alternate server
Instructions for how to restore NSF databases to an alternate server are described.
About this task
This procedure describes how to use an alternate server to restore logged databases.
- Production Server Domino® Environment
-
- Installation directory:
D:\Lotus\Domino - Data Directory:
D:\Lotus\Domino\Data - Database to be restored:
restoredb.nsf
- Installation directory:
- Alternate Server Domino Environment
-
- Installation directory:
E:\Lotus\Domino - Data Directory:
E:\Lotus\Domino\Data
- Installation directory:
Procedure
- Install Domino server on a separate system.
- The level of Domino server that is installed must be the same as on the production server. Do not configure this Domino server.
- If you are using an existing Domino server, make sure that the server is stopped.
- Install Data Protection for IBM® Domino on
the same system. Run the following tasks:
- Update the dsm.opt file so it contains the same settings as the one on the production server.
- Verify that you can successfully run the domdsmc q adsm command.
- Create the following directories on the alternate server:
- A directory to contain the restored databases. If you
are using an existing directory, make sure that the directory is empty.
For example:
E:\Lotus\Domino\Data\restoredb - A directory to contain the restored log files. If you
are using an existing directory, make sure that the directory is empty.
For example:
F:\alternatelog
- A directory to contain the restored databases. If you
are using an existing directory, make sure that the directory is empty.
- Create a notes.ini file on the alternate server with the following
values:
[Notes] Directory=<directory for restored databases> KeyFilename=<directory for restored databases>\server.id TRANSLOG_Status=0 TRANSLOG_Style=1 TRANSLOG_Path=<directory for restored transaction logs> TRANSLOG_MEDIAONLY=1. This notes.ini file can be stored in any directory of your choice.- If you place the notes.ini file in the alternate server data
directory, save a copy of the existing notes.ini file.
For example:
rename notes.ini notes.save - If you place the notes.ini file in a directory other than the
alternate server data directory, update the Data Protection for HCL Domino
preferences file, domdsm.cfg, to point to the location of the
notes.ini file:
DOMDSMC SET Notesinipath=<directory for notes.ini> - This notes.ini file is used only during this alternate server
restore process. Note, transaction logging is disabled.
For example,
E:\Lotus\Domino\notes.ini[Notes] Directory=E:\Lotus\Domino\Data\restoredb KeyFilename=E:\Lotus\Domino\Data\restoredb\server.id TRANSLOG_Status=0 TRANSLOG_Style=1 TRANSLOG_Path=F:\alternatelog TRANSLOG_MEDIAONLY=1
- If you place the notes.ini file in the alternate server data
directory, save a copy of the existing notes.ini file.
- Place a copy of the server.id file, from the production Domino server, on the alternate server in the directory that is created for restored databases.
- Run an archive of the transaction log on the
production server.
For example:
domdsmc archivelogTo use the Data Protection for HCL Domino GUI, run the domdsm command, archive the transaction log, and then close the GUI. - Restore one of the following on the alternate server:
- The last archived transaction log file is the transaction
log file to be used in the log recovery procedure.
For example:
domdsmc restorelogarchive. To use the Data Protection for HCL Domino GUI, run the domdsm command, restore the transaction log, then close the GUI. - A transaction log file to be restored from an old Logger
ID. This might be necessary if you are trying to restore and apply
transactions for a logged database that used an old Logger ID. Run
the restorelogarchive command with the pick option,
and choose the wanted log extent.
For example:
domdsmc restorelogarchive logname /pick=showall
- The last archived transaction log file is the transaction
log file to be used in the log recovery procedure.
- On the alternate server, modify the notes.ini file
to enable transaction logging:
TRANSLOG_Status=1. This is the notes.ini file that is created in Step 3 for the alternate server restore process only.Note: The HCL Domino server must be restarted and then stopped so that it can recognize the changes that are made to the notes.ini file. - On the alternate server, restore but
do not activate the databases that you want to recover to their latest
state.
Activation at this step triggers the Domino transaction log recovery process, which requires considerable processing time. For example,
domdsmc restore restoredb.nsf. To use the Data Protection for HCL Domino GUI, run the domdsm command, restore the restoredb.nsf database, then close the GUI. - On the alternate server, activate the
databases you are recovering and apply transaction logs.
For example,
domdsmc activate /applylogs. To use the Data Protection for HCL Domino GUI, run the domdsm command, activate, and apply logs to the restoredb.nsf database, then close the GUI. - Now you can do the following tasks:
- Copy the recovered databases to the production Domino server, or
- Access the recovered databases through a remote Notes® client to copy individual documents.
Do not attempt to open or access the restored databases with the alternate Domino server if the databases are to be copied to the production Domino server. If you access them with the alternate Domino server, they require corrections to resolve inconsistencies on the production Domino server. - If the Domino server used for the recovery is a configured server and you saved the notes.ini file, copy that notes.save file back to notes.ini to be able to start the server.