Troubleshooting guide

Recovering the NetBackup Databases
212 NetBackup Troubleshooting Guide - UNIX
install_path\netbackup\db\media
install_path\volmgr\database
For install_path, substitute the directory where NetBackup and Media Manager are
installed (C:\VERITAS by default).
Because of their importance, the databases are backed up separately from other files as
described in the NetBackup System Administrators Guide - UNIX. To recover the databases,
use the bprecover command:
/usr/openv/netbackup/bin/admincmd/bprecover
The topics in this section explain how to use bprecover to recover NetBackup database
backups. Also, see the description in the NetBackup Commands appendix in the
NetBackup System Administrators Guide - UNIX.
Note The following discussions assume that NetBackup has been reinstalled, if required.
(See Master Server Disk Recovery on page 203.)
Identifying the Most Recent Database Backup
Caution Before you can recover the NetBackup databases, you must know which media
ID has their latest backups. Without this media ID, you cannot accurately
recover your databases and your only option is to use the NetBackup import
feature to import all lost backup records into your NetBackup databases (see the
NetBackup System Administrators Guide - UNIX).
As mentioned in the NetBackup System Administrators Guide - UNIX, the best way to track
media IDs for database backups is to configure E-mail notifications with the E-mail
Address global attribute. This attribute causes NetBackup to specify the status and media
ID in an E-mail to the administrator each time a database backup occurs. You can then
check the E-mail to determine the last media ID used.
If you know the media IDs that were used but are not sure which of them has the most
recent backup, use the -l option of bprecover to list the backups on each media ID. This
information includes the date and time that the media was written.
Example 1: List by Using a Raw Device
Assume the database backup was to tape but the Media Manager part of the databases
was lost so Media Manager cannot control the drive.