Forum Discussion

madivtuba's avatar
madivtuba
Level 2
11 years ago

Copy image database

I want to recover netbackup database, to my knowledge there are two methods
1- Import
2- DR recovery

I know about the second one but bit consfused for the first one "Import" as in Master server catalog is recovered but what about the images that we have for say 100 clients, do we need to import all the images per client just like we did for master server catalog?


 

  • I think that what you are asking if if rather than do a catlog recovery as per a DR you can just import the images into a new installation - presumably from tape?

    If that is what you are asking then to do that it is done on a per tape basis

    You gather your tapes - inventory them in the new system and then run a phase 1 import against them all - you then run a phase 2 import against all of the images you want to recover (bearing in mind you only have 7 days after the phase 1 to run the phase 2)

    What this does not give you back is any of your settings, configurations , policies etc.

    So if you want everything back you do a catalog recovery  - following the wizard at the top level of the admin console - selecting the latest DR file - you then get your EMM databases back, all configurations, policies and all images in the image database (/netbackup/db/images/)

    If you had any backups held on disk then you wil lonly get those back if they are intact and can be mounted in the original location on the original media server

    Hope this helps

  • Please verify this link:

    http://www.symantec.com/business/support/index?page=content&id=TECH63232

     

    Disaster Recovery Procedure without the DR Image File
    NOTE: ONLY ATTEMPT THIS AS A LAST RESORT
    If you do not have the attachment included with this email, use the following instructions to recover your catalog:
     

    1. Install NetBackup.
     
    2. Configure the devices necessary to read the media listed above.
     
    3. Inventory the media.
     
    4. Run one of these:
    bpimport -create_db_info [-server name] -id D:\D_DSSU
    bpimport -create_db_info [-server name] -id D:\Disk
     
    5. Go to the following directory to find the DR image file hot_catalog_1221227386_FULL:
    D:\Program Files\VERITAS\NetBackup\db\images\master\1221000000\tmp
     
    6. Delete the other files in the directory.
     
    7. Open hot_catalog_1221227386_FULL file and find the BACKUP_ID
    (for example: master_1221227386).
     
    8. Run:  
    bpimport [-server name] -backupid master_1221227386
     
    9. Run:
    bprestore -T -w [-L progress_log] -C master -t 35 -p hot_catalog -X -s 1221227386 -e 1221227386 /
     
    10. Run the BAR user interface to restore the remaining image database if the DR image is a result of an incremental backup.
     
    NOTE: This backup has multiple copies enabled, you may need to change primary images with the following command.
    bpchangeprimary -copy number -pn hot_catalog [-sd mm/dd/yyyy  [ HH:MM:SS ] ] [-ed mm/dd/yyyy  [ HH:MM:SS ] ]
     
    11. To recover the NetBackup relational database, run:
    bprecover -r -nbdb
     
    12. Stop and Start NetBackup
     
    13. Configure the devices if any device has changed since the last backup.
     
    14. To make sure the volume information is updated, inventory the media to update the NetBackup database.
  • I think that what you are asking if if rather than do a catlog recovery as per a DR you can just import the images into a new installation - presumably from tape?

    If that is what you are asking then to do that it is done on a per tape basis

    You gather your tapes - inventory them in the new system and then run a phase 1 import against them all - you then run a phase 2 import against all of the images you want to recover (bearing in mind you only have 7 days after the phase 1 to run the phase 2)

    What this does not give you back is any of your settings, configurations , policies etc.

    So if you want everything back you do a catalog recovery  - following the wizard at the top level of the admin console - selecting the latest DR file - you then get your EMM databases back, all configurations, policies and all images in the image database (/netbackup/db/images/)

    If you had any backups held on disk then you wil lonly get those back if they are intact and can be mounted in the original location on the original media server

    Hope this helps

  • Three methods:

    1- Import
    2- Catalog recovery
    3- Recovery without Import

    1- As per Mark's excellent post - perform phase 1 and 2 import of tapes containing client backups

    2- Recover catalog as per Disaster Recovery chapter in NBU Troubleshooting Guide and this TN:  http://www.symantec.com/docs/HOWTO72776

    3- Recovery without Import: seems like this is what you have in mind with your subject (Copy Image Database). This method worked well up to 7.1, but 7.5 and later moved image header files into the EMM database. You now have to combine image copy with cat_export and cat_import. Details in this TN:  http://www.symantec.com/docs/TECH28722 

    Hope this helps.

     

  • Thanks Mark and Marianne for your valuable inputs.

    @Mark, you get me right actually, however as you stated if i ll not proceed with the normal DR process and prefer the import thing i ll miss the policies, configurations and settings which we can not miss, so is there any other way that we can recover these too? i might sound irrational, however just need confirmation.

    Thanks in advance.