Checks the status of the Backup Database
Synopsis
bak verifydb [-verbose] [-help]
Options
-verbose
Directs the command to provide more information about the Backup Database.
-help
Prints the online help for this command. All other valid options specified with this option are ignored.
Description
The bak verifydb command checks the status of the Backup Database. It displays a message indicating whether the Backup Database is undamaged or damaged.
If the Backup Database is undamaged, it can be accessed. If it is damaged, it must be restored from tape with the bak restoredb command (provided it has been backed up previously with the
bak savedb command).
Privilege Required
The issuer must be listed in the admin.bak files on all Backup Database machines.
Output
Depending on the condition of the Backup Database, this command displays one of the following two messages:
Database OK.
Indicates that the database is undamaged and can be used.
Database not OK.
Indicates that the database is damaged. The database must be deleted and then restored from tape.
If the -verbose option is included with the command, the command reports some additional information about the Backup Database. One reason to use the -verbose option is to determine if your Backup Database has any orphan blocks, which are blocks that it preallocated but cannot use. Orphan blocks are not a problem for the database. However, if you are concerned with disk usage on the machine on which the database resides, you can eliminate the unusable blocks by saving the database to tape with the bak savedb command and then restoring it with the bak restoredb command.
The -verbose option also causes the command to display the name of the machine on which the command is issued.
Examples
The following command verifies that the Backup Database is undamaged:
$ bak verifydb
Database OK.
Related Information
Commands: bak dumpinfo(8dfs)