09-14-2022 03:14 AM
Hello Community,
Is there a way to verify if All files in /usr/openv/netbackup/db/images are accounted for ?
We had a issue on disk and we suspect some files in inside might be missing.
Backup works fine and Catalog Search works fine. a few Test Restores work fine, but we cant test everything and just wanted to make sure our images folder is all accounted for
This is a RHEL 8,x box running Netbackup 8.1.2
Thanks
Solved! Go to Solution.
09-14-2022 03:41 AM - edited 09-14-2022 04:11 AM
Hi @iVaibhav
Yes - bpdbm -consistency [0-2]. You may need to open a support ticket with Veritas to have the output of bpdbm deciphered, as it will report everything it finds, even frozen/suspended tapes
bpdbm command reference.
https://www.veritas.com/support/en_US/doc/15263389-127350397-0/v14660975-127350397
/Nicolai
09-14-2022 03:41 AM - edited 09-14-2022 04:11 AM
Hi @iVaibhav
Yes - bpdbm -consistency [0-2]. You may need to open a support ticket with Veritas to have the output of bpdbm deciphered, as it will report everything it finds, even frozen/suspended tapes
bpdbm command reference.
https://www.veritas.com/support/en_US/doc/15263389-127350397-0/v14660975-127350397
/Nicolai
09-14-2022 03:48 AM
Thanks @Nicolai . Exactly what I was looking for
09-14-2022 04:14 AM
Hi @iVaibhav
Entirely FYI for future issues :
And if you ever need to validate the NBDB sybase database (not the image database), you can use the nbdb
-validate database_name [-full] command.
See : https://www.veritas.com/support/en_US/doc/123533878-127136857-0/v123548538-127136857
09-14-2022 04:25 AM
An Addon to this question.
When running bpdbm -consistency 2
The output consists of lines below
checking files file <somefile_893273297_FULL.f>
checking image file <somefile_893273297_FULL.f>
and around 40k lines with different file names
Should the same output be saying if it did not find anything , is the output/logs to check are saved elsewhere ?
09-14-2022 04:28 AM
Thanks @Nicolai :)
09-17-2022 11:56 PM
Hi @iVaibhav
Another quick and dirty way to find missing image files is to use the command "bpcatlist -offline". This will display archived image files and for what you want, it will assume a missing/deleted image file is archived.
When reviewing the output from the above command, the column where the catarcID should be located (column 10) will display a 0 instead of the expected 10 digit number (the ctime when the archiving was done).
Cheers
David
09-28-2022 01:25 PM
Thanks @davidmoline