cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to determine all files are accounted for in /usr/openv/netbackup/db/images

iVaibhav
Level 4

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

1 ACCEPTED SOLUTION

Accepted Solutions

Nicolai
Moderator
Moderator
Partner    VIP   

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

 

 

View solution in original post

7 REPLIES 7

Nicolai
Moderator
Moderator
Partner    VIP   

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

 

 

iVaibhav
Level 4

Thanks @Nicolai . Exactly what I was looking for 

Nicolai
Moderator
Moderator
Partner    VIP   

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

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 ?

Thanks @Nicolai :)

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

Thanks @davidmoline