cancel
Showing results for 
Search instead for 
Did you mean: 

cannot update the BAR history to perform restores

Richard_Davies
Level 3

Hi

Using netbackup 7.5.0.1, on win2008 sp1 x86, both test and live

On initial install performed a recovery of the images from catalog, dated around weekend of 9th june

Since then we normally copy image files via mem stick from production to test and populate veritas\netbackup\db\images\servername\imagefile

this normally updates the BAR timeline showing the most recent backup image for this server.

Since going to 7.5.0.1, the image files that we copy dont update, we've even done a full catalog image restore from a more recent date.

stop/start services, restart server, the BAR still doesnt update.

in production the restores work no problem

Any ideas

 

 

5 REPLIES 5

mph999
Level 6
Employee Accredited

You cannot copy images over via memory stick that way, NBU 7.5 images files are now part of the EMM database.

Martin

Richard_Davies
Level 3

Hi Mph999, thanks for replying

So do you have to do a full catalog restore, or is there a easier way of clearing the database?

 

mph999
Level 6
Employee Accredited

YOU could try cat_export which will export the header file backin to flat files, in the /netbackup/db.export dir.

You would then copy this across to the other system, but will have to put these 'flat files' into the corrrect dirs for the clients under /netbackup/db/images/<client> along with the .f / catsore info you normally bring across.

In theory, cat_import command should then pull these files back into the EMM DB.

Martin

Richard_Davies
Level 3

If this works then its a lot less of a faff to get just one server across to our test/dr site.

rather than the entire full catalog

If i export from my live system

will it delete the entry in the live system??

 

mph999
Level 6
Employee Accredited

Richard,

I ran a test on this for another post, though you would appreciate the example - the directories you put the 'header' files in is important.

 

 

Quick test ...
 
Ok, we have no images ...
 
root@womble 1341000000 $ bpimagelist -hoursago 30 -idonly
no entity was found
 
 
Copied the gheader files to this dir ...
 
/usr/openv/netbackup/db.export/images/womble/1341000000
root@womble 1341000000 $ ll
total 12
drwxr-xr-x   2 root     root        1024 Jul 10 09:34 .
drwxr-xr-x   3 root     root         512 Jul 10 09:57 ..
-rw-r--r--   1 root     root           0 Jul 10 09:59 .lck
-rw-r--r--   1 root     root        1165 Jul 10 09:30 test_1341907055_FULL
-rw-r--r--   1 root     root        1401 Jul 10 09:30 womble_basic_disk_1341908161_FULL
 
 
test_ was a backup I took on  a 7.1 system and copied across to the 7.5 syste.
womble_basic was a 7.5 backup I just expired on this system, but copied the catalog files first ...
 
 
 
Copied the .f files for the backups to the usual images dir ...
 
/usr/openv/netbackup/db/images/womble/1341000000
root@womble 1341000000 $ ll
total 18
drwxr-xr-x   4 root     root        1536 Jul 10 10:03 .
drwxr-xr-x   3 root     root         512 Jul 10 09:58 ..
-rw-r--r--   1 root     root           0 Jul  8 11:17 .lck
drwx------   2 root     root         512 Jul 10 08:39 catstore
-rw-------   1 root     root        1201 Jul 10 10:03 test_1341907055_FULL.f
drwxr-xr-x   3 root     root         512 Jul 10 09:16 tmp
-rw-------   1 root     root        1201 Jul 10 10:03 womble_basic_disk_1341908161_FULL.f
 
 
(Might need catstore details also, I did't as backups are samll, so all containinf in .f )
 
 
(Just in case you don't believe me ...)
 
root@womble 1341000000 $ bpimagelist -hoursago 30 -idonly
no entity was found
 
Run cat_import
 
root@womble 1341000000 $ cat_import -all
[000:00:00] Initiating import for client: womble
[000:00:00] Finished importing images for client: womble with 2 imported, 0 skipped, 0 corrupt.
[000:00:00] Overall progress: 2 images imported, 0 skipped, 0 corrupt.  Import rate = 2 images/sec
cat_import succeeded with images added = 2, images skipped = 0, images corrupt = 0
 
 
bpimagelist again ...
 
root@womble 1341000000 $ bpimagelist -hoursago 30 -idonly
Time: Tue Jul 10 09:16:01 2012   ID: womble_1341908161   FULL (0)
Time: Tue Jul 10 08:57:35 2012   ID: womble_1341907055   FULL (0)
 
 
Can we read the backup contents ...
 
root@womble 1341000000 $ bplist -R 99 -C womble -l -k womble_basic_disk -X -s 1341000000 -I "/"
drwxr-xr-x root      root                0 Jun 29 08:38 /netbackup/testdata/
-rw-r--r-- root      root              231 Jun 07 11:37 /netbackup/testdata/file1
-rw-r--r-- root      root              231 Apr 17 09:29 /netbackup/testdata/file2
-rw-r--r-- root      root              231 Apr 17 09:29 /netbackup/testdata/file3
-rw-r--r-- root      root              231 Apr 17 09:29 /netbackup/testdata/file4
root@womble 1341000000 $
root@womble 1341000000 $
root@womble 1341000000 $ bplist -R 99 -C womble -l -k test -X -s 1341000000 -I "/"
drwxr-xr-x root      root                0 Jun 29 08:38 /netbackup/testdata/
-rw-r--r-- root      root              231 Jun 07 11:37 /netbackup/testdata/file1
-rw-r--r-- root      root              231 Apr 17 09:29 /netbackup/testdata/file2
-rw-r--r-- root      root              231 Apr 17 09:29 /netbackup/testdata/file3
-rw-r--r-- root      root              231 Apr 17 09:29 /netbackup/testdata/file4
 
Regards,
 
Martin