To clarify which Domino® server is being referenced in the following instructions,
these terms will be used:
- Configure a non-started recovery Domino server to be used in this recovery
process using the Configure Domino Server (CFGDOMSVR) command.
Note:
Make sure AUTOSTART(*NO) and STRDOMSVR(*NO) are specified on the CFGDOMSVR
command.
If you have previously created a recovery server,
you can use that server without having to configure another recovery server.
Just follow the instructions for cleaning up data from previous recovery requests.
- Copy the NOTES.INI database file in the recovery server to the same data
directory and give it a new name.
If you have previously created and used
this recovery server, and copied the original NOTES.INI, you will not need
to make a new copy of the NOTES.INI. Just follow the instructions in the following
steps for editing the NOTES.INI file.
- Make QNOTES the owner of the copied NOTES.INI using the Change Owner (CHGOWN)
command.
- Edit the current NOTES.INI of the recovery server:
- Run the Work with Domino Servers (WRKDOMSVR) command to get to the Work with Domino Servers display.
- Select option 13 for the recovery server.
- Change the NOTES.INI for the recovery server as follows:
[Notes]
Directory=data-directory
KeyFilename=data-base-name
Timezone=time-zone
TRANSLOG_Status=1
TRANSLOG_Style=1
TRANSLOG_Path=data-directory/log-directory
TRANSLOG_MEDIAONLY=1
where:
- data-directory
- This is the path of the data directory for the recovery server that
was specified on the CFGDOMSVR command.
- data-base-name
- This is a database name as it existed on the active server.
- time-zone
- This line should match the line in the active server that contains the
database you want to restore on this recovery server. It is optional, but
if you are having trouble recovering to the correct point in time, then adding
this line may help correct the problem.
- log-directory
- A subdirectory under the recovery server data directory that will receive
a copy of the transaction log from the active server.
Note:
If you have previously used the recovery server,
or this is the first time using this server, there will be extra lines in
the NOTES.INI that need to be deleted or changed so that you only have the
lines identified above in the NOTES.INI.
- Use the Create Directory (MKDIR) command to create the data-directory path.
- Use the Change Owner (CHGOWN) command to change the owner of the subdirectories
in data-directory to QNOTES.
- Use the Work with Object Links (WRKLNK) command to verify database file data-base-name does not exist in the data-directory of the recovery server. Use option 4 (Remove) to delete
the file if it exists.
- Use option 3 (Copy from the Work with Object Links display) to copy the
database file identified by data-base-name from the
active server data directory to the recovery server data directory.
- Use the CHGOWN command to make QNOTES the owner of the data-base-name database file on the recovery server.
- Verify that there are no files found under the directory specified by log-directory. Use option 4 (Remove) to delete any files
that exist.
The first time you use the recovery server there won't be any
objects in that subdirectory to be deleted. If you have used this recovery
server previously there could be files in that subdirectory and they need
to be deleted. Failure to delete these files may cause the recovery process
to fail.
- An incremental save must now be done on the active server.
The active
server needs to be set up to support incremental saves. To save the active
server incrementally on a V5R1 or later system, you can issue the STRBKUBRM
command and specify ACTIVITY(*INCR). If you are on a V4R5 system, you need
to change the control group appropriately to get an incremental save. This
assumes you have a BRMS control group to save this particular active server.
This also assumes that a full save had been done on that active server, with
that control group, prior to the attempt to do this incremental save. Failure
to have a prior full save will cause the recovery attempt to fail. Depending
upon what release of BRMS you are using, you might also be able to do this
incremental save using the BRMS System i® Navigator client interface.
- The current active transaction log database, from the active server that
was just saved, must be copied to the transaction log subdirectory of the
recovery server.
When the incremental save occurred in the previous step,
the current active transaction log was copied to the following location: /data-directory/BRMS/COPIEDLOG/Sxxxxxxx.TXN, where xxxxxxx
is a 7 digit number. Do the following to the copy of this most current transaction
log:
- Run the command WRKLNK '/data-directory/BRMS/COPIEDLOG/*'
- Specify option 3 (Copy) next to the file named Sxxxxxxx.TXN (there should
be only one, if more than one select the largest numbered name).
- Press F4 to prompt.
- For the To Directory (TODIR) parameter, specify '/log-directory'.
- For the Data Format (DTAFMT) parameter, specify *BINARY.
- For the Owner (OWNER) parameter, specify *KEEP so QNOTES remains the owner
of the copied file.
- Press Enter to copy the file.
- Verify that the file is copied successfully to the recovery servers log-directory path.
- Verify that QNOTES is the owner of the copied file. If QNOTES is not the
owner, issue a CHGOWN command to change the owner to QNOTES.
Note:
It is important to note that the transaction log
must be the same name in the recovery server as the name in the active server
where it was copied from.
- If the database to be recovered needs to be restored to a specific date
and time, to be able to recover a document, depending upon what release of
BRMS you are using, you may need to create a data area and change the data
area to contain the date and time of the recovery. If you are recovering the
database to the most current time, no data area or point in time needs to
be specified.
- Use WRKMEDIBRM to select the database to be restored and specify that
the database is to be placed in the data directory of the recovery server.
The name of the database to be restored to the recovery server must be the
same name and case as is found on the active server. Depending upon what release
of BRMS you are using, you may be able to use the BRMS System i Navigator client interface
to do this point-in-time restore request.
- Once the database has been recovered, copy (or FTP in binary mode), that
newly recovered database to a Domino server that can be accessed from a
client.
Because we never want to start the recovery server, it is desirable
to copy this recovered database to a Domino server that is active and can be accessed
by a client. Remember to use the CHGOWN command to make QNOTES the owner of
the newly copied version of the database file before accessing the database.
Be careful where you move the database to. You wouldn't want to move it to
a server that could replicate this database file and either cause problems
for the newly recovered database file or the existing database file.
- If you are trying to recover a document from the database, then you can
use cut and paste from this database to the database on the active server.
- Having successfully recovered the database, do not forget to delete the
database from the recovery server. At some point you will also want to delete
the copied database from the active server that you copied the database file
to.
It is important to follow the above instructions in the order they are
presented. Failure to follow the steps as presented can cause failures when
trying to recover a Domino database.
Having read the above steps, here are some items of interest summarizing
the above or further explaining some of the details: