The NVDB backup was displaying following errors:
1] Error 2012/08/15 08:06:59 75 Media SWP-SAN-NV Internal error walking database table
2] Error 2012/08/15 08:06:59 75 Media SWP-SAN-NV Recover last Media Manager database
3] Error 2012/08/15 08:06:59 75 Data Plugin SWP-SAN-NV Database Media Manager had error
4] Error 2012/08/15 08:06:59 75 Data Plugin SWP-SAN-NV Fatal error while backing up Media Manager – Aborting
5] Error 2012/08/15 08:06:59 75 Media SWP-SAN-NV Media Manager database failed integrity check
6] Error 2012/08/15 08:06:59 75 Data Plugin SWP-SAN-NV Failed during main database backup phase
7] Error 2012/08/15 08:07:31 75 Jobs SWP-SAN-NV Job Status: Backup Failed
The customer's NetVault Server crashed due to a power failure and may have contributed to the above NVDB corruption, as the NetVault Server wasn’t shut down in the correct manor.
We then ran the following commands to try and repair any minor issues with the Media Database:
a] Make sure that there are no Backup and Restore jobs running and stop the NetVault Services (NetVault Configurator - Services tab).
b] Open up a Command Line window and navigate to the …\Program Files\BakBone Software\NetVault\util directory.
c] Type in “nvmeddbcheck check”.
d] Type in “nvmeddbcheck force”. Perform this twice.
e] Type in “nvmeddbcheck check”.
f] Start the NetVault Services again.
Unfortunately the above commands didn't resolve the issue.
Restore the Media Database and Indexes from a good NVDB backup as per the KBA SOL79511.
We successfully restored the Media Database and Indexes and then performed the above commands to resolve any minor Media Database issues.
We then ran the NVDB backup and now the above error messages have disappeared, but unfortunately the NVDB backup now failed with the following errors:
Failed to compact of scheduler database 'Changes' records
Failed to compact scheduler database
Failed to compact the Schedule Manager database
Failed during main database backup phase
So we had to restore the Schedule DataBase from the same NVDB backup as before, using the KBA SOL79101.
We successfully restored the Schedule DataBase and ran the following commands to repair any minor issues as well:
a] Make sure that there are no Backup and Restore jobs running and stop the NetVault Services (NetVault Configurator - Services tab).
b] Open up a Command Line window and navigate to the …\Program Files\BakBone Software\NetVault\util directory.
c] Type in “nvscheddbcheck check”.
d] Type in “nvscheddbcheck compact”. Perform this twice.
e] Type in “nvscheddbcheck check”.
f] Start the NetVault Services again.
NVDB backup now ran successfully.
NOTE: if you have used any media or created/modified any jobs since that good copy of the NVDB that was used for the restore job, then you will have to scan those tapes in and create/modify those jobs as well.