Data Protector Database Corruption
debug.log includes the following error:
2/14/2005 10:06:09 AM DBSM.1540.1972 [“db/dbutil.c /main/dp55/5”:1512] A.05.50 b330
VELOCIS DB ERROR [1] internal error [-7] no current record (S_NOCR)
To see if writing out and reading in the db would clear up whatever the problem is:
omnidbutil -writedb -mmdb <wherever> -cdb <wherever> -no_detail
omnisv stop
mv /var/opt/omni/db40 /var/opt/omni/db40.bad
cp -R /opt/omni/newconfig/var/opt/omni/db40 /var/opt/omni
omnisv start
omnidbinit
omnidbutil -readdb -mmdb <wherever> -cdb <wherever>
Where <whatever> is a pre-existing directory that will contain the exported text files.
Now can you browse the media pools?
If so, then stop DP, COPY the real db back into place, start DP, and try a -writedb -mmdb on the real database and then -readdb -mmdb on it (so don’t do the -cdb) and then do a -cdbsync and then see if you can browse the pools.
If there is an error indication a problem with a line of one of the files on import, simply edit the text file and remove the offending line.
To re-import the offending tape back into the library, the tape can be identified by the contents of the media.txt and media.log files.
last updated november 2010